stm32l1xx_hal/
lib.rs

1#![no_std]
2#![allow(non_camel_case_types)]
3
4#[cfg(not(any(
5    feature = "stm32l100",
6    feature = "stm32l151",
7    feature = "stm32l152",
8    feature = "stm32l162"
9)))]
10compile_error!("This crate requires one of the following features enabled: stm32l100, stm32l151, stm32l152 or stm32l162");
11
12extern crate bare_metal;
13extern crate cast;
14extern crate cortex_m;
15extern crate void;
16
17pub extern crate embedded_hal as hal;
18pub extern crate nb;
19pub extern crate stm32l1;
20
21pub use nb::block;
22
23#[cfg(feature = "stm32l100")]
24pub use stm32l1::stm32l100 as stm32;
25
26#[cfg(any(feature = "stm32l151", feature = "stm32l152"))]
27pub use crate::stm32l1::stm32l151 as stm32;
28
29#[cfg(feature = "stm32l162")]
30pub use crate::stm32l1::stm32l162 as stm32;
31
32#[cfg(feature = "rt")]
33pub use crate::stm32::interrupt;
34
35mod bb;
36
37pub mod adc;
38pub mod dac;
39pub mod delay;
40pub mod dma;
41pub mod exti;
42pub mod gpio;
43pub mod i2c;
44pub mod prelude;
45pub mod pwm;
46pub mod qei;
47pub mod rcc;
48pub mod serial;
49pub mod spi;
50pub mod time;
51pub mod timer;
52pub mod watchdog;