-
Notifications
You must be signed in to change notification settings - Fork 8
/
Cargo.toml
225 lines (168 loc) · 4.86 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
[package]
name = "lpc8xx-hal"
version = "0.10.0"
edition = "2018"
authors = [
"David Sawatzke <[email protected]>",
"Hanno Braun <[email protected]>"
]
description = "Hardware Abstraction Layer (HAL) for the NXP LPC800 series of ARM Cortex-M0+ microcontrollers"
documentation = "https://docs.rs/lpc8xx-hal"
repository = "https://github.com/lpc-rs/lpc8xx-hal"
license = "0BSD"
readme = "README.md"
categories = ["embedded", "hardware-support", "no-std"]
keywords = ["nxp", "lpc", "lpc82x", "lpc845"]
[badges]
travis-ci = { repository = "lpc-rs/lpc8xx-hal" }
[dependencies]
cortex-m = "0.7.2"
embedded-time = "0.12.0"
nb = "1.0.0"
# This should be in [dev-dependencies], but those can't be optional.
# Issue: https://github.com/rust-lang/cargo/issues/1596
[dependencies.trybuild]
version = "1.0.35"
optional = true
[dependencies.cortex-m-rt]
version = ">=0.6.15, <0.8"
optional = true
[dependencies.embedded-hal]
version = "0.2.4"
features = ["unproven"]
[dependencies.embedded-hal-alpha]
version = "=1.0.0-alpha.6"
package = "embedded-hal"
[dependencies.lpc82x-pac]
optional = true
version = "0.8.0"
[dependencies.lpc845-pac]
optional = true
version = "0.4.0"
[dependencies.num-traits]
version = "0.2.14"
default-features = false
[dependencies.void]
version = "1.0.2"
default-features = false
[dev-dependencies]
cortex-m-rtic = "0.6.0-rc.2"
[dev-dependencies.panic-rtt-target]
version = "0.1.1"
features = ["cortex-m"]
[dev-dependencies.rtt-target]
version = "0.3.0"
features = ["cortex-m"]
[build-dependencies]
crossterm = "0.22.1"
[features]
# Target hardware selection
822m101jdh20 = ["822", "20"]
822m101jhi33 = ["822", "33"]
824m201jdh20 = ["824", "20"]
824m201jhi33 = ["824", "33"]
#844m201jhi33 = ["844", "33"]
#844m201jbd48 = ["844", "48"]
#844m201jhi48 = ["844", "48"]
#844m201jbd64 = ["844", "64"]
845m301jhi33 = ["845", "33"]
845m301jbd48 = ["845", "48"]
845m301jhi48 = ["845", "48"]
845m301jbd64 = ["845", "64"]
# Selection of whole families or parts thereof as your target hardware.
82x = ["lpc82x-pac"]
822 = ["82x"]
824 = ["82x"]
845 = ["lpc845-pac"]
# Runtime support. Required when building an application, not a library.
#
# That these features depend on the `82x`/`845` features looks redundant, but is
# actually required by the build script to check the target selection.
82x-rt = ["82x", "cortex-m-rt", "lpc82x-pac/rt", "rt-selected"]
845-rt = ["845", "cortex-m-rt", "lpc845-pac/rt", "rt-selected"]
# Indicates that the feature selection is deliberate and should not cause any
# warnings.
no-target-warning = []
# Indicates to the build script that we're building docs, and it can skip
# whatever might not work or is not necessary.
docs = []
# Internal implementation detail. Used by HAL code to determine the exact
# hardware capabilites.
20 = []
33 = []
48 = []
64 = []
# Internal implementation detail. Used by other code to determine whether a
# runtime feature was selected.
rt-selected = []
[[example]]
name = "adc"
required-features = ["rt-selected", "845"]
[[example]]
name = "ctimer_blink"
required-features = ["rt-selected", "845"]
[[example]]
name = "ctimer_fade"
required-features = ["rt-selected", "845"]
[[example]]
name = "gpio_delay"
required-features = ["rt-selected"]
[[example]]
name = "gpio_dynamic"
required-features = ["rt-selected"]
[[example]]
name = "gpio_generic"
required-features = ["rt-selected", "845"]
[[example]]
name = "gpio_input"
required-features = ["rt-selected", "845"]
[[example]]
name = "gpio_sleep"
required-features = ["rt-selected"]
[[example]]
name = "gpio_simple"
required-features = ["rt-selected"]
[[example]]
name = "gpio_timer"
required-features = ["rt-selected"]
[[example]]
name = "i2c_master_slave"
required-features = ["rt-selected", "845"]
[[example]]
name = "i2c_master_slave_dma"
required-features = ["rt-selected", "845"]
[[example]]
name = "i2c_vl53l0x"
required-features = ["rt-selected", "82x"]
[[example]]
name = "i2c_eeprom"
required-features = ["rt-selected"]
[[example]]
name = "mrt_clock"
required-features = ["rt-selected", "845"]
[[example]]
name = "pinint"
required-features = ["rt-selected", "845"]
[[example]]
name = "pmu"
required-features = ["rt-selected", "82x"]
[[example]]
name = "rtic"
required-features = ["rt-selected", "845"]
[[example]]
name = "spi_apa102"
required-features = ["rt-selected"]
[[example]]
name = "usart"
required-features = ["rt-selected"]
[[example]]
name = "usart_dma"
required-features = ["rt-selected", "845"]
[profile.dev]
debug = true
[profile.release]
debug = true
lto = true
opt-level = "s"
[package.metadata.docs.rs]
features = ["845", "docs"]