platforms/stm32f7: remove GEPRC UART diagnostic

This commit is contained in:
Onur Özkan committed 2026-08-01 22:28:51 +03:00
1 parent 59b604fdba
commit 626b7a8b95
6 files changed
-129

No files matched your search

-30
View File
@@ -19,7 +19,6 @@ mod f722;
/// Dependencies used only while the platform expands its private RTIC macro.
/// They stay crate-private: board binaries never name them.
#[cfg(target_arch = "arm")]
pub(crate) mod __platform_internal {
pub(crate) use cortex_m as cm;
pub(crate) use cortex_m_rt as cmrt;
@@ -31,15 +30,6 @@ pub(crate) mod __platform_internal {
pub(crate) use stm32f7 as pac;
}
/// The isolated diagnostic macro expands an entry attribute in a board binary.
/// Rust macro visibility requires this one dependency to be reachable; it is
/// not a platform configuration or execution API.
#[cfg(target_arch = "arm")]
#[doc(hidden)]
pub mod __macro_support {
pub use cortex_m_rt;
}
/// Construction or validation failure for a declarative F722 board.
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum BoardError {
@@ -430,26 +420,6 @@ macro_rules! flight_firmware {
};
}
/// Installs the isolated GEPRC UART2 physical-route diagnostic image.
///
/// This diagnostic never installs the flight application. It remains a
/// platform-owned image and is intentionally separate from board declarations.
#[macro_export]
macro_rules! geprc_uart2_wire_test {
() => {
#[$crate::__macro_support::cortex_m_rt::entry]
fn main() -> ! {
$crate::__private::geprc_uart2_wire_test()
}
};
}
/// Implementation support consumed only by the exported firmware macros.
#[doc(hidden)]
pub mod __private {
pub use crate::f722::geprc_uart2_wire_test;
}
/// Link anchor for the platform-owned F722 RTIC application.
#[doc(hidden)]
pub fn firmware_anchor() {}