2021-03-05 22:37:18 +01:00
|
|
|
#![no_std]
|
|
|
|
#![feature(generic_associated_types)]
|
|
|
|
#![feature(asm)]
|
|
|
|
#![feature(type_alias_impl_trait)]
|
2021-03-17 19:02:22 -05:00
|
|
|
#![feature(min_type_alias_impl_trait)]
|
2021-03-05 22:37:18 +01:00
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
2021-03-09 14:23:02 +01:00
|
|
|
#[cfg(not(any(feature = "stm32l0x1", feature = "stm32l0x2", feature = "stm32l0x3",)))]
|
2021-03-05 22:37:18 +01:00
|
|
|
compile_error!(
|
|
|
|
"No chip feature activated. You must activate exactly one of the following features: "
|
|
|
|
);
|
|
|
|
|
|
|
|
#[cfg(any(
|
|
|
|
all(feature = "stm32l0x1", feature = "stm32l0x2"),
|
|
|
|
all(feature = "stm32l0x1", feature = "stm32l0x3"),
|
|
|
|
all(feature = "stm32l0x2", feature = "stm32l0x3"),
|
|
|
|
))]
|
|
|
|
compile_error!(
|
|
|
|
"Multile chip features activated. You must activate exactly one of the following features: "
|
|
|
|
);
|
|
|
|
|
2021-03-19 15:26:20 -05:00
|
|
|
pub use embassy_stm32::{fmt, hal, interrupt, pac};
|
2021-03-05 22:37:18 +01:00
|
|
|
|
|
|
|
pub mod exti;
|