mirror of
https://github.com/embassy-rs/embassy.git
synced 2026-03-13 18:08:44 +00:00
Add interrupt-driven async flash operations for STM32G0 and STM32G4 series, enabling non-blocking erase and write operations when using dual-bank flash (code runs from bank 1 while operating on bank 2). Changes: - Add WAKER, on_interrupt, async write/erase/wait_ready to g.rs - Add data cache handling for G4 (disable during flash ops, reset after) - Enable async flash module for G0/G4 in mod.rs - Add flash_async example for G0 - Add new stm32g474 example directory with flash_async example Tested on NUCLEO-G474RE.