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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
#![cfg_attr(not(test), no_std)] #![allow(non_camel_case_types)] #[cfg(not(any(feature = "stm32l0x1", feature = "stm32l0x2", feature = "stm32l0x3")))] compile_error!( "This crate requires one of the following features enabled: stm32l0x1, stm32l0x2, stm32l0x3" ); use embedded_hal as hal; #[cfg(feature = "stm32l0x1")] pub use stm32l0::stm32l0x1 as pac; #[cfg(feature = "stm32l0x2")] pub use stm32l0::stm32l0x2 as pac; #[cfg(feature = "stm32l0x3")] pub use stm32l0::stm32l0x3 as pac; pub mod adc; pub mod aes; pub mod calibration; pub mod delay; pub mod dma; pub mod encoder; pub mod exti; #[cfg(any( feature = "eeprom-128", feature = "eeprom-256", feature = "eeprom-512", feature = "eeprom-1024", feature = "eeprom-2048", feature = "eeprom-3072", feature = "eeprom-6144", ))] pub mod flash; pub mod gpio; #[cfg(any( feature = "io-STM32L021", feature = "io-STM32L031", feature = "io-STM32L051", feature = "io-STM32L071", ))] pub mod i2c; pub mod lptim; pub mod mco; pub mod prelude; pub mod pwm; pub mod pwr; pub mod rcc; #[cfg(any(feature = "stm32l0x2", feature = "stm32l0x3"))] pub mod rng; pub mod rtc; #[cfg(any( feature = "io-STM32L021", feature = "io-STM32L031", feature = "io-STM32L051", feature = "io-STM32L071", ))] pub mod serial; pub mod spi; pub mod syscfg; pub mod time; pub mod timer; #[cfg(all( feature = "stm32-usbd", any(feature = "stm32l0x2", feature = "stm32l0x3") ))] pub mod usb; pub mod watchdog;