-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
86 lines (73 loc) · 2.89 KB
/
Cargo.toml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[package]
name = "stm32h5xx-hal"
version = "0.0.0"
edition = "2021"
authors = ["Edwin Svensson <stm32h5xxhal@olback.net>"]
homepage = "https://github.com/stm32-rs/stm32h5xx-hal"
repository = "https://github.com/stm32-rs/stm32h5xx-hal"
readme = "README.md"
rust-version = "1.78.0"
categories = ["embedded", "hardware-support", "no-std"]
description = "Hardware Abstraction Layer implementation for STM32H5 series microcontrollers"
keywords = ["arm", "cortex-m", "stm32h5xx", "hal", "embedded-hal"]
license = "0BSD"
exclude = [".gitignore", "tools/"]
[package.metadata.docs.rs]
features = ["stm32h503", "rt"]
targets = ["thumbv8m.main-none-eabihf"]
rustdoc-args = ["--cfg", "docsrs"]
[features]
default = ["rt"]
device-selected = []
# rmXXXX represent processor subfamilies and their common features
rm0492 = ["gpio-h503"]
rm0481 = [] # STM32H52x/6x/7x
# Different subfamily groups have different selections of identical peripherals
h56x_h573 = ["gpio-h56x_h573"] # STM32H56x/STM32H573
h523_h533 = [] # STM32H523/STM32H533
# Different subfamily groups have different GPIOs available and different alternate functions
# available
gpio-h503 = []
gpio-h56x_h573 = []
# Some peripherals are only present on specific MCUs within a subfamily group
ethernet = [] # Only STM32H563/73 have ethernet
otfdec = [] # Only STM32H573/33 have OTFDEC
sdmmc2 = [] # Only STM32H563/73 have SDMMC2
rt = ["stm32h5/rt"]
stm32h503 = ["stm32h5/stm32h503", "device-selected", "rm0492"]
stm32h562 = ["stm32h5/stm32h562", "device-selected", "rm0481", "h56x_h573"]
stm32h563 = ["stm32h5/stm32h563", "device-selected", "rm0481", "h56x_h573", "sdmmc2", "ethernet"]
stm32h573 = ["stm32h5/stm32h573", "device-selected", "rm0481", "h56x_h573", "otfdec", "sdmmc2", "ethernet"]
# Flags for examples
log = ["dep:log"]
log-itm = ["log"]
log-rtt = ["log"]
log-semihost = ["log"]
[dependencies]
cortex-m = { version = "^0.7.7", features = ["critical-section-single-core"] }
stm32h5 = { package = "stm32h5-staging", version = "0.17.0" }
fugit = "0.3.7"
embedded-hal = "1.0.0"
defmt = { version = "0.3.8", optional = true }
paste = "1.0.15"
log = { version = "0.4.20", optional = true}
[dev-dependencies]
log = { version = "0.4.20"}
cortex-m-rt = "0.7.3"
panic-halt = "0.2.0"
panic-rtt-target = { version = "0.1.0", features = ["cortex-m"] }
cfg-if = "1.0.0"
rtt-target = "0.5.0"
lazy_static = { version = "1.4.0", features = ["spin_no_std"] }
cortex-m-log = { version = "0.8.0", features = ["itm", "semihosting", "log-integration"] }
cortex-m-semihosting = "0.5.0"
panic-itm = { version = "~0.4.1" }
panic-semihosting = "0.6"
[profile.release]
codegen-units = 1 # better optimizations
debug = true # symbols are nice and they don't increase the size in flash
lto = true # better optimizations
opt-level = "s" # optimize for binary size
[[example]]
name = "blinky"
required-features = ["stm32h503"]