1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#![deny(warnings)]

//! Board support crate for STMicroElectronics STM32H7 Nucleo-144 boards
//!
//! # Usage - see examples/
//! ```

#![no_std]


// - modules ------------------------------------------------------------------

pub mod board;
pub mod clocks;
pub mod led;
pub mod ethernet;
pub mod pins;
pub mod timer;

#[cfg(any(feature = "log-itm"))]
pub mod itm;

#[cfg(not(feature = "log-itm"))]
#[macro_export]
macro_rules! loggit {
    ($($arg:tt)*) => (
        cortex_m_semihosting::hprintln!($($arg)*).unwrap();
    )
}


// - exports ------------------------------------------------------------------

pub use stm32h7xx_hal as hal;
pub use hal::hal as embedded_hal;
pub use hal::pac;

pub use board::Board;