Skip to content

Commit f7fc79e

Browse files
committed
rgb_led: disable stream after init
1 parent 6d44659 commit f7fc79e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/driver/mcu/stm32/rgb_led.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,10 @@ void rgb_led_init() {
103103
dma_init.PeriphBurst = LL_DMA_PBURST_SINGLE;
104104
#endif
105105
LL_DMA_Init(rgb_dma->port, rgb_dma->stream_index, &dma_init);
106+
LL_DMA_DisableStream(rgb_dma->port, rgb_dma->stream_index);
106107

107108
LL_DMA_EnableIT_TC(rgb_dma->port, rgb_dma->stream_index);
109+
dma_clear_flag_tc(rgb_dma);
108110
interrupt_enable(rgb_dma->irq, DMA_PRIORITY);
109111
}
110112

0 commit comments

Comments
 (0)