-
Notifications
You must be signed in to change notification settings - Fork 219
Expand file tree
/
Copy pathCargo.toml
More file actions
223 lines (181 loc) · 8.5 KB
/
Cargo.toml
File metadata and controls
223 lines (181 loc) · 8.5 KB
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
#===============================================================================
# Package data
#===============================================================================
[package]
authors = [
"Wez Furlong <wez@wezfurlong.org>",
"Paul Sajna <sajattack@gmail.com>",
"Michael van Niekerk <mvniekerk@gmail.com>",
"Jesse Braham <jesse@beta7.io>",
"Bradley Harden <bradleyharden@gmail.com>",
]
categories = ["embedded", "hardware-support", "no-std"]
description = "HAL and Peripheral access API for ATSAMD11, ATSAMD21, ATSAMD51, ATSAME51, ATSAME53 and ATSAME54 microcontrollers"
documentation = "https://docs.rs/crate/atsamd-hal/"
edition = "2024"
keywords = ["no-std", "arm", "cortex-m", "embedded-hal"]
license = "MIT OR Apache-2.0"
name = "atsamd-hal"
readme = "README.md"
repository = "https://github.com/atsamd-rs/atsamd"
rust-version = "1.85.1"
version = "0.23.3"
[package.metadata.docs.rs]
features = ["samd21g", "samd21g-rt", "usb", "dma", "async", "rtic"]
#===============================================================================
# Required depdendencies
#===============================================================================
[dependencies]
aes = "0.8.4"
atsamd-hal-macros = {version = "0.3.0", path = "../atsamd-hal-macros"}
bitfield = "0.13"
bitflags = "2.6.0"
cipher = "0.4"
cortex-m = "0.7"
critical-section = "1.2.0"
embedded-hal-02 = {package = "embedded-hal", version = "0.2", features = ["unproven"]}
embedded-hal-1 = {package = "embedded-hal", version = "1.0.0"}
embedded-hal-nb = "1.0.0"
embedded-io = "0.6"
fugit = "0.3"
heapless = "0.8"
modular-bitfield = "0.11"
nb = "1.1"
num-traits = {version = "0.2.19", default-features = false}
opaque-debug = "0.3.0"
paste = "1.0.15"
portable-atomic = {version = "1.10.0", optional = true, features = ["critical-section"]}
rand_core = "0.9.1"
seq-macro = "0.3"
sorted-hlist = "0.2.0"
typenum = "1.12.0"
void = {version = "1.0", default-features = false}
#===============================================================================
# Optional depdendencies
#===============================================================================
defmt = {version = "1.0.1", optional = true}
embassy-sync = {version = "0.6.0", optional = true}
embedded-hal-async = {version = "1.0.0", optional = true}
embedded-io-async = {version = "0.6.1", optional = true}
embedded-sdmmc = {version = "0.8.1", optional = true}
futures = {version = "0.3.31", default-features = false, features = ["async-await"], optional = true}
jlink_rtt = {version = "0.2", optional = true}
mcan-core = {version = "0.2", optional = true}
rtic-monotonic = {version = "1.0", optional = true}
rtic-time = {version = "2.0", optional = true}
usb-device = {version = "0.3.2", optional = true}
#===============================================================================
# PACs
#===============================================================================
# The peripheral access crates (PAC) for each supported chip variant are listed
# here. Each is an optional dependency, which means each PAC name also appears
# as a Cargo feature. Users should not select PAC features manually. Instead,
# users should specify a corresponding variant (see below). The variant features
# will select the correct PAC, as well as other configuration features.
atsamd11c = {version = "0.14.2", path = "../pac/atsamd11c", optional = true}
atsamd11d = {version = "0.14.2", path = "../pac/atsamd11d", optional = true}
atsamd21e = {version = "0.14.2", path = "../pac/atsamd21e", optional = true}
atsamd21g = {version = "0.14.2", path = "../pac/atsamd21g", optional = true}
atsamd21j = {version = "0.14.2", path = "../pac/atsamd21j", optional = true}
atsamd51g = {version = "0.14.2", path = "../pac/atsamd51g", optional = true}
atsamd51j = {version = "0.14.2", path = "../pac/atsamd51j", optional = true}
atsamd51n = {version = "0.14.2", path = "../pac/atsamd51n", optional = true}
atsamd51p = {version = "0.14.2", path = "../pac/atsamd51p", optional = true}
atsame51g = {version = "0.14.2", path = "../pac/atsame51g", optional = true}
atsame51j = {version = "0.14.2", path = "../pac/atsame51j", optional = true}
atsame51n = {version = "0.14.2", path = "../pac/atsame51n", optional = true}
atsame53j = {version = "0.14.2", path = "../pac/atsame53j", optional = true}
atsame53n = {version = "0.14.2", path = "../pac/atsame53n", optional = true}
atsame54n = {version = "0.14.2", path = "../pac/atsame54n", optional = true}
atsame54p = {version = "0.14.2", path = "../pac/atsame54p", optional = true}
#===============================================================================
# Features
#===============================================================================
[features]
#-------------------------------------------------------------------------------
# Variant features
#-------------------------------------------------------------------------------
# Each of the following features corresponds to a supported chip variant. Users
# should select one (and only one) feature corresponding to their target chip.
# These features represent the public interface of the HAL and are not expected
# to change. But all implied features are considered implementation details and
# subject to change without notice.
samd11c = ["device", "dep:atsamd11c"]
samd11d = ["device", "dep:atsamd11d"]
samd21e = ["device", "dep:atsamd21e"]
samd21g = ["device", "dep:atsamd21g"]
samd21j = ["device", "dep:atsamd21j"]
samd21el = ["device", "dep:atsamd21e"]
samd21gl = ["device", "dep:atsamd21g"]
samd51g = ["device", "dep:atsamd51g"]
samd51j = ["device", "dep:atsamd51j"]
samd51n = ["device", "dep:atsamd51n"]
samd51p = ["device", "dep:atsamd51p"]
same51g = ["device", "dep:atsame51g"]
same51j = ["device", "dep:atsame51j"]
same51n = ["device", "dep:atsame51n"]
same53j = ["device", "dep:atsame53j"]
same53n = ["device", "dep:atsame53n"]
same54n = ["device", "dep:atsame54n"]
same54p = ["device", "dep:atsame54p"]
#-------------------------------------------------------------------------------
# RT features
#-------------------------------------------------------------------------------
# Instead of selecting a variant feature above, users can optionally select an
# `-rt` feature, which enables the `rt` feature of the corresponding PAC.
samd11c-rt = ["samd11c", "atsamd11c/rt"]
samd11d-rt = ["samd11d", "atsamd11d/rt"]
samd21e-rt = ["samd21e", "atsamd21e/rt"]
samd21g-rt = ["samd21g", "atsamd21g/rt"]
samd21j-rt = ["samd21j", "atsamd21j/rt"]
samd21el-rt = ["samd21el", "atsamd21e/rt"]
samd21gl-rt = ["samd21gl", "atsamd21g/rt"]
samd51g-rt = ["samd51g", "atsamd51g/rt"]
samd51j-rt = ["samd51j", "atsamd51j/rt"]
samd51n-rt = ["samd51n", "atsamd51n/rt"]
samd51p-rt = ["samd51p", "atsamd51p/rt"]
same51g-rt = ["same51g", "atsame51g/rt"]
same51j-rt = ["same51j", "atsame51j/rt"]
same51n-rt = ["same51n", "atsame51n/rt"]
same53j-rt = ["same53j", "atsame53j/rt"]
same53n-rt = ["same53n", "atsame53n/rt"]
same54n-rt = ["same54n", "atsame54n/rt"]
same54p-rt = ["same54p", "atsame54p/rt"]
#-------------------------------------------------------------------------------
# User-selectable features
#-------------------------------------------------------------------------------
# These features are user-selectable and enable additional features within the
# HAL, like USB or DMA support.
async = [
"embassy-sync",
"embedded-hal-async",
"embedded-io-async",
"futures",
"portable-atomic",
]
can = ["mcan-core"]
defmt = ["dep:defmt"]
dma = []
max-channels = ["dma"]
rtic = ["rtic-monotonic", "rtic-time", "portable-atomic"]
sdmmc = ["embedded-sdmmc"]
use_rtt = ["jlink_rtt"]
undoc-features = []
# USB features
usb = ["usb-device"] # Default with 2048 byte buffer
# USB buffer sizes
# These denote the size of the global buffer for all USB endpoints.
# The buffer is split between all device endpoints equally
usb-buffer-1k = ["usb"] # 1024 byte buffer shared between all USB endpoints
usb-buffer-2k = ["usb"] # 2048 byte buffer shared between all USB endpoints (Default)
usb-buffer-4k = ["usb"] # 4096 byte buffer shared between all USB endpoints
usb-buffer-8k = ["usb"] # 8192 byte buffer shared between all USB endpoints
#===============================================================================
# Implementation-details
#===============================================================================
# The remaining features are considered implementation details and subject to
# change without notice. Users should not specify any of these features
# manually.
# The `device` feature tells the HAL that a device has been selected from the
# feature list. It exists mostly to provide better error messages.
device = []