From 6bbd6c3894be23da587c273b8b6ec5dbd5fa9511 Mon Sep 17 00:00:00 2001 From: Hydra Date: Sat, 1 Apr 2017 14:19:58 +0100 Subject: [PATCH] CF/BF - Fix STM32F4 DMA mappings for TIM8_CH2. For Tim8Ch2, it should be 0: DMA2_ST3/DMA_Channel_0 1: DMA2_ST2/DMA_Channel_7 https://github.com/cleanflight/cleanflight/pull/2683#discussion_r109164830 See DM00031020 STM32F405xx Reference Manual page 309. Thanks @ledvinap and @McGiverGim --- src/main/drivers/timer_def.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/drivers/timer_def.h b/src/main/drivers/timer_def.h index 8579a180f..43dc43b85 100644 --- a/src/main/drivers/timer_def.h +++ b/src/main/drivers/timer_def.h @@ -318,8 +318,8 @@ #define DEF_TIM_DMA_STR_1__TIM8_CH1 DMA2_ST2 #define DEF_TIM_DMA_STR_0__TIM8_CH1N DMA2_ST2 #define DEF_TIM_DMA_STR_1__TIM8_CH1N DMA2_ST2 -#define DEF_TIM_DMA_STR_0__TIM8_CH2 DMA2_ST3 -#define DEF_TIM_DMA_STR_1__TIM8_CH2 DMA2_ST2 +#define DEF_TIM_DMA_STR_0__TIM8_CH2 DMA2_ST2 +#define DEF_TIM_DMA_STR_1__TIM8_CH2 DMA2_ST3 #define DEF_TIM_DMA_STR_0__TIM8_CH2N DMA2_ST3 #define DEF_TIM_DMA_STR_1__TIM8_CH2N DMA2_ST2 #define DEF_TIM_DMA_STR_0__TIM8_CH3 DMA2_ST2