forked from stm32-rs/stm32f4xx-hal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
140 lines (117 loc) · 3.43 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
[package]
edition = "2018"
authors = ["Daniel Egger <[email protected]>"]
categories = [
"embedded",
"hardware-support",
"no-std",
]
description = "Peripheral access API for STM32F4 series microcontrollers"
documentation = "https://docs.rs/stm32f4xx-hal"
keywords = [
"arm",
"cortex-m",
"stm32f4xx",
"hal",
]
license = "0BSD"
name = "stm32f4xx-hal"
readme = "README.md"
repository = "https://github.com/stm32-rs/stm32f4xx-hal"
version = "0.8.3"
[package.metadata.docs.rs]
features = ["stm32f429", "rt", "usb_fs"]
targets = ["thumbv7em-none-eabihf"]
[dependencies]
cortex-m = ">=0.5.8,<0.7"
cortex-m-rt = "0.6.10"
nb = "0.1.2"
rand_core = "0.5.1"
stm32f4 = "0.11"
synopsys-usb-otg = { version = "0.2.0", features = ["cortex-m"], optional = true }
sdio-host = { version = "0.5.0", optional = true }
embedded-dma = "0.1.0"
[dependencies.bare-metal]
version = "0.2.5"
features = ["const-fn"]
[dependencies.cast]
default-features = false
version = "0.2.2"
[dependencies.void]
default-features = false
version = "1.0.2"
[dependencies.embedded-hal]
features = ["unproven"]
version = "0.2.3"
[dev-dependencies]
panic-semihosting = "0.5.3"
cortex-m-semihosting = "0.3.3"
arrayvec = { version = "0.5.1", default-features = false }
panic-halt = "0.2.0"
ssd1306 = "0.4"
embedded-graphics = "0.6.2"
usb-device = "0.2.5"
usbd-serial = "0.1.0"
micromath = "1.0.0"
[features]
device-selected = []
rt = ["stm32f4/rt"]
# Note: stm32f4 has only one feature for some very similar device families,
# so it's intended for e.g. stm32f405/415 to both enable stm32f4/stm32f405.
stm32f401 = ["stm32f4/stm32f401", "device-selected"]
stm32f405 = ["stm32f4/stm32f405", "device-selected"]
stm32f407 = ["stm32f4/stm32f407", "device-selected"]
stm32f410 = ["stm32f4/stm32f410", "device-selected"]
stm32f411 = ["stm32f4/stm32f411", "device-selected"]
stm32f412 = ["stm32f4/stm32f412", "device-selected"]
stm32f413 = ["stm32f4/stm32f413", "device-selected"]
stm32f415 = ["stm32f4/stm32f405", "device-selected"]
stm32f417 = ["stm32f4/stm32f407", "device-selected"]
stm32f423 = ["stm32f4/stm32f413", "device-selected"]
stm32f427 = ["stm32f4/stm32f427", "device-selected"]
stm32f429 = ["stm32f4/stm32f429", "device-selected"]
stm32f437 = ["stm32f4/stm32f427", "device-selected"]
stm32f439 = ["stm32f4/stm32f429", "device-selected"]
stm32f446 = ["stm32f4/stm32f446", "device-selected"]
stm32f469 = ["stm32f4/stm32f469", "device-selected"]
stm32f479 = ["stm32f4/stm32f469", "device-selected"]
usb_fs = ["synopsys-usb-otg", "synopsys-usb-otg/fs"]
usb_hs = ["synopsys-usb-otg", "synopsys-usb-otg/hs"]
sdio = ["sdio-host"]
[profile.dev]
debug = true
lto = true
[profile.release]
debug = true
lto = true
opt-level = "s"
[[example]]
name = "blinky-timer-irq"
required-features = ["rt", "stm32f411"]
[[example]]
name = "usb_serial"
required-features = ["rt", "stm32f401", "usb_fs"]
[[example]]
name = "sd"
required-features = ["rt", "stm32f405", "sdio"]
[[example]]
name = "delay-blinky"
required-features = ["rt", "stm32f411"]
[[example]]
name = "dwt-blinky"
required-features = ["rt", "stm32f429"]
[[example]]
name = "ssd1306-image"
required-features = ["rt", "stm32f411"]
[[example]]
name = "stopwatch-with-ssd1306-and-interrupts"
required-features = ["rt", "stm32f411"]
[[example]]
name = "analog-stopwatch-with-spi-ssd1306"
required-features = ["rt", "stm32f429"]
[[example]]
name = "rng-display"
required-features = ["rt", "stm32f407"]
[[example]]
name = "qei"
required-features = ["rt", "stm32f411"]