diff options
| author | Rasmus Melchior Jacobsen <[email protected]> | 2023-03-29 13:52:52 +0200 |
|---|---|---|
| committer | Rasmus Melchior Jacobsen <[email protected]> | 2023-03-29 13:52:52 +0200 |
| commit | b7dfc8de10ceddd6c2e8c078e529eb5e266ea7db (patch) | |
| tree | 0662645a40345ebd53d9d68186b20fad13fb22e2 /embassy-stm32/src/lib.rs | |
| parent | ddbd5098658612e1421cdd081956c3e6ee3c92f8 (diff) | |
Let flash module be conditionally included
Diffstat (limited to 'embassy-stm32/src/lib.rs')
| -rw-r--r-- | embassy-stm32/src/lib.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/embassy-stm32/src/lib.rs b/embassy-stm32/src/lib.rs index ddd5c0fdd..2d49c85b4 100644 --- a/embassy-stm32/src/lib.rs +++ b/embassy-stm32/src/lib.rs | |||
| @@ -43,17 +43,8 @@ pub mod i2c; | |||
| 43 | 43 | ||
| 44 | #[cfg(crc)] | 44 | #[cfg(crc)] |
| 45 | pub mod crc; | 45 | pub mod crc; |
| 46 | #[cfg(any( | 46 | #[cfg(flash)] |
| 47 | flash_l0, flash_l1, flash_wl, flash_wb, flash_l4, flash_f3, flash_f4, flash_f7, flash_h7 | ||
| 48 | ))] | ||
| 49 | pub mod flash; | 47 | pub mod flash; |
| 50 | #[cfg(not(any( | ||
| 51 | flash_l0, flash_l1, flash_wl, flash_wb, flash_l4, flash_f3, flash_f4, flash_f7, flash_h7 | ||
| 52 | )))] | ||
| 53 | pub mod flash { | ||
| 54 | mod other; | ||
| 55 | pub use other::FlashRegion; | ||
| 56 | } | ||
| 57 | pub mod pwm; | 48 | pub mod pwm; |
| 58 | #[cfg(rng)] | 49 | #[cfg(rng)] |
| 59 | pub mod rng; | 50 | pub mod rng; |
