Skip to content

Commit 558357b

Browse files
authored
ext (#3)
1 parent cb7c960 commit 558357b

File tree

16 files changed

+1638
-828
lines changed

16 files changed

+1638
-828
lines changed

.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": ["stm32g474"]
7+
},
8+
"check": {
9+
"allTargets": false,
10+
"targets": "thumbv7em-none-eabihf"
11+
}
12+
}
13+
}
14+
}
15+
}

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
stm32f3 = { git = "https://github.com/stm32-rs/stm32-rs-nightlies", optional = true }
8-
stm32h7 = { git = "https://github.com/stm32-rs/stm32-rs-nightlies", features = ["critical-section"], optional = true }
7+
stm32f3 = { version = "0.16.0", optional = true }
8+
stm32h7 = { version = "0.16.0", optional = true }
99
stm32g4 = { version = "0.16.0", optional = true }
1010

1111
defmt = { version = "1", optional = true }

examples/stm32g4/src/bin/adc-trigger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ use stm32g4xx_hal::{
1616
dma::{self, TransferExt, channel::DMAExt, config::DmaConfig},
1717
gpio::GpioExt,
1818
hrtim::{HrControltExt, HrPwmBuilderExt},
19+
pac::{CorePeripherals, Peripherals},
1920
pwr::PwrExt,
2021
rcc::{self, RccExt},
21-
stm32::{CorePeripherals, Peripherals},
2222
};
2323

2424
#[entry]

examples/stm32g4/src/bin/capture-dma.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ use stm32g4xx_hal::{
1717
dma::{TransferExt, channel::DMAExt, config::DmaConfig},
1818
gpio::GpioExt,
1919
hrtim::{HrControltExt, HrPwmBuilderExt, external_event::EevInputExt},
20+
pac::Peripherals,
2021
pwr::PwrExt,
2122
rcc::{self, RccExt},
22-
stm32::Peripherals,
2323
};
2424

2525
#[entry]

examples/stm32g4/src/bin/capture.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ use stm32_hrtim::{
1717
use stm32g4xx_hal::{
1818
gpio::GpioExt,
1919
hrtim::{HrControltExt, HrPwmBuilderExt, external_event::EevInputExt},
20+
pac::Peripherals,
2021
pwr::PwrExt,
2122
rcc::{self, RccExt},
22-
stm32::Peripherals,
2323
};
2424

2525
#[entry]

examples/stm32g4/src/bin/eev-comp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ use stm32g4xx_hal::{
2121
delay::SYSTDelayExt,
2222
gpio::{GpioExt, SignalEdge},
2323
hrtim::{HrControltExt, HrPwmBuilderExt, external_event::EevInputExt},
24+
pac::{CorePeripherals, Peripherals},
2425
pwr::PwrExt,
2526
rcc::{self, RccExt},
2627
stasis::Freeze,
27-
stm32::{CorePeripherals, Peripherals},
2828
};
2929

3030
#[entry]

examples/stm32g4/src/bin/eev.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ use stm32_hrtim::{
1818
use stm32g4xx_hal::{
1919
gpio::GpioExt,
2020
hrtim::{HrControltExt, HrPwmBuilderExt, external_event::EevInputExt},
21+
pac::Peripherals,
2122
pwr::PwrExt,
2223
rcc::{self, RccExt},
23-
stm32::Peripherals,
2424
};
2525

2626
#[entry]

examples/stm32g4/src/bin/flt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ use stm32g4xx_hal::{
1818
delay::{DelayExt, SYSTDelayExt},
1919
gpio::GpioExt,
2020
hrtim::{HrControltExt, HrPwmBuilderExt, fault::FaultInput},
21+
pac::{CorePeripherals, Peripherals},
2122
pwr::PwrExt,
2223
rcc::{self, RccExt},
23-
stm32::{CorePeripherals, Peripherals},
2424
time::ExtU32,
2525
};
2626

examples/stm32g4/src/bin/hrtim.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ use stm32g4xx_hal::{
1313
delay::{DelayExt, SYSTDelayExt},
1414
gpio::GpioExt,
1515
hrtim::{HrControltExt, HrPwmBuilderExt},
16+
pac::{CorePeripherals, Peripherals},
1617
pwr::PwrExt,
1718
rcc::{self, RccExt},
18-
stm32::{CorePeripherals, Peripherals},
1919
time::ExtU32,
2020
};
2121

examples/stm32g4/src/bin/master.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ use stm32g4xx_hal::{
1515
delay::{DelayExt, SYSTDelayExt},
1616
gpio::GpioExt,
1717
hrtim::{HrControltExt, HrPwmBuilderExt},
18+
pac::{CorePeripherals, Peripherals},
1819
pwr::PwrExt,
1920
rcc::{self, RccExt},
20-
stm32::{CorePeripherals, Peripherals},
2121
time::ExtU32,
2222
};
2323

0 commit comments

Comments
 (0)