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

@@ -17,10 +17,6 @@ pub fn get_flash_regions() -> &'static [&'static FlashRegion] {
&FLASH_REGIONS
}
pub(crate) unsafe fn on_interrupt() {
unimplemented!();
}
pub(crate) unsafe fn lock() {
pac::FLASH.bank(0).cr().modify(|w| w.set_lock(true));
if is_dual_bank() {