Fixed compile errors for beginner/hello binary

This commit is contained in:
baxterjo 2024-12-22 10:39:18 -08:00
parent f24b6aa2fb
commit d217f3255c
4 changed files with 11 additions and 15 deletions

View file

@ -16,7 +16,7 @@ cortex-m = "0.7.6"
cortex-m-rt = "0.7.2"
cortex-m-rtic = "1.1.3"
defmt = "0.3.2"
defmt-rtt = "0.3.2"
defmt-rtt = "0.4.1"
dk = { path = "../../boards/dk", features = ["advanced"] }
panic-probe = { version = "0.3.0", features = ["print-defmt"] }
usb = { path = "../common/usb" }
@ -44,4 +44,3 @@ incremental = false
lto = "fat"
opt-level = 3
overflow-checks = false

View file

@ -6,13 +6,13 @@ name = "apps"
version = "0.0.0"
[dependencies]
cortex-m = {version = "0.7.6", features = ["critical-section-single-core"]}
cortex-m = { version = "0.7.6", features = ["critical-section-single-core"] }
cortex-m-rt = "0.7.2"
dk = { path = "../../boards/dk", features = ["beginner"] }
heapless = "0.7.16"
panic-probe = { version = "0.3.0", features = ["print-defmt"] }
defmt = "0.3.2"
defmt-rtt = "0.3.2"
defmt-rtt = "0.4.1"
# optimize code in both profiles
[profile.dev]
@ -35,9 +35,7 @@ overflow-checks = false
[features]
default = [
"other-feature"
]
default = ["other-feature"]
other-feature = []
# do NOT modify these features
defmt-default = []

View file

@ -6,21 +6,19 @@ name = "dk"
version = "0.0.0"
[dependencies]
cortex-m = {version = "0.7.6", features = ["critical-section-single-core"]}
cortex-m = { version = "0.7.6", features = ["critical-section-single-core"] }
cortex-m-rt = "0.7.2"
embedded-hal = "0.2.7"
hal = { package = "nrf52840-hal", version = "0.14.0" }
panic-probe = { version = "0.3.0", features = ["print-defmt"] }
defmt = "0.3.2"
defmt-rtt = "0.3.2"
defmt-rtt = "0.4.1"
[features]
advanced = []
beginner = []
default = [
"other-feature"
]
default = ["other-feature"]
other-feature = []
# do NOT modify these features

View file

@ -3,6 +3,7 @@
#![deny(missing_docs)]
#![deny(warnings)]
#![no_std]
#![allow(static_mut_refs)]
use core::{
ops,