Move new async to asynch module to guard for models without flash interrupt

This commit is contained in:
Rasmus Melchior Jacobsen
2023-05-25 23:51:10 +02:00
parent 74104aafda
commit e08267df54
9 changed files with 36 additions and 55 deletions

View File

@ -1,10 +1,12 @@
use embedded_storage::nor_flash::{NorFlashError, NorFlashErrorKind};
#[cfg(all(feature = "nightly", flash_f4))]
pub mod asynch;
mod asynch;
#[cfg(flash)]
mod common;
#[cfg(all(feature = "nightly", flash_f4))]
pub use asynch::InterruptHandler;
#[cfg(flash)]
pub use common::*;