escw_mcu_stm32/lib.rs
1#![no_std]
2
3use escw_mcu::Mcu;
4
5pub mod hal;
6pub mod peripheral;
7
8mod memory;
9
10pub struct Stm32 {}
11
12impl Mcu for Stm32 {
13 #[cfg(feature = "io")]
14 type Io = peripheral::io::Io;
15
16 #[cfg(any(
17 feature = "uart1",
18 feature = "uart2",
19 feature = "uart3",
20 feature = "uart4",
21 feature = "uart5",
22 feature = "uart6",
23 feature = "uart7",
24 feature = "uart8",
25 ))]
26 type Uart = peripheral::uart::Stm32Usart;
27}