eliminate direct dependency on crate stm32f1; use stm32f1xx-hal::pac instead

This commit is contained in:
Jörn-Michael Miehe 2024-03-20 13:11:22 +00:00
parent 29e343b9c2
commit 4132b45631
3 changed files with 1 additions and 3 deletions

View file

@ -57,7 +57,6 @@ dependencies = [
"nb 1.1.0", "nb 1.1.0",
"panic-halt", "panic-halt",
"panic-semihosting", "panic-semihosting",
"stm32f1",
"stm32f1xx-hal", "stm32f1xx-hal",
"systick-monotonic", "systick-monotonic",
] ]

View file

@ -8,7 +8,6 @@ edition = "2021"
[dependencies] [dependencies]
# main deps # main deps
embedded-hal = "1.0.0" embedded-hal = "1.0.0"
stm32f1 = { version = "0.15", features = ["stm32f103", "rt"] }
stm32f1xx-hal = { version = "0.10.0", features = ["rt", "stm32f103", "medium"] } stm32f1xx-hal = { version = "0.10.0", features = ["rt", "stm32f103", "medium"] }
nb = "1" nb = "1"
cortex-m = { version = "0.7.6", features = ["critical-section-single-core"] } cortex-m = { version = "0.7.6", features = ["critical-section-single-core"] }

View file

@ -8,7 +8,7 @@ mod i2c_slave;
// extern crate panic_halt; // extern crate panic_halt;
extern crate panic_semihosting; extern crate panic_semihosting;
#[rtic::app(device = stm32f1::stm32f103, peripherals = true)] #[rtic::app(device = stm32f1xx_hal::pac)]
mod app { mod app {
use cortex_m::singleton; use cortex_m::singleton;
use stm32f1xx_hal::{dma, gpio, pac, prelude::*, serial, timer}; use stm32f1xx_hal::{dma, gpio, pac, prelude::*, serial, timer};