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"
|
2022-10-07 10:41:56 +00:00
|
|
|
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]
|
2023-05-01 16:15:46 +00:00
|
|
|
stm32f103c8 = ["embassy-stm32/stm32f103c8", "not-gpdma"] # Blue Pill
|
2023-07-27 17:04:43 +00:00
|
|
|
stm32f429zi = ["embassy-stm32/stm32f429zi", "chrono", "can", "not-gpdma", "dac-adc-pin"] # Nucleo "sdmmc"
|
|
|
|
stm32g071rb = ["embassy-stm32/stm32g071rb", "not-gpdma", "dac-adc-pin"] # Nucleo
|
2023-05-01 16:15:46 +00:00
|
|
|
stm32c031c6 = ["embassy-stm32/stm32c031c6", "not-gpdma"] # Nucleo
|
|
|
|
stm32g491re = ["embassy-stm32/stm32g491re", "not-gpdma"] # Nucleo
|
2023-07-27 17:04:43 +00:00
|
|
|
stm32h755zi = ["embassy-stm32/stm32h755zi-cm7", "not-gpdma", "dac-adc-pin"] # Nucleo
|
2023-07-15 19:28:42 +00:00
|
|
|
stm32wb55rg = ["embassy-stm32/stm32wb55rg", "not-gpdma", "ble", "mac" ] # Nucleo
|
2023-04-10 13:12:47 +00:00
|
|
|
stm32h563zi = ["embassy-stm32/stm32h563zi"] # Nucleo
|
2022-04-26 21:57:26 +00:00
|
|
|
stm32u585ai = ["embassy-stm32/stm32u585ai"] # IoT board
|
2021-12-06 23:28:32 +00:00
|
|
|
|
2023-04-17 19:49:34 +00:00
|
|
|
sdmmc = []
|
2023-04-25 22:35:01 +00:00
|
|
|
chrono = ["embassy-stm32/chrono", "dep:chrono"]
|
2023-05-31 02:14:25 +00:00
|
|
|
can = []
|
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 = []
|
2023-05-01 16:15:46 +00:00
|
|
|
not-gpdma = []
|
2023-07-27 17:04:43 +00:00
|
|
|
dac-adc-pin = []
|
2023-04-17 19:49:34 +00:00
|
|
|
|
2021-11-24 02:18:30 +00:00
|
|
|
[dependencies]
|
2023-05-29 22:10:36 +00:00
|
|
|
teleprobe-meta = "1"
|
|
|
|
|
2023-04-13 21:03:21 +00:00
|
|
|
embassy-sync = { version = "0.2.0", path = "../../embassy-sync", features = ["defmt"] }
|
2023-06-09 14:14:13 +00:00
|
|
|
embassy-executor = { version = "0.2.0", path = "../../embassy-executor", features = ["nightly", "arch-cortex-m", "executor-thread", "defmt", "integrated-timers"] }
|
2023-07-05 21:54:45 +00:00
|
|
|
embassy-time = { version = "0.1.2", path = "../../embassy-time", features = ["defmt", "tick-hz-32_768", "defmt-timestamp-uptime"] }
|
2023-04-11 11:37:10 +00:00
|
|
|
embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["nightly", "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" }
|
2023-06-18 14:43:07 +00:00
|
|
|
embassy-stm32-wpan = { version = "0.1.0", path = "../../embassy-stm32-wpan", optional = true, features = ["defmt", "stm32wb55rg", "ble"] }
|
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
|
|
|
|
2022-08-14 21:16:06 +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-08-15 22:40:56 +00:00
|
|
|
embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-rc.1" }
|
|
|
|
embedded-hal-async = { version = "=1.0.0-rc.1" }
|
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"] }
|
2023-04-26 08:51:23 +00:00
|
|
|
rand_core = { version = "0.6", default-features = false }
|
|
|
|
rand_chacha = { version = "0.3", default-features = false }
|
2021-11-24 02:18:30 +00:00
|
|
|
|
2023-04-25 22:35:01 +00:00
|
|
|
chrono = { version = "^0.4", default-features = false, 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",]
|
|
|
|
|
2023-07-27 17:04:43 +00:00
|
|
|
[[bin]]
|
|
|
|
name = "dac"
|
|
|
|
path = "src/bin/dac.rs"
|
|
|
|
required-features = [ "dac-adc-pin",]
|
|
|
|
|
2023-04-17 19:49:34 +00:00
|
|
|
[[bin]]
|
|
|
|
name = "gpio"
|
|
|
|
path = "src/bin/gpio.rs"
|
|
|
|
required-features = []
|
|
|
|
|
2023-04-25 22:35:01 +00:00
|
|
|
[[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 = []
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "timer"
|
|
|
|
path = "src/bin/timer.rs"
|
|
|
|
required-features = []
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "usart"
|
|
|
|
path = "src/bin/usart.rs"
|
|
|
|
required-features = []
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "usart_dma"
|
|
|
|
path = "src/bin/usart_dma.rs"
|
|
|
|
required-features = []
|
|
|
|
|
2023-05-01 16:15:46 +00:00
|
|
|
[[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
|