diff --git a/bluepill-rs/Cargo.lock b/bluepill-rs/Cargo.lock index 1e37b98..58f66bb 100644 --- a/bluepill-rs/Cargo.lock +++ b/bluepill-rs/Cargo.lock @@ -57,7 +57,6 @@ dependencies = [ "nb 1.1.0", "panic-halt", "panic-semihosting", - "stm32f1", "stm32f1xx-hal", "systick-monotonic", ] diff --git a/bluepill-rs/Cargo.toml b/bluepill-rs/Cargo.toml index 5e5d683..022b9d2 100644 --- a/bluepill-rs/Cargo.toml +++ b/bluepill-rs/Cargo.toml @@ -8,7 +8,6 @@ edition = "2021" [dependencies] # main deps embedded-hal = "1.0.0" -stm32f1 = { version = "0.15", features = ["stm32f103", "rt"] } stm32f1xx-hal = { version = "0.10.0", features = ["rt", "stm32f103", "medium"] } nb = "1" cortex-m = { version = "0.7.6", features = ["critical-section-single-core"] } diff --git a/bluepill-rs/src/main.rs b/bluepill-rs/src/main.rs index 874f987..333c3db 100644 --- a/bluepill-rs/src/main.rs +++ b/bluepill-rs/src/main.rs @@ -8,7 +8,7 @@ mod i2c_slave; // extern crate panic_halt; extern crate panic_semihosting; -#[rtic::app(device = stm32f1::stm32f103, peripherals = true)] +#[rtic::app(device = stm32f1xx_hal::pac)] mod app { use cortex_m::singleton; use stm32f1xx_hal::{dma, gpio, pac, prelude::*, serial, timer};