Skip to content

Commit acc8699

Browse files
committed
Add new features for GPIO peripheral versions
This also adds two MCU versions (stm32f302x{6,8}) that we missed previously.
1 parent aa3863d commit acc8699

File tree

4 files changed

+32
-18
lines changed

4 files changed

+32
-18
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
- stm32f302xc
1919
- stm32f302xd
2020
- stm32f302xe
21+
- stm32f302x6
22+
- stm32f302x8
2123
- stm32f303xb
2224
- stm32f303xc
2325
- stm32f303xd

Cargo.toml

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -55,28 +55,36 @@ device-selected = []
5555
direct-call-deprecated = []
5656
rt = ["stm32f3/rt"]
5757

58+
gpio-f302 = []
59+
gpio-f303 = []
60+
gpio-f303e = []
61+
gpio-f333 = []
62+
gpio-f373 = []
63+
5864
# Any Changes here should be mirrored in README.md, src/lib.rs, and
5965
# .github/workflows/ci.yml.
60-
stm32f301 = ["stm32f3/stm32f301", "device-selected"]
61-
stm32f318 = ["stm32f3/stm32f301", "device-selected"]
66+
stm32f301 = ["gpio-f302", "stm32f3/stm32f301", "device-selected"]
67+
stm32f318 = ["gpio-f302", "stm32f3/stm32f301", "device-selected"]
6268
stm32f302 = ["stm32f3/stm32f302", "direct-call-deprecated"]
63-
stm32f302xb = ["stm32f302", "device-selected"]
64-
stm32f302xc = ["stm32f302", "device-selected"]
65-
stm32f302xd = ["stm32f302", "device-selected"]
66-
stm32f302xe = ["stm32f302", "device-selected"]
69+
stm32f302x6 = ["stm32f302", "gpio-f302", "device-selected"]
70+
stm32f302x8 = ["stm32f302", "gpio-f302", "device-selected"]
71+
stm32f302xb = ["stm32f302", "gpio-f303", "device-selected"]
72+
stm32f302xc = ["stm32f302", "gpio-f303", "device-selected"]
73+
stm32f302xd = ["stm32f302", "gpio-f303e", "device-selected"]
74+
stm32f302xe = ["stm32f302", "gpio-f303e", "device-selected"]
6775
stm32f303 = ["stm32f3/stm32f303", "direct-call-deprecated"]
68-
stm32f303xb = ["stm32f303", "stm32-usbd/ram_access_1x16", "device-selected"]
69-
stm32f303xc = ["stm32f303", "stm32-usbd/ram_access_1x16", "device-selected"]
70-
stm32f303xd = ["stm32f303", "stm32-usbd/ram_access_2x16", "device-selected"]
71-
stm32f303xe = ["stm32f303", "stm32-usbd/ram_access_2x16", "device-selected"]
72-
stm32f303x6 = ["stm32f303", "device-selected"]
73-
stm32f303x8 = ["stm32f303", "device-selected"]
74-
stm32f373 = ["stm32f3/stm32f373", "device-selected"]
75-
stm32f378 = ["stm32f3/stm32f373", "device-selected"]
76-
stm32f334 = ["stm32f3/stm32f3x4", "device-selected"]
77-
stm32f328 = ["stm32f3/stm32f3x8", "device-selected"]
78-
stm32f358 = ["stm32f3/stm32f3x8", "device-selected"]
79-
stm32f398 = ["stm32f3/stm32f3x8", "device-selected"]
76+
stm32f303x6 = ["stm32f303", "gpio-f333", "device-selected"]
77+
stm32f303x8 = ["stm32f303", "gpio-f333", "device-selected"]
78+
stm32f303xb = ["stm32f303", "gpio-f303", "stm32-usbd/ram_access_1x16", "device-selected"]
79+
stm32f303xc = ["stm32f303", "gpio-f303", "stm32-usbd/ram_access_1x16", "device-selected"]
80+
stm32f303xd = ["stm32f303", "gpio-f303e", "stm32-usbd/ram_access_2x16", "device-selected"]
81+
stm32f303xe = ["stm32f303", "gpio-f303e", "stm32-usbd/ram_access_2x16", "device-selected"]
82+
stm32f373 = ["gpio-f373", "stm32f3/stm32f373", "device-selected"]
83+
stm32f378 = ["gpio-f373", "stm32f3/stm32f373", "device-selected"]
84+
stm32f334 = ["gpio-f333", "stm32f3/stm32f3x4", "device-selected"]
85+
stm32f328 = ["gpio-f333", "stm32f3/stm32f3x8", "device-selected"]
86+
stm32f358 = ["gpio-f303", "stm32f3/stm32f3x8", "device-selected"]
87+
stm32f398 = ["gpio-f303e", "stm32f3/stm32f3x8", "device-selected"]
8088

8189
[profile.dev]
8290
debug = true

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ Note: `x` denotes any character in [a-z]
5959
* stm32f302xc
6060
* stm32f302xd
6161
* stm32f302xe
62+
* stm32f302x6
63+
* stm32f302x8
6264
* stm32f303xb
6365
* stm32f303xc
6466
* stm32f303xd

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ compile_error!(
4646
* stm32f302xc
4747
* stm32f302xd
4848
* stm32f302xe
49+
* stm32f302x6
50+
* stm32f302x8
4951
* stm32f303xb
5052
* stm32f303xc
5153
* stm32f303xd

0 commit comments

Comments
 (0)