diff --git a/platforms/stm32f7/Cargo.toml b/platforms/stm32f7/Cargo.toml index ae8843a..c11dac3 100644 --- a/platforms/stm32f7/Cargo.toml +++ b/platforms/stm32f7/Cargo.toml @@ -27,6 +27,4 @@ cortex-m = "0.7" cortex-m-rt = "0.7" rtic = { version = "2.3", default-features = false, features = ["thumbv7-backend"] } stm32f7 = { version = "0.16", default-features = false, features = ["rt", "stm32f722"] } - -[target.'cfg(target_arch = "arm")'.dependencies] panic-halt = "1" diff --git a/platforms/stm32f7/src/actuator/mod.rs b/platforms/stm32f7/src/actuator/mod.rs index cce5227..908c53c 100644 --- a/platforms/stm32f7/src/actuator/mod.rs +++ b/platforms/stm32f7/src/actuator/mod.rs @@ -1,5 +1,3 @@ -#![cfg_attr(not(target_arch = "arm"), allow(dead_code))] - mod tim3_dshot; mod tim3_pwm; diff --git a/platforms/stm32f7/src/f722/firmware.rs b/platforms/stm32f7/src/f722/firmware.rs index 28e6d48..95b93be 100644 --- a/platforms/stm32f7/src/f722/firmware.rs +++ b/platforms/stm32f7/src/f722/firmware.rs @@ -3,7 +3,6 @@ /// Defines the F722 application in the platform crate. All interrupt bindings /// are the finite platform-owned superset. Profile activation determines which /// acknowledged route has initialized hardware. -#[cfg(target_arch = "arm")] macro_rules! f722_flight_application { ($routes:path, $config:path) => { #[allow(unused_imports)] @@ -324,5 +323,4 @@ macro_rules! f722_flight_application { }; } -#[cfg(target_arch = "arm")] pub(crate) use f722_flight_application; diff --git a/platforms/stm32f7/src/f722/peripherals/tim2.rs b/platforms/stm32f7/src/f722/peripherals/tim2.rs index 250855e..bc388b6 100644 --- a/platforms/stm32f7/src/f722/peripherals/tim2.rs +++ b/platforms/stm32f7/src/f722/peripherals/tim2.rs @@ -49,7 +49,6 @@ impl Tim2Periodic { } /// Acknowledges a TIM2 update interrupt. - #[cfg(target_arch = "arm")] pub fn acknowledge_update(&mut self) { // `UIF` is write-zero-to-clear (W0C). self._peripheral.sr().write(|write| write.uif().clear());