Skip to content

Commit 1a2fbea

Browse files
dotcypressliamkinneburrbull
authored
Switch to stm32g0-staging (#153)
* switch to nightly stm32g0 crate * add g0b1 feature flag * add gpio port e * add pac * fix dma * scr is only write * fix sms naming * use stm32g0-staging * safe set * fast fix * stm32g0b1 * code cleanup * code cleanup * code cleanup * remove broken examples --------- Co-authored-by: Liam Kinne <[email protected]> Co-authored-by: Andrey Zgarbul <[email protected]>
1 parent 47a292f commit 1a2fbea

33 files changed

+1018
-1078
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- stm32g070
1818
- stm32g071
1919
- stm32g081
20+
- stm32g0b1
2021
steps:
2122
- uses: actions/checkout@v2
2223
- uses: actions-rs/toolchain@v1

.github/workflows/clippy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
- stm32g070
1919
- stm32g071
2020
- stm32g081
21+
- stm32g0b1
2122
steps:
2223
- uses: actions/checkout@v1
2324
- run: rustup component add clippy

.zed/settings.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"lsp": {
3+
"rust-analyzer": {
4+
"initialization_options": {
5+
"cargo": {
6+
"features": ["stm32g071", "rt"]
7+
},
8+
"check": {
9+
"allTargets": false,
10+
"targets": "thumbv6m-none-eabi"
11+
}
12+
}
13+
}
14+
}
15+
}

Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ embedded-hal = "1.0.0"
2323
bare-metal = "1.0.0"
2424

2525
[dependencies.stm32g0]
26-
version = "0.15.1"
27-
features = ["rt"]
26+
package = "stm32g0-staging"
27+
version = "0.16.0"
2828

2929
[dependencies.void]
3030
default-features = false
@@ -48,6 +48,8 @@ stm32g031 = ["stm32g0/stm32g031", "stm32g0x1", "device-selected"]
4848
stm32g041 = ["stm32g0/stm32g041", "stm32g0x1", "device-selected"]
4949
stm32g071 = ["stm32g0/stm32g071", "stm32g0x1", "device-selected"]
5050
stm32g081 = ["stm32g0/stm32g081", "stm32g0x1", "device-selected"]
51+
stm32g0b1 = ["stm32g0/stm32g0b1", "stm32g0x1", "device-selected"]
52+
stm32g0c1 = ["stm32g0/stm32g0c1", "stm32g0x1", "device-selected"]
5153

5254
stm32g0x0 = []
5355
stm32g0x1 = []

examples/adc_ext_trig_double_dma_serial.rs

Lines changed: 0 additions & 200 deletions
This file was deleted.

examples/uart_dma.rs

Lines changed: 0 additions & 89 deletions
This file was deleted.

0 commit comments

Comments
 (0)