Skip to content

Commit 533b0eb

Browse files
committed
[Fixes #72] Foundation: rearrange nested features
Since Rust 1.60 it's possible to enable dependencies' features only for included dependencies. That's going to work for `rt` and `critical-section` and some other features in future.
1 parent 1a2acb8 commit 533b0eb

File tree

21 files changed

+292
-277
lines changed

21 files changed

+292
-277
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- id: boards
1919
run: echo "::set-output name=board_matrix::$(ls ./boards --indicator-style=none | jq -ncR '[inputs]')"
2020
- id: features
21-
run: echo "::set-output name=feature_matrix::[\"reconfigurable-system-pins\",\"usart-spi-host-without-select\"]"
21+
run: echo "::set-output name=feature_matrix::[\"reconfigurable-system-pins\",\"usart-spi-host-without-select\",\"rt\"]"
2222
outputs:
2323
pac_matrix: ${{ steps.pacs.outputs.pac_matrix }}
2424
board_matrix: ${{ steps.boards.outputs.board_matrix }}
@@ -111,7 +111,7 @@ jobs:
111111
- name: Install Clippy
112112
run: rustup component add clippy
113113
- name: Lint HAL
114-
run: cargo clippy --package atsamx7x-hal --no-deps --features samv71q21b,unproven,reconfigurable-system-pins -- --deny warnings
114+
run: cargo clippy --package atsamx7x-hal --no-deps --features samv71q21b,unproven,reconfigurable-system-pins,rt -- --deny warnings
115115

116116
clippy-examples:
117117
if: github.event.pull_request.head.repo.full_name != github.repository
@@ -146,8 +146,6 @@ jobs:
146146
- name: Install Rust (thumbv7em)
147147
run: rustup target add thumbv7em-none-eabihf
148148
- name: Build HAL documentation
149-
run: cargo doc --package atsamx7x-hal --no-deps --features samv71q21b,unproven,reconfigurable-system-pins
149+
run: cargo doc --package atsamx7x-hal --no-deps --features samv71q21b,unproven,reconfigurable-system-pins,rt
150150
- name: Build HAL doc tests
151-
run: cargo test --package atsamx7x-hal --doc --features samv71q21b,unproven --target x86_64-unknown-linux-gnu
152-
153-
151+
run: cargo test --package atsamx7x-hal --doc --features samv71q21b,unproven,rt --target x86_64-unknown-linux-gnu

Cargo.toml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,37 @@ exclude = [
99
"pac/templates"
1010
]
1111

12+
[patch.crates-io]
13+
atsame70j19b = { path = "../atsamx7x-pac/pac/atsame70j19b" }
14+
atsame70j20b = { path = "../atsamx7x-pac/pac/atsame70j20b" }
15+
atsame70j21b = { path = "../atsamx7x-pac/pac/atsame70j21b" }
16+
atsame70n19b = { path = "../atsamx7x-pac/pac/atsame70n19b" }
17+
atsame70n20b = { path = "../atsamx7x-pac/pac/atsame70n20b" }
18+
atsame70n21b = { path = "../atsamx7x-pac/pac/atsame70n21b" }
19+
atsame70q19b = { path = "../atsamx7x-pac/pac/atsame70q19b" }
20+
atsame70q20b = { path = "../atsamx7x-pac/pac/atsame70q20b" }
21+
atsame70q21b = { path = "../atsamx7x-pac/pac/atsame70q21b" }
22+
atsams70j19b = { path = "../atsamx7x-pac/pac/atsams70j19b" }
23+
atsams70j20b = { path = "../atsamx7x-pac/pac/atsams70j20b" }
24+
atsams70j21b = { path = "../atsamx7x-pac/pac/atsams70j21b" }
25+
atsams70n19b = { path = "../atsamx7x-pac/pac/atsams70n19b" }
26+
atsams70n20b = { path = "../atsamx7x-pac/pac/atsams70n20b" }
27+
atsams70n21b = { path = "../atsamx7x-pac/pac/atsams70n21b" }
28+
atsams70q19b = { path = "../atsamx7x-pac/pac/atsams70q19b" }
29+
atsams70q20b = { path = "../atsamx7x-pac/pac/atsams70q20b" }
30+
atsams70q21b = { path = "../atsamx7x-pac/pac/atsams70q21b" }
31+
atsamv70j19b = { path = "../atsamx7x-pac/pac/atsamv70j19b" }
32+
atsamv70j20b = { path = "../atsamx7x-pac/pac/atsamv70j20b" }
33+
atsamv70n19b = { path = "../atsamx7x-pac/pac/atsamv70n19b" }
34+
atsamv70n20b = { path = "../atsamx7x-pac/pac/atsamv70n20b" }
35+
atsamv70q19b = { path = "../atsamx7x-pac/pac/atsamv70q19b" }
36+
atsamv70q20b = { path = "../atsamx7x-pac/pac/atsamv70q20b" }
37+
atsamv71j19b = { path = "../atsamx7x-pac/pac/atsamv71j19b" }
38+
atsamv71j20b = { path = "../atsamx7x-pac/pac/atsamv71j20b" }
39+
atsamv71j21b = { path = "../atsamx7x-pac/pac/atsamv71j21b" }
40+
atsamv71n19b = { path = "../atsamx7x-pac/pac/atsamv71n19b" }
41+
atsamv71n20b = { path = "../atsamx7x-pac/pac/atsamv71n20b" }
42+
atsamv71n21b = { path = "../atsamx7x-pac/pac/atsamv71n21b" }
43+
atsamv71q19b = { path = "../atsamx7x-pac/pac/atsamv71q19b" }
44+
atsamv71q20b = { path = "../atsamx7x-pac/pac/atsamv71q20b" }
45+
atsamv71q21b = { path = "../atsamx7x-pac/pac/atsamv71q21b" }

hal/Cargo.toml

Lines changed: 94 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ edition = "2021"
2828
rust-version = "1.70"
2929

3030
[dependencies]
31-
cortex-m = "0.7"
31+
cortex-m = { version = "0.7" }
3232
embedded-hal = { version = "0.2.7" }
3333
nb = "1"
3434
fugit = "0.3.6"
@@ -40,39 +40,39 @@ void = { version = "1", default-features = false }
4040
strum = { version = "0.24.1", default-features = false, features = ["derive"]}
4141
cfg-if = "1"
4242
mcan-core = { version = "0.2", optional = true }
43-
atsame70j19b = { version = "0.29.0-alpha1", optional = true }
44-
atsame70j20b = { version = "0.29.0-alpha1", optional = true }
45-
atsame70j21b = { version = "0.29.0-alpha1", optional = true }
46-
atsame70n19b = { version = "0.29.0-alpha1", optional = true }
47-
atsame70n20b = { version = "0.29.0-alpha1", optional = true }
48-
atsame70n21b = { version = "0.29.0-alpha1", optional = true }
49-
atsame70q19b = { version = "0.29.0-alpha1", optional = true }
50-
atsame70q20b = { version = "0.29.0-alpha1", optional = true }
51-
atsame70q21b = { version = "0.29.0-alpha1", optional = true }
52-
atsams70j19b = { version = "0.29.0-alpha1", optional = true }
53-
atsams70j20b = { version = "0.29.0-alpha1", optional = true }
54-
atsams70j21b = { version = "0.29.0-alpha1", optional = true }
55-
atsams70n19b = { version = "0.29.0-alpha1", optional = true }
56-
atsams70n20b = { version = "0.29.0-alpha1", optional = true }
57-
atsams70n21b = { version = "0.29.0-alpha1", optional = true }
58-
atsams70q19b = { version = "0.29.0-alpha1", optional = true }
59-
atsams70q20b = { version = "0.29.0-alpha1", optional = true }
60-
atsams70q21b = { version = "0.29.0-alpha1", optional = true }
61-
atsamv70j19b = { version = "0.29.0-alpha1", optional = true }
62-
atsamv70j20b = { version = "0.29.0-alpha1", optional = true }
63-
atsamv70n19b = { version = "0.29.0-alpha1", optional = true }
64-
atsamv70n20b = { version = "0.29.0-alpha1", optional = true }
65-
atsamv70q19b = { version = "0.29.0-alpha1", optional = true }
66-
atsamv70q20b = { version = "0.29.0-alpha1", optional = true }
67-
atsamv71j19b = { version = "0.29.0-alpha1", optional = true }
68-
atsamv71j20b = { version = "0.29.0-alpha1", optional = true }
69-
atsamv71j21b = { version = "0.29.0-alpha1", optional = true }
70-
atsamv71n19b = { version = "0.29.0-alpha1", optional = true }
71-
atsamv71n20b = { version = "0.29.0-alpha1", optional = true }
72-
atsamv71n21b = { version = "0.29.0-alpha1", optional = true }
73-
atsamv71q19b = { version = "0.29.0-alpha1", optional = true }
74-
atsamv71q20b = { version = "0.29.0-alpha1", optional = true }
75-
atsamv71q21b = { version = "0.29.0-alpha1", optional = true }
43+
atsame70j19b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
44+
atsame70j20b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
45+
atsame70j21b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
46+
atsame70n19b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
47+
atsame70n20b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
48+
atsame70n21b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
49+
atsame70q19b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
50+
atsame70q20b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
51+
atsame70q21b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
52+
atsams70j19b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
53+
atsams70j20b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
54+
atsams70j21b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
55+
atsams70n19b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
56+
atsams70n20b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
57+
atsams70n21b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
58+
atsams70q19b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
59+
atsams70q20b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
60+
atsams70q21b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
61+
atsamv70j19b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
62+
atsamv70j20b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
63+
atsamv70n19b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
64+
atsamv70n20b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
65+
atsamv70q19b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
66+
atsamv70q20b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
67+
atsamv71j19b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
68+
atsamv71j20b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
69+
atsamv71j21b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
70+
atsamv71n19b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
71+
atsamv71n20b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
72+
atsamv71n21b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
73+
atsamv71q19b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
74+
atsamv71q20b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
75+
atsamv71q21b = { version = "0.29.0-alpha3", optional = true, features = ["critical-section"]}
7676

7777
[patch.crates-io]
7878
atsame70j19b = { path = "../../atsamx7x-pac/pac/atsame70j19b" }
@@ -113,97 +113,77 @@ atsamv71q21b = { path = "../../atsamx7x-pac/pac/atsamv71q21b" }
113113
# Internal-only feature flags; do not set directly.
114114
# Refer to §2 in the data sheet.
115115
## Refer to §2.
116-
v71 = ["can"]
117-
v70 = ["can"]
118-
e70 = ["can"]
119-
s70 = []
120-
pins-64 = [] # J variants
121-
pins-100 = [] # N variants
122-
pins-144 = [] # Q variants
123-
flash-2M = [] # "21"-suffix
124-
flash-1M = [] # "20"-suffix
125-
flash-512K = [] # "19"-suffix
126-
can = ["mcan-core"]
127-
128-
device-selected = []
116+
__v71 = ["can"]
117+
__v70 = ["can"]
118+
__e70 = ["can"]
119+
__s70 = []
120+
__pins-64 = [] # J variants
121+
__pins-100 = [] # N variants
122+
__pins-144 = [] # Q variants
123+
__flash-2M = [] # "21"-suffix
124+
__flash-1M = [] # "20"-suffix
125+
__flash-512K = [] # "19"-suffix
126+
__device-selected = []
129127

128+
# External feature flags; part of the interface.
129+
can = ["mcan-core"]
130130
unproven = ["embedded-hal/unproven"]
131131
usart-spi-host-without-select = []
132132
reconfigurable-system-pins = []
133133

134-
same70j19b = ["atsame70j19b", "e70", "pins-64", "flash-512K", "device-selected"]
135-
same70j19b-rt = ["same70j19b", "atsame70j19b/rt"]
136-
same70j20b = ["atsame70j20b", "e70", "pins-64", "flash-1M", "device-selected"]
137-
same70j20b-rt = ["same70j20b", "atsame70j20b/rt"]
138-
same70j21b = ["atsame70j21b", "e70", "pins-64", "flash-2M", "device-selected"]
139-
same70j21b-rt = ["same70j21b", "atsame70j21b/rt"]
140-
same70n19b = ["atsame70n19b", "e70", "pins-100", "flash-512K", "device-selected"]
141-
same70n19b-rt = ["same70n19b", "atsame70n19b/rt"]
142-
same70n20b = ["atsame70n20b", "e70", "pins-100", "flash-1M", "device-selected"]
143-
same70n20b-rt = ["same70n20b", "atsame70n20b/rt"]
144-
same70n21b = ["atsame70n21b", "e70", "pins-100", "flash-2M", "device-selected"]
145-
same70n21b-rt = ["same70n21b", "atsame70n21b/rt"]
146-
same70q19b = ["atsame70q19b", "e70", "pins-144", "flash-512K", "device-selected"]
147-
same70q19b-rt = ["same70q19b", "atsame70q19b/rt"]
148-
same70q20b = ["atsame70q20b", "e70", "pins-144", "flash-1M", "device-selected"]
149-
same70q20b-rt = ["same70q20b", "atsame70q20b/rt"]
150-
same70q21b = ["atsame70q21b", "e70", "pins-144", "flash-2M", "device-selected"]
151-
same70q21b-rt = ["same70q21b", "atsame70q21b/rt"]
134+
same70j19b = ["atsame70j19b", "__e70", "__pins-64", "__flash-512K", "__device-selected"]
135+
same70j20b = ["atsame70j20b", "__e70", "__pins-64", "__flash-1M", "__device-selected"]
136+
same70j21b = ["atsame70j21b", "__e70", "__pins-64", "__flash-2M", "__device-selected"]
137+
same70n19b = ["atsame70n19b", "__e70", "__pins-100", "__flash-512K", "__device-selected"]
138+
same70n20b = ["atsame70n20b", "__e70", "__pins-100", "__flash-1M", "__device-selected"]
139+
same70n21b = ["atsame70n21b", "__e70", "__pins-100", "__flash-2M", "__device-selected"]
140+
same70q19b = ["atsame70q19b", "__e70", "__pins-144", "__flash-512K", "__device-selected"]
141+
same70q20b = ["atsame70q20b", "__e70", "__pins-144", "__flash-1M", "__device-selected"]
142+
same70q21b = ["atsame70q21b", "__e70", "__pins-144", "__flash-2M", "__device-selected"]
143+
144+
sams70j19b = ["atsams70j19b", "__s70", "__pins-64", "__flash-512K", "__device-selected"]
145+
sams70j20b = ["atsams70j20b", "__s70", "__pins-64", "__flash-1M", "__device-selected"]
146+
sams70j21b = ["atsams70j21b", "__s70", "__pins-64", "__flash-2M", "__device-selected"]
147+
sams70n19b = ["atsams70n19b", "__s70", "__pins-100", "__flash-512K", "__device-selected"]
148+
sams70n20b = ["atsams70n20b", "__s70", "__pins-100", "__flash-1M", "__device-selected"]
149+
sams70n21b = ["atsams70n21b", "__s70", "__pins-100", "__flash-2M", "__device-selected"]
150+
sams70q19b = ["atsams70q19b", "__s70", "__pins-144", "__flash-512K", "__device-selected"]
151+
sams70q20b = ["atsams70q20b", "__s70", "__pins-144", "__flash-1M", "__device-selected"]
152+
sams70q21b = ["atsams70q21b", "__s70", "__pins-144", "__flash-2M", "__device-selected"]
153+
154+
samv70j19b = ["atsamv70j19b", "__v70", "__pins-64", "__flash-512K", "__device-selected"]
155+
samv70j20b = ["atsamv70j20b", "__v70", "__pins-64", "__flash-1M", "__device-selected"]
156+
samv70n19b = ["atsamv70n19b", "__v70", "__pins-100", "__flash-512K", "__device-selected"]
157+
samv70n20b = ["atsamv70n20b", "__v70", "__pins-100", "__flash-1M", "__device-selected"]
158+
samv70q19b = ["atsamv70q19b", "__v70", "__pins-144", "__flash-512K", "__device-selected"]
159+
samv70q20b = ["atsamv70q20b", "__v70", "__pins-144", "__flash-1M", "__device-selected"]
152160

153-
sams70j19b = ["atsams70j19b", "s70", "pins-64", "flash-512K", "device-selected"]
154-
sams70j19b-rt = ["sams70j19b", "atsams70j19b/rt"]
155-
sams70j20b = ["atsams70j20b", "s70", "pins-64", "flash-1M", "device-selected"]
156-
sams70j20b-rt = ["sams70j20b", "atsams70j20b/rt"]
157-
sams70j21b = ["atsams70j21b", "s70", "pins-64", "flash-2M", "device-selected"]
158-
sams70j21b-rt = ["sams70j21b", "atsams70j21b/rt"]
159-
sams70n19b = ["atsams70n19b", "s70", "pins-100", "flash-512K", "device-selected"]
160-
sams70n19b-rt = ["sams70n19b", "atsams70n19b/rt"]
161-
sams70n20b = ["atsams70n20b", "s70", "pins-100", "flash-1M", "device-selected"]
162-
sams70n20b-rt = ["sams70n20b", "atsams70n20b/rt"]
163-
sams70n21b = ["atsams70n21b", "s70", "pins-100", "flash-2M", "device-selected"]
164-
sams70n21b-rt = ["sams70n21b", "atsams70n21b/rt"]
165-
sams70q19b = ["atsams70q19b", "s70", "pins-144", "flash-512K", "device-selected"]
166-
sams70q19b-rt = ["sams70q19b", "atsams70q19b/rt"]
167-
sams70q20b = ["atsams70q20b", "s70", "pins-144", "flash-1M", "device-selected"]
168-
sams70q20b-rt = ["sams70q20b", "atsams70q20b/rt"]
169-
sams70q21b = ["atsams70q21b", "s70", "pins-144", "flash-2M", "device-selected"]
170-
sams70q21b-rt = ["sams70q21b", "atsams70q21b/rt"]
161+
samv71j19b = ["atsamv71j19b", "__v71", "__pins-64", "__flash-512K", "__device-selected"]
162+
samv71j20b = ["atsamv71j20b", "__v71", "__pins-64", "__flash-1M", "__device-selected"]
163+
samv71j21b = ["atsamv71j21b", "__v71", "__pins-64", "__flash-2M", "__device-selected"]
164+
samv71n19b = ["atsamv71n19b", "__v71", "__pins-100", "__flash-512K", "__device-selected"]
165+
samv71n20b = ["atsamv71n20b", "__v71", "__pins-100", "__flash-1M", "__device-selected"]
166+
samv71n21b = ["atsamv71n21b", "__v71", "__pins-100", "__flash-2M", "__device-selected"]
167+
samv71q19b = ["atsamv71q19b", "__v71", "__pins-144", "__flash-512K", "__device-selected"]
168+
samv71q20b = ["atsamv71q20b", "__v71", "__pins-144", "__flash-1M", "__device-selected"]
169+
samv71q21b = ["atsamv71q21b", "__v71", "__pins-144", "__flash-2M", "__device-selected"]
171170

172-
samv70j19b = ["atsamv70j19b", "v70", "pins-64", "flash-512K", "device-selected"]
173-
samv70j19b-rt = ["samv70j19b", "atsamv70j19b/rt"]
174-
samv70j20b = ["atsamv70j20b", "v70", "pins-64", "flash-1M", "device-selected"]
175-
samv70j20b-rt = ["samv70j20b", "atsamv70j20b/rt"]
176-
samv70n19b = ["atsamv70n19b", "v70", "pins-100", "flash-512K", "device-selected"]
177-
samv70n19b-rt = ["samv70n19b", "atsamv70n19b/rt"]
178-
samv70n20b = ["atsamv70n20b", "v70", "pins-100", "flash-1M", "device-selected"]
179-
samv70n20b-rt = ["samv70n20b", "atsamv70n20b/rt"]
180-
samv70q19b = ["atsamv70q19b", "v70", "pins-144", "flash-512K", "device-selected"]
181-
samv70q19b-rt = ["samv70q19b", "atsamv70q19b/rt"]
182-
samv70q20b = ["atsamv70q20b", "v70", "pins-144", "flash-1M", "device-selected"]
183-
samv70q20b-rt = ["samv70q20b", "atsamv70q20b/rt"]
171+
rt = ["atsame70j19b?/rt", "atsame70j20b?/rt", "atsame70j21b?/rt",
172+
"atsame70n19b?/rt", "atsame70n20b?/rt", "atsame70n21b?/rt",
173+
"atsame70q19b?/rt", "atsame70q20b?/rt", "atsame70q21b?/rt",
174+
"atsams70j19b?/rt", "atsams70j20b?/rt", "atsams70j21b?/rt",
175+
"atsams70n19b?/rt", "atsams70n20b?/rt", "atsams70n21b?/rt",
176+
"atsams70q19b?/rt", "atsams70q20b?/rt", "atsams70q21b?/rt",
177+
"atsamv70j19b?/rt", "atsamv70j20b?/rt", "atsamv70n19b?/rt",
178+
"atsamv70n20b?/rt", "atsamv70q19b?/rt", "atsamv70q20b?/rt",
179+
"atsamv71j19b?/rt", "atsamv71j20b?/rt", "atsamv71j21b?/rt",
180+
"atsamv71n19b?/rt", "atsamv71n20b?/rt", "atsamv71n21b?/rt",
181+
"atsamv71q19b?/rt", "atsamv71q20b?/rt", "atsamv71q21b?/rt"]
184182

185-
samv71j19b = ["atsamv71j19b", "v71", "pins-64", "flash-512K", "device-selected"]
186-
samv71j19b-rt = ["samv71j19b", "atsamv71j19b/rt"]
187-
samv71j20b = ["atsamv71j20b", "v71", "pins-64", "flash-1M", "device-selected"]
188-
samv71j20b-rt = ["samv71j20b", "atsamv71j20b/rt"]
189-
samv71j21b = ["atsamv71j21b", "v71", "pins-64", "flash-2M", "device-selected"]
190-
samv71j21b-rt = ["samv71j21b", "atsamv71j21b/rt"]
191-
samv71n19b = ["atsamv71n19b", "v71", "pins-100", "flash-512K", "device-selected"]
192-
samv71n19b-rt = ["samv71n19b", "atsamv71n19b/rt"]
193-
samv71n20b = ["atsamv71n20b", "v71", "pins-100", "flash-1M", "device-selected"]
194-
samv71n20b-rt = ["samv71n20b", "atsamv71n20b/rt"]
195-
samv71n21b = ["atsamv71n21b", "v71", "pins-100", "flash-2M", "device-selected"]
196-
samv71n21b-rt = ["samv71n21b", "atsamv71n21b/rt"]
197-
samv71q19b = ["atsamv71q19b", "v71", "pins-144", "flash-512K", "device-selected"]
198-
samv71q19b-rt = ["samv71q19b", "atsamv71q19b/rt"]
199-
samv71q20b = ["atsamv71q20b", "v71", "pins-144", "flash-1M", "device-selected"]
200-
samv71q20b-rt = ["samv71q20b", "atsamv71q20b/rt"]
201-
samv71q21b = ["atsamv71q21b", "v71", "pins-144", "flash-2M", "device-selected"]
202-
samv71q21b-rt = ["samv71q21b", "atsamv71q21b/rt"]
203183

204184
[package.metadata.docs.rs]
205185
# docs.rs build target
206186
default-target = "thumbv7em-none-eabihf"
207187

208188
# enable features to get maximum doc coverage
209-
features = ["samv71q21b-rt", "unproven", "usart-spi-host-without-select", "reconfigurable-system-pins"]
189+
features = ["samv71q21b", "rt", "unproven", "usart-spi-host-without-select", "reconfigurable-system-pins"]

hal/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fn main() -> Result<(), &'static str> {
1111
.is_ok()
1212
}
1313

14-
if !feat("device-selected") || ["e70", "s70", "v70", "v71"].iter().all(|&f| !feat(f)) {
14+
if !feat("__device-selected") || ["__e70", "__s70", "__v70", "__v71"].iter().all(|&f| !feat(f)) {
1515
return Err(
1616
"The HAL is built for a specific target device selected using a feature, but no such a feature was selected."
1717
);

0 commit comments

Comments
 (0)