diff options
| author | Thales Fragoso <[email protected]> | 2021-06-24 19:36:42 -0300 |
|---|---|---|
| committer | Thales Fragoso <[email protected]> | 2021-06-24 19:41:04 -0300 |
| commit | 1c33a3b94cf60af99af81ad8966c81ebd8fc3166 (patch) | |
| tree | 7788cff782ece9492398b57f96cd704426899780 | |
| parent | 210104e6dc704e9c37cf5d3d11f64a22496d1eb5 (diff) | |
#[cfg] exti
| -rw-r--r-- | embassy-stm32/src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-stm32/src/lib.rs b/embassy-stm32/src/lib.rs index 39ccd54f0..383843d04 100644 --- a/embassy-stm32/src/lib.rs +++ b/embassy-stm32/src/lib.rs | |||
| @@ -16,7 +16,6 @@ pub mod interrupt; | |||
| 16 | pub mod time; | 16 | pub mod time; |
| 17 | 17 | ||
| 18 | // Always-present hardware | 18 | // Always-present hardware |
| 19 | pub mod exti; | ||
| 20 | pub mod gpio; | 19 | pub mod gpio; |
| 21 | pub mod rcc; | 20 | pub mod rcc; |
| 22 | 21 | ||
| @@ -31,6 +30,8 @@ pub mod dac; | |||
| 31 | pub mod dma; | 30 | pub mod dma; |
| 32 | #[cfg(all(eth, feature = "net"))] | 31 | #[cfg(all(eth, feature = "net"))] |
| 33 | pub mod eth; | 32 | pub mod eth; |
| 33 | #[cfg(exti_v1)] | ||
| 34 | pub mod exti; | ||
| 34 | #[cfg(i2c)] | 35 | #[cfg(i2c)] |
| 35 | pub mod i2c; | 36 | pub mod i2c; |
| 36 | #[cfg(pwr)] | 37 | #[cfg(pwr)] |
| @@ -83,10 +84,9 @@ pub fn init(config: Config) -> Peripherals { | |||
| 83 | let p = Peripherals::take(); | 84 | let p = Peripherals::take(); |
| 84 | 85 | ||
| 85 | unsafe { | 86 | unsafe { |
| 86 | exti::init(); | ||
| 87 | |||
| 88 | #[cfg(dma)] | 87 | #[cfg(dma)] |
| 89 | dma::init(); | 88 | dma::init(); |
| 89 | #[cfg(exti_v1)] | ||
| 90 | exti::init(); | 90 | exti::init(); |
| 91 | rcc::init(config.rcc); | 91 | rcc::init(config.rcc); |
| 92 | } | 92 | } |
