summaryrefslogtreecommitdiff
path: root/tests/stm32/Cargo.toml
blob: df8d64449fc14e276ed165ea6ae1194961dc3e8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[package]
edition = "2021"
name = "embassy-stm32-tests"
version = "0.1.0"

[features]
stm32f103c8 = ["embassy-stm32/stm32f103c8"]     # Blue Pill
stm32f429zi = ["embassy-stm32/stm32f429zi"]     # Nucleo
stm32g071rb = ["embassy-stm32/stm32g071rb"]     # Nucleo
stm32g491re = ["embassy-stm32/stm32g491re"]     # Nucleo
stm32h755zi = ["embassy-stm32/stm32h755zi-cm7"] # Nucleo
stm32wb55rg = ["embassy-stm32/stm32wb55rg"]     # Nucleo
stm32u585ai = ["embassy-stm32/stm32u585ai"]     # IoT board

[dependencies]
embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "time-tick-32768hz"] }
embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["nightly", "defmt", "unstable-pac", "memory-x", "time-driver-tim2"]  }

defmt = "0.3.0"
defmt-rtt = "0.3.0"

cortex-m = "0.7.3"
cortex-m-rt = "0.7.0"
embedded-hal = "0.2.6"
embedded-hal-1 = { package = "embedded-hal", version = "1.0.0-alpha.8" }
embedded-hal-async = { version = "0.1.0-alpha.1" }
panic-probe = { version = "0.3.0", features = ["print-defmt"] }

[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