73 lines
1.8 KiB
TOML
73 lines
1.8 KiB
TOML
[package]
|
|
name = "stm32_app"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
authors = ["wieerwill <jeutter@wieerwill.de>"]
|
|
resolver = "2"
|
|
|
|
[dependencies]
|
|
embassy-stm32 = { version = "0.1.0", features = [
|
|
"defmt",
|
|
"memory-x",
|
|
"stm32l010rb",
|
|
"time-driver-any",
|
|
"exti",
|
|
"unstable-pac",
|
|
"exti",
|
|
"time",
|
|
] }
|
|
cortex-m = { version = "0.7.6", features = [
|
|
"inline-asm",
|
|
"critical-section-single-core",
|
|
] }
|
|
cortex-m-rt = "0.7.0"
|
|
defmt = "0.3"
|
|
defmt-rtt = "0.4"
|
|
panic-probe = { version = "0.3", features = ["print-defmt"] }
|
|
embassy-sync = { version = "0.6.0", features = [
|
|
"defmt",
|
|
] }
|
|
embassy-executor = { version = "0.6.0", features = [
|
|
"arch-cortex-m",
|
|
"executor-thread",
|
|
"executor-interrupt",
|
|
"defmt",
|
|
"integrated-timers",
|
|
] }
|
|
embassy-time = { version = "0.3.1", features = [
|
|
"defmt",
|
|
"defmt-timestamp-uptime",
|
|
"tick-hz-32_768",
|
|
] }
|
|
embassy-futures = { version = "0.1.1", features = [
|
|
"defmt",
|
|
] }
|
|
static_cell = "2"
|
|
portable-atomic = { version = "1.5", features = ["unsafe-assume-single-core"] }
|
|
heapless = "0.8.0"
|
|
|
|
# cargo build/run
|
|
[profile.dev]
|
|
codegen-units = 1
|
|
debug = 2
|
|
debug-assertions = true
|
|
incremental = false
|
|
opt-level = 0
|
|
overflow-checks = true
|
|
|
|
# cargo build/run --release
|
|
[profile.release]
|
|
codegen-units = 1 # reduce Code Generation Units
|
|
debug = true # symbols are nice and they don't increase the size on Flash
|
|
debug-assertions = false
|
|
incremental = false
|
|
lto = true # Link Time Optimization
|
|
opt-level = "z" # Optimize for size "s" or "z"
|
|
overflow-checks = true
|
|
# strip = "symbols" # or true, removes all output from rtt
|
|
# panic = "abort" # abort immediately rather than unwind
|
|
# location-detail="none" # Remove Location Details
|
|
|
|
[target.stm32l010rb]
|
|
runner = 'probe-rs run --chip stm32l010rbtx'
|