Make cargo check work in the top directory
This commit is contained in:
@ -9,7 +9,7 @@ edition = "2021"
|
|||||||
path = "../lib"
|
path = "../lib"
|
||||||
package = "tangentbord1-lib"
|
package = "tangentbord1-lib"
|
||||||
|
|
||||||
[dependencies]
|
[target.thumbv6m-none-eabi.dependencies]
|
||||||
cortex-m-rt = "0.7"
|
cortex-m-rt = "0.7"
|
||||||
embassy-rp = { version = "0.1.0", features = ["time-driver", "critical-section-impl"] }
|
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"] }
|
embassy-executor = { version = "0.5.0", features = ["nightly", "executor-thread", "integrated-timers", "arch-cortex-m"] }
|
||||||
|
|||||||
@ -1,9 +1,10 @@
|
|||||||
//! Firmware for Tangentbord1, left half.
|
//! Firmware for Tangentbord1, left half.
|
||||||
|
|
||||||
#![no_std]
|
// NOTE: the order of attributes matters here..
|
||||||
#![no_main]
|
#![no_main]
|
||||||
|
#![cfg(target_os = "none")] // only try to compile this for embedded
|
||||||
|
#![no_std]
|
||||||
#![feature(type_alias_impl_trait)]
|
#![feature(type_alias_impl_trait)]
|
||||||
#![cfg(target_arch = "arm")]
|
|
||||||
|
|
||||||
extern crate alloc;
|
extern crate alloc;
|
||||||
extern crate cortex_m_rt;
|
extern crate cortex_m_rt;
|
||||||
|
|||||||
@ -9,7 +9,7 @@ edition = "2021"
|
|||||||
path = "../lib"
|
path = "../lib"
|
||||||
package = "tangentbord1-lib"
|
package = "tangentbord1-lib"
|
||||||
|
|
||||||
[dependencies]
|
[target.thumbv6m-none-eabi.dependencies]
|
||||||
cortex-m-rt = "0.7"
|
cortex-m-rt = "0.7"
|
||||||
embassy-rp = { version = "0.1.0", features = ["time-driver", "critical-section-impl"] }
|
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"] }
|
embassy-executor = { version = "0.5.0", features = ["nightly", "executor-thread", "integrated-timers", "arch-cortex-m"] }
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
//! Firmware for Tangentbord1, right half.
|
//! Firmware for Tangentbord1, right half.
|
||||||
|
|
||||||
#![no_std]
|
// NOTE: the order of attributes matters here..
|
||||||
#![no_main]
|
#![no_main]
|
||||||
|
#![cfg(target_os = "none")] // only try to compile this for embedded
|
||||||
|
#![no_std]
|
||||||
#![feature(type_alias_impl_trait)]
|
#![feature(type_alias_impl_trait)]
|
||||||
|
|
||||||
extern crate alloc;
|
extern crate alloc;
|
||||||
|
|||||||
Reference in New Issue
Block a user