embassy/tests/stm32/Cargo.toml

236 lines
7.2 KiB
TOML
Raw Normal View History

2021-11-24 02:18:30 +00:00
[package]
2022-06-18 00:15:48 +00:00
edition = "2021"
2021-11-24 02:18:30 +00:00
name = "embassy-stm32-tests"
version = "0.1.0"
license = "MIT OR Apache-2.0"
2023-05-02 00:52:37 +00:00
autobins = false
2021-11-24 02:18:30 +00:00
2021-12-06 23:28:32 +00:00
[features]
stm32c031c6 = ["embassy-stm32/stm32c031c6", "cm0", "not-gpdma"]
stm32f103c8 = ["embassy-stm32/stm32f103c8", "spi-v1", "not-gpdma"]
stm32f207zg = ["embassy-stm32/stm32f207zg", "spi-v1", "chrono", "not-gpdma", "eth", "rng"]
stm32f303ze = ["embassy-stm32/stm32f303ze", "chrono", "not-gpdma"]
stm32f429zi = ["embassy-stm32/stm32f429zi", "spi-v1", "chrono", "eth", "stop", "can", "not-gpdma", "dac", "rng"]
stm32f446re = ["embassy-stm32/stm32f446re", "spi-v1", "chrono", "stop", "can", "not-gpdma", "dac", "sdmmc"]
stm32f767zi = ["embassy-stm32/stm32f767zi", "chrono", "not-gpdma", "eth", "rng"]
stm32g071rb = ["embassy-stm32/stm32g071rb", "cm0", "not-gpdma", "dac", "ucpd"]
stm32g491re = ["embassy-stm32/stm32g491re", "chrono", "stop", "not-gpdma", "rng", "fdcan", "cordic"]
stm32h563zi = ["embassy-stm32/stm32h563zi", "spi-v345", "chrono", "eth", "rng", "fdcan", "hash", "cordic", "stop"]
stm32h753zi = ["embassy-stm32/stm32h753zi", "spi-v345", "chrono", "not-gpdma", "eth", "rng", "fdcan", "hash", "cryp"]
stm32h755zi = ["embassy-stm32/stm32h755zi-cm7", "spi-v345", "chrono", "not-gpdma", "eth", "dac", "rng", "fdcan", "hash", "cryp"]
stm32h7a3zi = ["embassy-stm32/stm32h7a3zi", "spi-v345", "not-gpdma", "rng", "fdcan"]
2023-11-02 20:52:07 +00:00
stm32l073rz = ["embassy-stm32/stm32l073rz", "cm0", "not-gpdma", "rng"]
stm32l152re = ["embassy-stm32/stm32l152re", "spi-v1", "chrono", "not-gpdma"]
stm32l496zg = ["embassy-stm32/stm32l496zg", "not-gpdma", "rng"]
2024-02-05 19:36:02 +00:00
stm32l4a6zg = ["embassy-stm32/stm32l4a6zg", "chrono", "not-gpdma", "rng", "hash"]
2023-10-16 02:54:48 +00:00
stm32l4r5zi = ["embassy-stm32/stm32l4r5zi", "chrono", "not-gpdma", "rng"]
2024-02-05 19:36:02 +00:00
stm32l552ze = ["embassy-stm32/stm32l552ze", "not-gpdma", "rng", "hash"]
stm32u585ai = ["embassy-stm32/stm32u585ai", "spi-v345", "chrono", "rng", "hash", "cordic"]
stm32u5a5zj = ["embassy-stm32/stm32u5a5zj", "spi-v345", "chrono", "rng", "hash"] # FIXME: cordic test cause it crash
stm32wb55rg = ["embassy-stm32/stm32wb55rg", "chrono", "not-gpdma", "ble", "mac" , "rng"]
stm32wba52cg = ["embassy-stm32/stm32wba52cg", "spi-v345", "chrono", "rng", "hash"]
2023-10-17 13:49:20 +00:00
stm32wl55jc = ["embassy-stm32/stm32wl55jc-cm4", "not-gpdma", "rng", "chrono"]
stm32f091rc = ["embassy-stm32/stm32f091rc", "cm0", "not-gpdma", "chrono"]
stm32h503rb = ["embassy-stm32/stm32h503rb", "spi-v345", "rng", "stop"]
stm32h7s3l8 = ["embassy-stm32/stm32h7s3l8", "spi-v345", "rng", "cordic", "hash"] # TODO: fdcan crashes, cryp dma hangs.
2024-05-13 14:20:52 +00:00
stm32u083rc = ["embassy-stm32/stm32u083rc", "cm0", "rng", "chrono"]
2021-12-06 23:28:32 +00:00
spi-v1 = []
spi-v345 = []
2024-02-24 21:31:43 +00:00
cryp = []
2024-02-05 19:36:02 +00:00
hash = []
eth = ["embassy-executor/task-arena-size-16384"]
2023-10-16 02:54:48 +00:00
rng = []
2023-04-17 19:49:34 +00:00
sdmmc = []
stop = ["embassy-stm32/low-power", "embassy-stm32/low-power-debug-with-sleep"]
chrono = ["embassy-stm32/chrono", "dep:chrono"]
2023-05-31 02:14:25 +00:00
can = []
fdcan = []
2023-07-15 19:28:42 +00:00
ble = ["dep:embassy-stm32-wpan", "embassy-stm32-wpan/ble"]
mac = ["dep:embassy-stm32-wpan", "embassy-stm32-wpan/mac"]
2023-07-15 19:31:35 +00:00
embassy-stm32-wpan = []
not-gpdma = []
2023-12-08 19:24:15 +00:00
dac = []
ucpd = []
2024-03-21 08:06:34 +00:00
cordic = ["dep:num-traits"]
2023-04-17 19:49:34 +00:00
2023-11-02 20:52:07 +00:00
cm0 = ["portable-atomic/unsafe-assume-single-core"]
2021-11-24 02:18:30 +00:00
[dependencies]
2023-05-29 22:10:36 +00:00
teleprobe-meta = "1"
2024-05-29 10:09:55 +00:00
embassy-sync = { version = "0.6.0", path = "../../embassy-sync", features = ["defmt"] }
2024-11-12 16:48:36 +00:00
embassy-executor = { version = "0.6.3", path = "../../embassy-executor", features = ["arch-cortex-m", "executor-thread", "defmt", "integrated-timers"] }
2024-08-02 17:20:26 +00:00
embassy-time = { version = "0.3.2", path = "../../embassy-time", features = ["defmt", "tick-hz-131_072", "defmt-timestamp-uptime"] }
embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = [ "defmt", "unstable-pac", "memory-x", "time-driver-any"] }
2023-05-01 16:16:29 +00:00
embassy-futures = { version = "0.1.0", path = "../../embassy-futures" }
embassy-stm32-wpan = { version = "0.1.0", path = "../../embassy-stm32-wpan", optional = true, features = ["defmt", "stm32wb55rg", "ble"] }
embassy-net = { version = "0.4.0", path = "../../embassy-net", features = ["defmt", "tcp", "udp", "dhcpv4", "medium-ethernet"] }
2023-09-28 03:16:41 +00:00
perf-client = { path = "../perf-client" }
2021-11-24 02:18:30 +00:00
defmt = "0.3.0"
2022-11-29 20:15:24 +00:00
defmt-rtt = "0.4"
2021-11-24 02:18:30 +00:00
cortex-m = { version = "0.7.6", features = ["critical-section-single-core"] }
2021-11-24 02:18:30 +00:00
cortex-m-rt = "0.7.0"
embedded-hal = "0.2.6"
2023-12-26 16:38:34 +00:00
embedded-hal-1 = { package = "embedded-hal", version = "1.0" }
embedded-hal-async = { version = "1.0" }
embedded-can = { version = "0.4" }
2023-07-27 17:04:43 +00:00
micromath = "2.0.0"
2021-11-24 02:18:30 +00:00
panic-probe = { version = "0.3.0", features = ["print-defmt"] }
rand_core = { version = "0.6", default-features = false }
rand_chacha = { version = "0.3", default-features = false }
static_cell = "2"
2023-11-02 20:52:07 +00:00
portable-atomic = { version = "1.5", features = [] }
2021-11-24 02:18:30 +00:00
chrono = { version = "^0.4", default-features = false, optional = true}
2024-02-05 19:36:02 +00:00
sha2 = { version = "0.10.8", default-features = false }
2024-02-13 15:17:19 +00:00
hmac = "0.12.1"
2024-02-24 21:31:43 +00:00
aes-gcm = {version = "0.10.3", default-features = false, features = ["aes", "heapless"] }
2024-03-21 08:06:34 +00:00
num-traits = {version="0.2", default-features = false,features = ["libm"], optional = true}
2023-04-17 19:49:34 +00:00
# BEGIN TESTS
# Generated by gen_test.py. DO NOT EDIT.
2023-05-31 02:14:25 +00:00
[[bin]]
name = "can"
path = "src/bin/can.rs"
required-features = [ "can",]
2024-03-21 08:06:34 +00:00
[[bin]]
name = "cordic"
path = "src/bin/cordic.rs"
required-features = [ "rng", "cordic",]
2024-02-24 21:31:43 +00:00
[[bin]]
name = "cryp"
path = "src/bin/cryp.rs"
2024-02-26 02:31:25 +00:00
required-features = [ "cryp",]
2024-02-24 21:31:43 +00:00
2023-07-27 17:04:43 +00:00
[[bin]]
name = "dac"
path = "src/bin/dac.rs"
2023-12-08 19:24:15 +00:00
required-features = [ "dac",]
[[bin]]
name = "dac_l1"
path = "src/bin/dac_l1.rs"
required-features = [ "stm32l152re",]
2023-07-27 17:04:43 +00:00
2023-09-28 03:16:41 +00:00
[[bin]]
name = "eth"
path = "src/bin/eth.rs"
required-features = [ "eth",]
[[bin]]
name = "fdcan"
path = "src/bin/fdcan.rs"
required-features = [ "fdcan",]
2023-04-17 19:49:34 +00:00
[[bin]]
name = "gpio"
path = "src/bin/gpio.rs"
required-features = []
2024-02-05 19:36:02 +00:00
[[bin]]
name = "hash"
path = "src/bin/hash.rs"
required-features = [ "hash",]
2023-10-16 02:54:48 +00:00
[[bin]]
name = "rng"
path = "src/bin/rng.rs"
required-features = [ "rng",]
[[bin]]
name = "rtc"
path = "src/bin/rtc.rs"
required-features = [ "chrono",]
2023-04-17 19:49:34 +00:00
[[bin]]
name = "sdmmc"
path = "src/bin/sdmmc.rs"
required-features = [ "sdmmc",]
[[bin]]
name = "spi"
path = "src/bin/spi.rs"
required-features = []
[[bin]]
name = "spi_dma"
path = "src/bin/spi_dma.rs"
required-features = []
2023-08-27 01:37:01 +00:00
[[bin]]
name = "stop"
path = "src/bin/stop.rs"
required-features = [ "stop", "chrono",]
2023-04-17 19:49:34 +00:00
[[bin]]
name = "timer"
path = "src/bin/timer.rs"
required-features = []
[[bin]]
name = "ucpd"
path = "src/bin/ucpd.rs"
2024-03-15 18:47:05 +00:00
required-features = [ "ucpd",]
2023-04-17 19:49:34 +00:00
[[bin]]
name = "usart"
path = "src/bin/usart.rs"
required-features = []
[[bin]]
name = "usart_dma"
path = "src/bin/usart_dma.rs"
required-features = []
[[bin]]
name = "usart_rx_ringbuffered"
path = "src/bin/usart_rx_ringbuffered.rs"
required-features = [ "not-gpdma",]
2023-07-15 19:28:42 +00:00
[[bin]]
name = "wpan_ble"
path = "src/bin/wpan_ble.rs"
required-features = [ "ble",]
[[bin]]
name = "wpan_mac"
path = "src/bin/wpan_mac.rs"
required-features = [ "mac",]
2023-04-17 19:49:34 +00:00
# END TESTS
2021-11-24 02:18:30 +00:00
[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