From 4132b45631b65d326b8f4ad85acfbc752b64c18a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael?= <40151420+ldericher@users.noreply.github.com> Date: Wed, 20 Mar 2024 13:11:22 +0000 Subject: [PATCH] eliminate direct dependency on crate `stm32f1`; use `stm32f1xx-hal::pac` instead --- bluepill-rs/Cargo.lock | 1 - bluepill-rs/Cargo.toml | 1 - bluepill-rs/src/main.rs | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) 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};