mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-28 12:50:37 +00:00
fix g0 wait_busy
This commit is contained in:
parent
18386fed64
commit
c706e3797a
@ -101,7 +101,7 @@ pub(crate) unsafe fn clear_all_err() {
|
||||
|
||||
#[cfg(any(flash_g0x0, flash_g0x1))]
|
||||
fn wait_busy(){
|
||||
while pac::FLASH.sr().read().bsy() & pac::FLASH.sr().read().bsy2() {}
|
||||
while pac::FLASH.sr().read().bsy() | pac::FLASH.sr().read().bsy2() {}
|
||||
}
|
||||
|
||||
#[cfg(not(any(flash_g0x0, flash_g0x1)))]
|
||||
|
Loading…
x
Reference in New Issue
Block a user