summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/stm32_it.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/stm32_it.c')
-rw-r--r--stmhal/stm32_it.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/stmhal/stm32_it.c b/stmhal/stm32_it.c
index aaa1aaca7f..90826a5702 100644
--- a/stmhal/stm32_it.c
+++ b/stmhal/stm32_it.c
@@ -269,10 +269,15 @@ void SysTick_Handler(void) {
// work properly.
SysTick->CTRL;
- // Right now we just have the DMA controllers to process during this
- // interrupt and we use a custom dispatch handler. If this needs to
+ // Right now we have the storage and DMA controllers to process during
+ // this interrupt and we use custom dispatch handlers. If this needs to
// be generalised in the future then a dispatch table can be used as
// follows: ((void(*)(void))(systick_dispatch[uwTick & 0xf]))();
+
+ if (STORAGE_IDLE_TICK(uwTick)) {
+ NVIC->STIR = FLASH_IRQn;
+ }
+
if (DMA_IDLE_ENABLED() && DMA_IDLE_TICK(uwTick)) {
dma_idle_handler(uwTick);
}