diff options
Diffstat (limited to 'chip/stm32/dma.c')
-rw-r--r-- | chip/stm32/dma.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chip/stm32/dma.c b/chip/stm32/dma.c index d169cf7f45..3b45544190 100644 --- a/chip/stm32/dma.c +++ b/chip/stm32/dma.c @@ -230,7 +230,11 @@ void dma_test(enum dma_channel channel) void dma_init(void) { +#ifdef CHIP_FAMILY_STM32L4 + STM32_RCC_AHB1ENR |= STM32_RCC_AHB1ENR_DMA1EN; +#else STM32_RCC_AHBENR |= STM32_RCC_HB_DMA1; +#endif #ifdef CHIP_FAMILY_STM32F3 STM32_RCC_AHBENR |= STM32_RCC_HB_DMA2; #endif |