-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Cargo.toml
173 lines (161 loc) · 8.63 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
[package]
name = "atsamx7x-hal"
version = "0.4.3-alpha3"
# in no particular order
authors = [
"Michal Fita <michal.fita@gmail.com>",
"Viktor Sonesten <viktor.sonesten@grepit.se>",
"Martin Mörtsell <martin.mortsell@grepit.se>",
"Ivar Jönsson <ivar.jonsson@grepit.se>",
]
license = "MIT OR Apache-2.0"
description = "HAL and peripheral access API for ATSAME70, ATSAMS70, ATSAMV70, and ATSAMV71 microcontrollers"
categories = [
"embedded",
"hardware-support",
"no-std"
]
keywords = [
"no-std",
"arm",
"cortex-m",
"embedded-hal",
"hal"
]
repository = "https://github.com/atsams-rs/atsamx7x-rust"
readme = "README.md"
edition = "2021"
rust-version = "1.70"
[dependencies]
cortex-m = { version = "0.7" }
embedded-hal = { version = "0.2.7" }
nb = "1"
fugit = "0.3.6"
paste = "1"
usb-device = "0.3.1"
bit-iter = "1"
rtic-monotonic = "1"
void = { version = "1", default-features = false }
strum = { version = "0.24.1", default-features = false, features = ["derive"]}
cfg-if = "1"
mcan-core = { version = "0.2", optional = true }
atsame70j19b = { version = "0.29.0-alpha3", optional = true }
atsame70j20b = { version = "0.29.0-alpha3", optional = true }
atsame70j21b = { version = "0.29.0-alpha3", optional = true }
atsame70n19b = { version = "0.29.0-alpha3", optional = true }
atsame70n20b = { version = "0.29.0-alpha3", optional = true }
atsame70n21b = { version = "0.29.0-alpha3", optional = true }
atsame70q19b = { version = "0.29.0-alpha3", optional = true }
atsame70q20b = { version = "0.29.0-alpha3", optional = true }
atsame70q21b = { version = "0.29.0-alpha3", optional = true }
atsams70j19b = { version = "0.29.0-alpha3", optional = true }
atsams70j20b = { version = "0.29.0-alpha3", optional = true }
atsams70j21b = { version = "0.29.0-alpha3", optional = true }
atsams70n19b = { version = "0.29.0-alpha3", optional = true }
atsams70n20b = { version = "0.29.0-alpha3", optional = true }
atsams70n21b = { version = "0.29.0-alpha3", optional = true }
atsams70q19b = { version = "0.29.0-alpha3", optional = true }
atsams70q20b = { version = "0.29.0-alpha3", optional = true }
atsams70q21b = { version = "0.29.0-alpha3", optional = true }
atsamv70j19b = { version = "0.29.0-alpha3", optional = true }
atsamv70j20b = { version = "0.29.0-alpha3", optional = true }
atsamv70n19b = { version = "0.29.0-alpha3", optional = true }
atsamv70n20b = { version = "0.29.0-alpha3", optional = true }
atsamv70q19b = { version = "0.29.0-alpha3", optional = true }
atsamv70q20b = { version = "0.29.0-alpha3", optional = true }
atsamv71j19b = { version = "0.29.0-alpha3", optional = true }
atsamv71j20b = { version = "0.29.0-alpha3", optional = true }
atsamv71j21b = { version = "0.29.0-alpha3", optional = true }
atsamv71n19b = { version = "0.29.0-alpha3", optional = true }
atsamv71n20b = { version = "0.29.0-alpha3", optional = true }
atsamv71n21b = { version = "0.29.0-alpha3", optional = true }
atsamv71q19b = { version = "0.29.0-alpha3", optional = true }
atsamv71q20b = { version = "0.29.0-alpha3", optional = true }
atsamv71q21b = { version = "0.29.0-alpha3", optional = true }
[features]
# Internal-only feature flags; do not set directly.
# Refer to §2 in the data sheet.
## Refer to §2.
__v71 = ["can"]
__v70 = ["can"]
__e70 = ["can"]
__s70 = []
__pins-64 = [] # J variants
__pins-100 = [] # N variants
__pins-144 = [] # Q variants
__flash-2M = [] # "21"-suffix
__flash-1M = [] # "20"-suffix
__flash-512K = [] # "19"-suffix
__device-selected = []
# External feature flags; part of the interface.
can = ["mcan-core"]
unproven = ["embedded-hal/unproven"]
usart-spi-host-without-select = []
reconfigurable-system-pins = []
same70j19b = ["atsame70j19b", "__e70", "__pins-64", "__flash-512K", "__device-selected"]
same70j20b = ["atsame70j20b", "__e70", "__pins-64", "__flash-1M", "__device-selected"]
same70j21b = ["atsame70j21b", "__e70", "__pins-64", "__flash-2M", "__device-selected"]
same70n19b = ["atsame70n19b", "__e70", "__pins-100", "__flash-512K", "__device-selected"]
same70n20b = ["atsame70n20b", "__e70", "__pins-100", "__flash-1M", "__device-selected"]
same70n21b = ["atsame70n21b", "__e70", "__pins-100", "__flash-2M", "__device-selected"]
same70q19b = ["atsame70q19b", "__e70", "__pins-144", "__flash-512K", "__device-selected"]
same70q20b = ["atsame70q20b", "__e70", "__pins-144", "__flash-1M", "__device-selected"]
same70q21b = ["atsame70q21b", "__e70", "__pins-144", "__flash-2M", "__device-selected"]
sams70j19b = ["atsams70j19b", "__s70", "__pins-64", "__flash-512K", "__device-selected"]
sams70j20b = ["atsams70j20b", "__s70", "__pins-64", "__flash-1M", "__device-selected"]
sams70j21b = ["atsams70j21b", "__s70", "__pins-64", "__flash-2M", "__device-selected"]
sams70n19b = ["atsams70n19b", "__s70", "__pins-100", "__flash-512K", "__device-selected"]
sams70n20b = ["atsams70n20b", "__s70", "__pins-100", "__flash-1M", "__device-selected"]
sams70n21b = ["atsams70n21b", "__s70", "__pins-100", "__flash-2M", "__device-selected"]
sams70q19b = ["atsams70q19b", "__s70", "__pins-144", "__flash-512K", "__device-selected"]
sams70q20b = ["atsams70q20b", "__s70", "__pins-144", "__flash-1M", "__device-selected"]
sams70q21b = ["atsams70q21b", "__s70", "__pins-144", "__flash-2M", "__device-selected"]
samv70j19b = ["atsamv70j19b", "__v70", "__pins-64", "__flash-512K", "__device-selected"]
samv70j20b = ["atsamv70j20b", "__v70", "__pins-64", "__flash-1M", "__device-selected"]
samv70n19b = ["atsamv70n19b", "__v70", "__pins-100", "__flash-512K", "__device-selected"]
samv70n20b = ["atsamv70n20b", "__v70", "__pins-100", "__flash-1M", "__device-selected"]
samv70q19b = ["atsamv70q19b", "__v70", "__pins-144", "__flash-512K", "__device-selected"]
samv70q20b = ["atsamv70q20b", "__v70", "__pins-144", "__flash-1M", "__device-selected"]
samv71j19b = ["atsamv71j19b", "__v71", "__pins-64", "__flash-512K", "__device-selected"]
samv71j20b = ["atsamv71j20b", "__v71", "__pins-64", "__flash-1M", "__device-selected"]
samv71j21b = ["atsamv71j21b", "__v71", "__pins-64", "__flash-2M", "__device-selected"]
samv71n19b = ["atsamv71n19b", "__v71", "__pins-100", "__flash-512K", "__device-selected"]
samv71n20b = ["atsamv71n20b", "__v71", "__pins-100", "__flash-1M", "__device-selected"]
samv71n21b = ["atsamv71n21b", "__v71", "__pins-100", "__flash-2M", "__device-selected"]
samv71q19b = ["atsamv71q19b", "__v71", "__pins-144", "__flash-512K", "__device-selected"]
samv71q20b = ["atsamv71q20b", "__v71", "__pins-144", "__flash-1M", "__device-selected"]
samv71q21b = ["atsamv71q21b", "__v71", "__pins-144", "__flash-2M", "__device-selected"]
rt = ["atsame70j19b?/rt", "atsame70j20b?/rt", "atsame70j21b?/rt",
"atsame70n19b?/rt", "atsame70n20b?/rt", "atsame70n21b?/rt",
"atsame70q19b?/rt", "atsame70q20b?/rt", "atsame70q21b?/rt",
"atsams70j19b?/rt", "atsams70j20b?/rt", "atsams70j21b?/rt",
"atsams70n19b?/rt", "atsams70n20b?/rt", "atsams70n21b?/rt",
"atsams70q19b?/rt", "atsams70q20b?/rt", "atsams70q21b?/rt",
"atsamv70j19b?/rt", "atsamv70j20b?/rt", "atsamv70n19b?/rt",
"atsamv70n20b?/rt", "atsamv70q19b?/rt", "atsamv70q20b?/rt",
"atsamv71j19b?/rt", "atsamv71j20b?/rt", "atsamv71j21b?/rt",
"atsamv71n19b?/rt", "atsamv71n20b?/rt", "atsamv71n21b?/rt",
"atsamv71q19b?/rt", "atsamv71q20b?/rt", "atsamv71q21b?/rt"]
critical-section = [
"atsame70j19b?/critical-section", "atsame70j20b?/critical-section",
"atsame70j21b?/critical-section", "atsame70n19b?/critical-section",
"atsame70n20b?/critical-section", "atsame70n21b?/critical-section",
"atsame70q19b?/critical-section", "atsame70q20b?/critical-section",
"atsame70q21b?/critical-section", "atsams70j19b?/critical-section",
"atsams70j20b?/critical-section", "atsams70j21b?/critical-section",
"atsams70n19b?/critical-section", "atsams70n20b?/critical-section",
"atsams70n21b?/critical-section", "atsams70q19b?/critical-section",
"atsams70q20b?/critical-section", "atsams70q21b?/critical-section",
"atsamv70j19b?/critical-section", "atsamv70j20b?/critical-section",
"atsamv70n19b?/critical-section", "atsamv70n20b?/critical-section",
"atsamv70q19b?/critical-section", "atsamv70q20b?/critical-section",
"atsamv71j19b?/critical-section", "atsamv71j20b?/critical-section",
"atsamv71j21b?/critical-section", "atsamv71n19b?/critical-section",
"atsamv71n20b?/critical-section", "atsamv71n21b?/critical-section",
"atsamv71q19b?/critical-section", "atsamv71q20b?/critical-section",
"atsamv71q21b?/critical-section"]
[package.metadata.docs.rs]
# docs.rs build target
default-target = "thumbv7em-none-eabihf"
# enable features to get maximum doc coverage
features = ["samv71q21b", "rt", "unproven", "usart-spi-host-without-select", "reconfigurable-system-pins"]