forked from stm32-rs/stm32h7xx-hal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
233 lines (200 loc) · 7.58 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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
[package]
name = "stm32h7xx-hal"
version = "0.10.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", "xspi", "sdmmc", "fmc", "usb_hs", "rtc", "ethernet", "ltdc", "crc"]
targets = ["thumbv7em-none-eabihf"]
[dependencies]
embedded-hal = "0.2.6"
embedded-dma = "0.1.2"
cortex-m = "^0.7.1"
stm32h7 = { version = "^0.14.0", default-features = false }
void = { version = "1.0.2", default-features = false }
cast = { version = "0.3.0", default-features = false }
nb = "1.0.0"
paste = "1.0.1"
bare-metal = "1.0.0"
sdio-host = { version = "0.5", optional = true }
embedded-sdmmc = { version = "0.3", 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]
version = "0.8.0"
default-features = false
features = ["medium-ethernet", "proto-ipv4", "socket-raw"]
optional = true
[dependencies.chrono]
version = "0.4"
default-features = false
optional = true
[dependencies.rand_core]
version = "0.6"
default-features = false
optional = true
[dev-dependencies]
cortex-m-rt = ">=0.6.15,<0.8"
cortex-m-rtic = { version = "0.5.8", default-features = false, features = ["cortex-m-7"] }
log = "0.4.11"
panic-halt = "0.2.0"
panic-rtt-target = { version = "0.1.0", features = ["cortex-m"] }
cfg-if = "1.0.0"
rtt-target = { version = "0.3.1", 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]
version = "0.8.0"
default-features = false
features = ["medium-ethernet", "proto-ipv4", "proto-ipv6", "socket-raw"]
[features]
default = ["unproven", "rt"]
unproven = ["embedded-hal/unproven"]
device-selected = []
revision_v = []
rm0433 = [] # aka. "single core" devices
rm0399 = [] # aka. "dual core" devices
rm0455 = [] # aka. "high memory integration" devices
rm0468 = [] # aka. "high speed" devices
dsi = []
cm4 = []
cm7 = []
smps = []
ltdc = ["embedded-display-controller"]
xspi = []
fmc = ["stm32-fmc"]
sdmmc = ["sdio-host"]
sdmmc-fatfs = ["embedded-sdmmc", "sdmmc"]
ethernet = ["smoltcp"]
rtc = ["chrono"]
crc = []
rand = ["rand_core"]
rt = ["stm32h7/rt"]
usb_hs = ["synopsys-usb-otg", "synopsys-usb-otg/hs"]
stm32h742 = ["stm32h7/stm32h743", "device-selected", "rm0433"]
stm32h743 = ["stm32h7/stm32h743", "device-selected", "rm0433"]
stm32h750 = ["stm32h7/stm32h743", "device-selected", "rm0433"]
stm32h753 = ["stm32h7/stm32h753", "device-selected", "rm0433"]
stm32h742v = ["stm32h7/stm32h743v", "device-selected", "revision_v", "rm0433"]
stm32h743v = ["stm32h7/stm32h743v", "device-selected", "revision_v", "rm0433"]
stm32h750v = ["stm32h7/stm32h743v", "device-selected", "revision_v", "rm0433"]
stm32h753v = ["stm32h7/stm32h753v", "device-selected", "revision_v", "rm0433"]
stm32h745cm7 = ["stm32h7/stm32h747cm7", "device-selected", "revision_v", "rm0399", "cm7", "smps"]
stm32h747cm7 = ["stm32h7/stm32h747cm7", "device-selected", "revision_v", "rm0399", "cm7", "smps", "dsi"]
stm32h755cm7 = ["stm32h7/stm32h747cm7", "device-selected", "revision_v", "rm0399", "cm7", "smps"]
stm32h757cm7 = ["stm32h7/stm32h747cm7", "device-selected", "revision_v", "rm0399", "cm7", "smps", "dsi"]
stm32h7a3 = ["stm32h7/stm32h7b3", "device-selected", "revision_v", "rm0455"]
stm32h7a3q = ["stm32h7/stm32h7b3", "device-selected", "revision_v", "rm0455", "smps"] # SMPS is only available on STM32H7A3xIxxQ and STM32H7A3xGxxQ versions.
stm32h7b0 = ["stm32h7/stm32h7b3", "device-selected", "revision_v", "rm0455"]
stm32h7b0q = ["stm32h7/stm32h7b3", "device-selected", "revision_v", "rm0455", "smps"] # SMPS is only available on STM32H7B0xIxxQ versions.
stm32h7b3 = ["stm32h7/stm32h7b3", "device-selected", "revision_v", "rm0455"]
stm32h7b3q = ["stm32h7/stm32h7b3", "device-selected", "revision_v", "rm0455", "smps"] # SMPS is only available on STM32H7B3xIxxQ versions.
stm32h723 = ["stm32h7/stm32h735", "device-selected", "revision_v", "rm0468"]
stm32h725 = ["stm32h7/stm32h735", "device-selected", "revision_v", "rm0468", "smps"]
stm32h730 = ["stm32h7/stm32h735", "device-selected", "revision_v", "rm0468"]
stm32h730q = ["stm32h7/stm32h735", "device-selected", "revision_v", "rm0468", "smps"] # SMPS is only available on STM32H730xxxxQ versions.
stm32h733 = ["stm32h7/stm32h735", "device-selected", "revision_v", "rm0468"]
stm32h735 = ["stm32h7/stm32h735", "device-selected", "revision_v", "rm0468", "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", "rm0433"]
[[example]]
name = "vos0"
required-features = ["revision_v", "rm0433"]
[[example]]
name = "fmc"
required-features = ["fmc", "rm0399"]
[[example]]
name = "qspi"
required-features = ["xspi", "rm0433"]
[[example]]
name = "qspi_mdma"
required-features = ["xspi", "rm0433"]
[[example]]
name = "qspi_flash_memory"
required-features = ["xspi", "rm0433"]
[[example]]
name = "octospi"
required-features = ["xspi", "rm0468"]
[[example]]
name = "octospi_hyperram"
required-features = ["xspi", "rm0468"]
[[example]]
name = "sdmmc"
required-features = ["sdmmc", "rm0433"]
[[example]]
name = "sdmmc_fat"
required-features = ["sdmmc", "sdmmc-fatfs", "stm32h747cm7"]
[[example]]
name = "ethernet-stm32h747i-disco"
required-features = ["rt", "stm32h747cm7", "ethernet"]
[[example]]
name = "ethernet-rtic-stm32h747i-disco"
required-features = ["rt", "stm32h747cm7", "ethernet"]
[[example]]
name = "ethernet-rtic-stm32h735g-dk"
required-features = ["rt", "stm32h735", "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"]