This commit is contained in:
Priec
2025-10-21 08:18:36 +02:00
parent c6709f6aac
commit bf44bcc5d0
12 changed files with 407 additions and 336 deletions

View File

@@ -1,57 +1,27 @@
[package]
edition = "2024"
name = "embassy-stm32u575zi-examples"
version = "0.1.0"
license = "MIT OR Apache-2.0"
publish = false
authors = ["Priec <filippriec@gmail.com>"]
name = "hal_adc"
edition = "2024"
version = "0.1.0"
[dependencies]
# Embassy core crates from crates.io (no relative paths)
embassy-stm32 = { version = "0.4.0", features = [
"defmt",
"stm32u575zi",
"time-driver-any",
] }
embassy-sync = { version = "0.7.2", features = ["defmt"] }
embassy-executor = { version = "0.9.1", features = [
"arch-cortex-m",
"executor-thread",
"defmt",
] }
embassy-time = { version = "0.5.0", features = [
"defmt",
"defmt-timestamp-uptime",
"tick-hz-32_768",
] }
embassy-usb = { version = "0.5.1", features = ["defmt"] }
embassy-futures = { version = "0.1.2" }
cortex-m = { version = "0.7.7", features = ["inline-asm", "critical-section-single-core"] }
cortex-m-rt = "0.7.5"
panic-halt = "1.0.0"
# Logging and panic behavior
defmt = "1.0.1"
defmt-rtt = "1.0.0"
panic-probe = { version = "1.0", features = ["print-defmt"] }
embassy-executor = { version = "0.9.1", features = ["arch-cortex-m", "executor-thread"] }
embassy-futures = "0.1.2"
embassy-stm32 = { version = "0.4.0", features = ["unstable-pac", "stm32u575zi", "time-driver-any", "memory-x"] }
embassy-sync = "0.7.2"
embassy-time = { version = "0.5.0", features = ["tick-hz-32_768"] }
embassy-usb = "0.5.1"
# MCU + HAL utilities
cortex-m = { version = "0.7", features = ["inline-asm", "critical-section-single-core"] }
cortex-m-rt = "0.7"
embedded-hal = "1.0.0"
heapless = { version = "0.8", default-features = false }
embedded-graphics = "0.8.1"
heapless = { version = "0.9.1", default-features = false }
micromath = "2.1.0"
tinybmp = "0.6.0"
micromath = "2.0.0"
[features]
## Allow building secure binaries if TrustZone is enabled
trustzone-secure = ["embassy-stm32/trustzone-secure"]
[profile.release]
lto = "fat"
opt-level = "s"
debug = 2
codegen-units = 1
[package.metadata.embassy]
build = [
{ target = "thumbv8m.main-none-eabihf", artifact-dir = "out/examples/stm32u5" }
]
panic-probe = { version = "1.0.0", features = ["defmt"] }
defmt-rtt = "1.1.0"
defmt = "1.0.1"