From 5fab8f7a9abe0a29bd690c8821538469ee9f7781 Mon Sep 17 00:00:00 2001 From: Koen Zandberg Date: Wed, 19 Aug 2020 16:09:55 +0200 Subject: [PATCH] stm32: Add define for when DMA channel selection is not supported This adds a placeholder define for when the DMA peripheral available on the MCU doesn't support channel/trigger filtering. This is the case on the stm32f1 and stm32f3 family. --- cpu/stm32/include/periph_cpu.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cpu/stm32/include/periph_cpu.h b/cpu/stm32/include/periph_cpu.h index f74611c03d..37fd12278f 100644 --- a/cpu/stm32/include/periph_cpu.h +++ b/cpu/stm32/include/periph_cpu.h @@ -441,6 +441,12 @@ typedef enum { DMA_MEM_TO_MEM = 2, /**< Memory to memory */ } dma_mode_t; +/** + * @brief DMA channel/trigger configuration for DMA peripherals without + * channel/trigger filtering such as the stm32f1 and stm32f3. + */ +#define DMA_CHAN_CONFIG_UNSUPPORTED (UINT8_MAX) + /** * @name DMA Increment modes * @{