fdd6e08ed6
rp-hal has done this very well already, so we'll just copy their entire impl again. only div.rs needed some massaging because our sio access works a little differently, everything else worked as is.
56 lines
1.7 KiB
TOML
56 lines
1.7 KiB
TOML
[package]
|
|
edition = "2021"
|
|
name = "embassy-rp-tests"
|
|
version = "0.1.0"
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
[dependencies]
|
|
embassy-sync = { version = "0.2.0", path = "../../embassy-sync", features = ["defmt"] }
|
|
embassy-executor = { version = "0.1.0", path = "../../embassy-executor", features = ["arch-cortex-m", "executor-thread", "defmt", "integrated-timers"] }
|
|
embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["defmt"] }
|
|
embassy-rp = { version = "0.1.0", path = "../../embassy-rp", features = ["nightly", "defmt", "unstable-pac", "unstable-traits", "time-driver", "critical-section-impl", "intrinsics", "rom-v2-intrinsics"] }
|
|
embassy-futures = { version = "0.1.0", path = "../../embassy-futures" }
|
|
|
|
defmt = "0.3.0"
|
|
defmt-rtt = "0.4"
|
|
|
|
cortex-m = { version = "0.7.6" }
|
|
cortex-m-rt = "0.7.0"
|
|
embedded-hal = "0.2.6"
|
|
embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.10" }
|
|
embedded-hal-async = { version = "=0.2.0-alpha.1" }
|
|
panic-probe = { version = "0.3.0", features = ["print-defmt"] }
|
|
futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
|
|
embedded-io = { version = "0.4.0", features = ["async"] }
|
|
embedded-storage = { version = "0.3" }
|
|
|
|
[profile.dev]
|
|
debug = 2
|
|
debug-assertions = true
|
|
opt-level = 's'
|
|
overflow-checks = true
|
|
|
|
[profile.release]
|
|
codegen-units = 1
|
|
debug = 2
|
|
debug-assertions = false
|
|
incremental = false
|
|
lto = "fat"
|
|
opt-level = 's'
|
|
overflow-checks = false
|
|
|
|
# do not optimize proc-macro crates = faster builds from scratch
|
|
[profile.dev.build-override]
|
|
codegen-units = 8
|
|
debug = false
|
|
debug-assertions = false
|
|
opt-level = 0
|
|
overflow-checks = false
|
|
|
|
[profile.release.build-override]
|
|
codegen-units = 8
|
|
debug = false
|
|
debug-assertions = false
|
|
opt-level = 0
|
|
overflow-checks = false
|