-
Notifications
You must be signed in to change notification settings - Fork 104
/
Cargo.toml
205 lines (163 loc) · 3.93 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
[package]
name = "stm32l4xx-hal"
version = "0.7.1"
authors = ["Scott Mabin <[email protected]>"]
description = "Hardware abstraction layer for the stm32l4xx chips"
keywords = ["no-std", "stm32l4xx", "stm32l4", "embedded", "embedded-hal"]
categories = [
"embedded",
"hardware-support",
"no-std",
]
repository = "https://github.com/MabezDev/stm32l4xx-hal"
readme = "README.md"
license = "MIT OR Apache-2.0"
exclude = [
".travis.yml",
".gitignore",
"docs/",
"docs/*"
]
edition = "2018"
[dependencies]
cortex-m = "0.7"
nb = "0.1.1"
stm32l4 = "0.14.0"
embedded-dma = "0.1"
bxcan = ">=0.4, <0.7"
fugit = "0.3.5"
bitfield = "0.13.2"
[dependencies.rand_core]
version = "0.6.2"
default-features = false
[dependencies.cast]
version = "0.2.2"
default-features = false
[dependencies.void]
version = "1.0.2"
default-features = false
[dependencies.stable_deref_trait]
default-features = false
version = "1.1"
[dependencies.embedded-hal]
version = "0.2.6"
features = ["unproven"]
[dependencies.stm32-usbd]
version = "0.6.0"
optional = true
[dependencies.synopsys-usb-otg]
version = "0.2.4"
features = ["cortex-m", "fs"]
optional = true
[dependencies.time]
version = "0.3"
default-features = false
[package.metadata.docs.rs]
features = ["rt", "stm32l432", "stm32-usbd"]
[features]
rt = ["stm32l4/rt"]
unproven = ["embedded-hal/unproven"]
otg_fs = ["synopsys-usb-otg"]
# L4x1
stm32l431 = [ "stm32l4/stm32l4x1" ]
stm32l451 = [ "stm32l4/stm32l4x1" ]
stm32l471 = [ "stm32l4/stm32l4x1" ]
# L412
stm32l412 = [ "stm32l4/stm32l412" ]
stm32l422 = [ "stm32l4/stm32l412" ]
# L4x2
stm32l432 = [ "stm32l4/stm32l4x2" ]
stm32l442 = [ "stm32l4/stm32l4x2" ]
stm32l452 = [ "stm32l4/stm32l4x2" ]
stm32l462 = [ "stm32l4/stm32l4x2" ]
# L4x3
stm32l433 = [ "stm32l4/stm32l4x3" ]
stm32l443 = [ "stm32l4/stm32l4x3" ]
# L4x5
stm32l475 = [ "stm32l4/stm32l4x5" ]
# L4x6
stm32l476 = [ "stm32l4/stm32l4x6" ]
stm32l486 = [ "stm32l4/stm32l4x6" ]
stm32l496 = [ "stm32l4/stm32l4x6" ]
stm32l4a6 = [ "stm32l4/stm32l4x6" ]
# L4+ series PAC support??
#stm32l4p5 = [ "stm32l4/stm32l4x5" ]
#stm32l4q5 = [ "stm32l4/stm32l4x5" ]
#stm32l4r5 = [ "stm32l4/stm32l4x5" ]
#stm32l4s5 = [ "stm32l4/stm32l4x5" ]
# L4x7
#stm32l4r7 = [ "stm32l4/stm32l4x7" ]
#stm32l4s7 = [ "stm32l4/stm32l4x7" ]
## L4x9
stm32l4r9 = [ "stm32l4/stm32l4r9" ] # PAC has an L4r9 specific variation
stm32l4s9 = [ "stm32l4/stm32l4r9" ]
[dev-dependencies]
panic-halt = "0.2.0"
panic-semihosting = "0.5.0"
cortex-m-semihosting = "0.3.5"
cortex-m-rt = "0.7"
usb-device = "0.2.3"
usbd-serial = "0.1.0"
heapless = "0.5"
[dev-dependencies.cortex-m-rtic]
version = "0.5.9"
default-features = false
features = ["cortex-m-7"]
[dev-dependencies.panic-rtt-target]
version = "0.1.1"
features = ["cortex-m"]
[dev-dependencies.rtt-target]
version = "0.2.2"
features = ["cortex-m"]
[profile.dev]
incremental = false
codegen-units = 1
[profile.release]
codegen-units = 1
debug = true
lto = true
[[example]]
name = "adc"
required-features = ["rt"]
[[example]]
name = "can-loopback"
required-features = ["rt", "stm32l433" ] # CAN peripheral on ever series except L41/L42, gate so CI will pass
[[example]]
name = "irq_button"
required-features = ["rt"]
[[example]]
name = "qspi"
required-features = ["rt", "stm32l476"] # L433/43 have no QSPI peripheral and are highly likely to be used
[[example]]
name = "rng"
required-features = ["unproven"]
[[example]]
name = "rtc_alarm"
required-features = ["rt"]
[[example]]
name = "rtic_frame_serial_dma"
required-features = ["rt"]
[[example]]
name = "spi_dma_rxtx"
required-features = ["rt"]
[[example]]
name = "serial_echo_rtic"
required-features = ["rt"]
[[example]]
name = "timer"
required-features = ["rt"]
[[example]]
name = "usb_serial"
required-features = ["rt", "stm32-usbd"]
[[example]]
name = "otg_fs_serial"
required-features = ["rt", "otg_fs"]
[[example]]
name = "i2c_write"
required-features = ["stm32l433"]
[[example]]
name = "lptim_rtic"
required-features = ["rt"]
[[example]]
name = "adc_dma"
required-features = ["rt"]