platforms/stm32f7: always compile F722 firmware
This commit is contained in:
1 parent
626b7a8b95
commit
6f10f98e2f
4 files changed
-7
No files matched your search
@@ -27,6 +27,4 @@ cortex-m = "0.7"
|
|||||||
cortex-m-rt = "0.7"
|
cortex-m-rt = "0.7"
|
||||||
rtic = { version = "2.3", default-features = false, features = ["thumbv7-backend"] }
|
rtic = { version = "2.3", default-features = false, features = ["thumbv7-backend"] }
|
||||||
stm32f7 = { version = "0.16", default-features = false, features = ["rt", "stm32f722"] }
|
stm32f7 = { version = "0.16", default-features = false, features = ["rt", "stm32f722"] }
|
||||||
|
|
||||||
[target.'cfg(target_arch = "arm")'.dependencies]
|
|
||||||
panic-halt = "1"
|
panic-halt = "1"
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
#![cfg_attr(not(target_arch = "arm"), allow(dead_code))]
|
|
||||||
|
|
||||||
mod tim3_dshot;
|
mod tim3_dshot;
|
||||||
mod tim3_pwm;
|
mod tim3_pwm;
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
/// Defines the F722 application in the platform crate. All interrupt bindings
|
/// Defines the F722 application in the platform crate. All interrupt bindings
|
||||||
/// are the finite platform-owned superset. Profile activation determines which
|
/// are the finite platform-owned superset. Profile activation determines which
|
||||||
/// acknowledged route has initialized hardware.
|
/// acknowledged route has initialized hardware.
|
||||||
#[cfg(target_arch = "arm")]
|
|
||||||
macro_rules! f722_flight_application {
|
macro_rules! f722_flight_application {
|
||||||
($routes:path, $config:path) => {
|
($routes:path, $config:path) => {
|
||||||
#[allow(unused_imports)]
|
#[allow(unused_imports)]
|
||||||
@@ -324,5 +323,4 @@ macro_rules! f722_flight_application {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_arch = "arm")]
|
|
||||||
pub(crate) use f722_flight_application;
|
pub(crate) use f722_flight_application;
|
||||||
@@ -49,7 +49,6 @@ impl Tim2Periodic {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Acknowledges a TIM2 update interrupt.
|
/// Acknowledges a TIM2 update interrupt.
|
||||||
#[cfg(target_arch = "arm")]
|
|
||||||
pub fn acknowledge_update(&mut self) {
|
pub fn acknowledge_update(&mut self) {
|
||||||
// `UIF` is write-zero-to-clear (W0C).
|
// `UIF` is write-zero-to-clear (W0C).
|
||||||
self._peripheral.sr().write(|write| write.uif().clear());
|
self._peripheral.sr().write(|write| write.uif().clear());
|
||||||
|
|||||||
Reference in new issue
Block a user