Robin Mueller
4239b5e3af
All checks were successful
Rust/va108xx-rs/pipeline/pr-main This commit looks good
- Add embassy example - improve timer API - restructure examples
41 lines
943 B
TOML
41 lines
943 B
TOML
[package]
|
|
name = "embassy-example"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
cortex-m = { version = "0.7", features = ["critical-section-single-core"] }
|
|
cortex-m-rt = "0.7"
|
|
embedded-hal = "1"
|
|
|
|
rtt-target = { version = "0.5" }
|
|
panic-rtt-target = { version = "0.1" }
|
|
critical-section = "1"
|
|
portable-atomic = { version = "1", features = ["unsafe-assume-single-core"]}
|
|
|
|
embassy-sync = { version = "0.6.0" }
|
|
embassy-time = { version = "0.3.2" }
|
|
embassy-time-driver = { version = "0.1" }
|
|
|
|
[dependencies.once_cell]
|
|
version = "1"
|
|
default-features = false
|
|
features = ["critical-section"]
|
|
|
|
[dependencies.embassy-executor]
|
|
version = "0.6.0"
|
|
features = [
|
|
"arch-cortex-m",
|
|
"executor-thread",
|
|
"executor-interrupt",
|
|
"integrated-timers",
|
|
]
|
|
|
|
[dependencies.va108xx-hal]
|
|
path = "../../va108xx-hal"
|
|
|
|
[features]
|
|
default = ["ticks-hz-1_000"]
|
|
ticks-hz-1_000 = ["embassy-time/tick-hz-1_000"]
|
|
ticks-hz-32_768 = ["embassy-time/tick-hz-32_768"]
|