forked from stm32-rs/stm32h7xx-hal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
192 lines (166 loc) · 5.62 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
[package]
name = "stm32h7xx-hal"
version = "0.9.0"
authors = ["Andrew Straw <[email protected]>",
"Richard Meadows <[email protected]>",
"Henrik Böving <[email protected]>",
"Jan Adä <[email protected]>",
"Robert Jördens <[email protected]>",
"Ryan Summers <[email protected]>",
"Matthew Meyer <[email protected]>",
"Florian Jung <[email protected]>",
"Matt Ickstadt <[email protected]>"]
edition = "2018"
categories = ["embedded", "hardware-support", "no-std"]
description = "Hardware Abstraction Layer implementation for STM32H7 series microcontrollers"
keywords = ["arm", "cortex-m", "stm32h7xx", "hal", "embedded-hal"]
license = "0BSD"
repository = "https://github.com/stm32-rs/stm32h7xx-hal"
documentation = "https://docs.rs/stm32h7xx-hal"
readme = "README.md"
exclude = [".gitignore"]
[package.metadata.docs.rs]
features = ["stm32h743v", "rt", "quadspi", "sdmmc", "fmc", "usb_hs", "rtc", "ethernet", "crc"]
targets = ["thumbv7em-none-eabihf"]
[dependencies]
embedded-hal = "0.2.4"
embedded-dma = "0.1.2"
cortex-m = "^0.7.1"
cortex-m-rt = "^0.6.12"
stm32h7 = "^0.13.0"
void = { version = "1.0.2", default-features = false }
cast = { version = "0.2.3", default-features = false }
nb = "1.0.0"
paste = "1.0.1"
bare-metal = "1.0.0"
sdio-host = { version = "0.4", optional = true }
stm32-fmc = { version = "0.2", optional = true }
synopsys-usb-otg = { version = "^0.2.4", features = ["cortex-m"], optional = true }
embedded-display-controller = { version = "^0.1.0", optional = true }
[dependencies.smoltcp]
git = "https://github.com/smoltcp-rs/smoltcp"
branch = "master"
# version = "0.7.0"
default-features = false
features = ["medium-ethernet", "proto-ipv4", "socket-raw"]
optional = true
[dependencies.chrono]
version = "0.4"
default-features = false
optional = true
[dev-dependencies]
cortex-m-rtic = "0.5.3"
log = "0.4.11"
panic-halt = "0.2.0"
cfg-if = "0.1.10"
rtt-target = { version = "0.2.0", features = ["cortex-m"] }
panic-rtt-target = { version = "0.1.0", features = ["cortex-m"] }
lazy_static = { version = "1.4.0", features = ["spin_no_std"] }
cortex-m-log = { version = "~0.7.0", features = ["itm", "semihosting", "log-integration"] }
panic-itm = { version = "~0.4.1" }
panic-semihosting = { version = "0.5.3" }
cortex-m-semihosting = { version = "0.3.5" }
usb-device = "0.2.5"
usbd-serial = "0.1.0"
[dev-dependencies.smoltcp]
git = "https://github.com/smoltcp-rs/smoltcp"
branch = "master"
# version = "0.7.0"
default-features = false
features = ["medium-ethernet", "proto-ipv4", "proto-ipv6", "socket-raw"]
[features]
default = ["unproven"]
unproven = ["embedded-hal/unproven"]
device-selected = []
revision_v = []
rm0433 = [] # aka. "single core" devices
rm0399 = [] # aka. "dual core" devices
rm0455 = [] # aka. "high memory integration" devices
dsi = []
cm4 = []
cm7 = []
smps = []
ltdc = ["embedded-display-controller"]
quadspi = []
fmc = ["stm32-fmc"]
sdmmc = ["sdio-host"]
ethernet = ["smoltcp"]
rtc = ["chrono"]
crc = []
rt = ["stm32h7/rt"]
usb_hs = ["synopsys-usb-otg", "synopsys-usb-otg/hs"]
stm32h742 = ["stm32h7/stm32h743", "device-selected", "rm0433"]
stm32h743 = ["stm32h7/stm32h743", "device-selected", "rm0433"]
stm32h753 = ["stm32h7/stm32h753", "device-selected", "rm0433"]
stm32h750 = ["stm32h7/stm32h743", "device-selected", "rm0433"]
stm32h742v = ["stm32h7/stm32h743v", "device-selected", "revision_v", "rm0433"]
stm32h743v = ["stm32h7/stm32h743v", "device-selected", "revision_v", "rm0433"]
stm32h753v = ["stm32h7/stm32h753v", "device-selected", "revision_v", "rm0433"]
stm32h750v = ["stm32h7/stm32h743v", "device-selected", "revision_v", "rm0433"]
stm32h747cm7 = ["stm32h7/stm32h747cm7", "device-selected", "revision_v", "rm0399", "cm7", "dsi", "smps"]
stm32h7b3 = ["stm32h7/stm32h7b3", "device-selected", "revision_v", "rm0455", "smps"]
stm32h7b0 = ["stm32h7/stm32h7b3", "device-selected", "revision_v", "rm0455", "smps"]
stm32h7a3 = ["stm32h7/stm32h7b3", "device-selected", "revision_v", "rm0455", "smps"]
# Flags for examples
log-itm = []
log-rtt = []
log-semihost = []
example-smps = []
example-ldo = []
[profile.dev]
codegen-units = 1 # better optimizations
debug = true # symbols are nice and they don't increase the size in flash
incremental = false
[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 = "rtic"
required-features = ["rt"]
[[example]]
name = "rtic_timers"
required-features = ["rt"]
[[example]]
name = "vos0"
required-features = ["revision_v", "rm0433"]
[[example]]
name = "fmc"
required-features = ["fmc"]
[[example]]
name = "qspi"
required-features = ["quadspi", "rm0433"]
[[example]]
name = "sdmmc"
required-features = ["sdmmc", "rm0433"]
[[example]]
name = "ethernet-stm32h747i-disco"
required-features = ["rt", "stm32h747cm7", "ethernet"]
[[example]]
name = "ethernet-rtic-stm32h747i-disco"
required-features = ["rt", "stm32h747cm7", "ethernet"]
[[example]]
name = "ethernet-nucleo-h743zi2"
required-features = ["rt", "revision_v", "stm32h743v", "ethernet"]
[[example]]
name = "tick_timer"
required-features = ["rt"]
[[example]]
name = "usb_serial"
required-features = ["usb_hs"]
[[example]]
name = "usb_passthrough"
required-features = ["usb_hs", "rm0399"]
[[example]]
name = "rtc"
required-features = ["rt", "rtc"]
[[example]]
name = "sai_dma_passthru"
required-features = ["rm0433"]
[[example]]
name = "spi-dma-rtic"
required-features = ["rm0433","rt"]
[[example]]
name = "crc"
required-features = ["crc", "rt"]