1#![deny(warnings)]
2
3#![no_std]
9
10pub mod board;
13pub mod clocks;
14#[cfg(any(feature = "ethernet"))]
15pub mod ethernet;
16pub mod led;
17pub mod pins;
18pub mod timer;
19
20#[cfg(any(feature = "log-itm"))]
21pub mod itm;
22
23#[macro_export]
26macro_rules! loggit {
27 ($($arg:tt)*) => (
28 #[cfg(feature = "log-itm")]
29 {
30 let itm = unsafe { &mut *cortex_m::peripheral::ITM::PTR };
31 cortex_m::iprintln!(&mut itm.stim[0], $($arg)*);
32 }
33 #[cfg(feature = "log-semihosting")]
34 cortex_m_semihosting::hprintln!($($arg)*);
35 )
36}
37
38pub use hal::hal as embedded_hal;
41pub use hal::pac;
42pub use stm32h7xx_hal as hal;
43
44pub use board::Board;