Let flash module be conditionally included

This commit is contained in:
Rasmus Melchior Jacobsen
2023-03-29 13:52:52 +02:00
parent ddbd509865
commit b7dfc8de10
4 changed files with 4 additions and 24 deletions

View File

@ -43,17 +43,8 @@ pub mod i2c;
#[cfg(crc)]
pub mod crc;
#[cfg(any(
flash_l0, flash_l1, flash_wl, flash_wb, flash_l4, flash_f3, flash_f4, flash_f7, flash_h7
))]
#[cfg(flash)]
pub mod flash;
#[cfg(not(any(
flash_l0, flash_l1, flash_wl, flash_wb, flash_l4, flash_f3, flash_f4, flash_f7, flash_h7
)))]
pub mod flash {
mod other;
pub use other::FlashRegion;
}
pub mod pwm;
#[cfg(rng)]
pub mod rng;