Make cargo check work in the top directory

This commit is contained in:
2024-07-14 17:41:17 +02:00
parent f31e20c7ce
commit 04949c4abd
4 changed files with 8 additions and 5 deletions

View File

@ -9,7 +9,7 @@ edition = "2021"
path = "../lib"
package = "tangentbord1-lib"
[dependencies]
[target.thumbv6m-none-eabi.dependencies]
cortex-m-rt = "0.7"
embassy-rp = { version = "0.1.0", features = ["time-driver", "critical-section-impl"] }
embassy-executor = { version = "0.5.0", features = ["nightly", "executor-thread", "integrated-timers", "arch-cortex-m"] }

View File

@ -1,9 +1,10 @@
//! Firmware for Tangentbord1, left half.
#![no_std]
// NOTE: the order of attributes matters here..
#![no_main]
#![cfg(target_os = "none")] // only try to compile this for embedded
#![no_std]
#![feature(type_alias_impl_trait)]
#![cfg(target_arch = "arm")]
extern crate alloc;
extern crate cortex_m_rt;