broken embassy example. leds work, but break when you sample faster
This commit is contained in:
parent
5be93cc32e
commit
33a9fb175e
5 changed files with 100 additions and 157 deletions
|
|
@ -5,32 +5,37 @@ edition = "2024"
|
|||
|
||||
[dependencies]
|
||||
ch32-hal = { path = "ext/ch32-hal/", features = [
|
||||
"ch32v003f4u6",
|
||||
"ch32v003f4p6",
|
||||
"memory-x",
|
||||
"embassy",
|
||||
"time-driver-tim2",
|
||||
"rt",
|
||||
] }
|
||||
|
||||
critical-section = "1.2.0"
|
||||
|
||||
embassy-executor = { version = "0.7.0", features = [
|
||||
"arch-spin",
|
||||
"arch-riscv32",
|
||||
"executor-thread",
|
||||
"task-arena-size-128", # or better use nightly, but fails on recent Rust versions
|
||||
#"nightly",
|
||||
"task-arena-size-512", # or better use nightly, but fails on recent Rust versions
|
||||
] }
|
||||
|
||||
embassy-time = "0.4.0"
|
||||
|
||||
panic-halt = "1.0"
|
||||
|
||||
embedded-hal = "1.0.0"
|
||||
|
||||
qingke = "*"
|
||||
qingke-rt = { version = "*", features = ["highcode"] }
|
||||
|
||||
adpcm-pwm-dac = { path = "ext/adpcm-pwm-dac/" }
|
||||
bitfields = "1.0.0"
|
||||
|
||||
[profile.release]
|
||||
strip = false # symbols are not flashed to the microcontroller, so don't strip them.
|
||||
lto = true
|
||||
opt-level = "s" # Optimize for size.
|
||||
opt-level = "z" # Optimize for size.
|
||||
|
||||
[profile.dev]
|
||||
overflow-checks = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue