diff options
Diffstat (limited to 'stmhal/stm32_it.c')
-rw-r--r-- | stmhal/stm32_it.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/stmhal/stm32_it.c b/stmhal/stm32_it.c index 14049fe6d1..8a00c1469e 100644 --- a/stmhal/stm32_it.c +++ b/stmhal/stm32_it.c @@ -77,6 +77,7 @@ #include "uart.h" #include "storage.h" #include "can.h" +#include "dma.h" extern void __fatal_error(const char*); extern PCD_HandleTypeDef pcd_handle; @@ -267,6 +268,10 @@ void SysTick_Handler(void) { // the COUNTFLAG bit, which makes the logic in sys_tick_get_microseconds // work properly. SysTick->CTRL; + + if (DMA_IDLE_ENABLED() && DMA_IDLE_TICK(uwTick)) { + dma_idle_handler(); + } } /******************************************************************************/ |