From db023eccc87b75bc0fb0f64a7b460e36c639b83c Mon Sep 17 00:00:00 2001 From: Ray Morris Date: Fri, 26 Jul 2024 11:39:37 -0500 Subject: [PATCH] AOCODARCF7MINI_V1: DSHOT_DMAR and V1 output order --- src/main/target/AOCODARCF7MINI/target.c | 4 +++- src/main/target/AOCODARCF7MINI/target.h | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/target/AOCODARCF7MINI/target.c b/src/main/target/AOCODARCF7MINI/target.c index f01d2c73e..72140f50f 100644 --- a/src/main/target/AOCODARCF7MINI/target.c +++ b/src/main/target/AOCODARCF7MINI/target.c @@ -47,11 +47,13 @@ timerHardware_t timerHardware[] = { #if defined(AOCODARCF7MINI_V2) DEF_TIM(TIM8, CH3, PC8, TIM_USE_OUTPUT_AUTO, 0, 0), // S5 D(2, 4, 7) DEF_TIM(TIM8, CH4, PC9, TIM_USE_OUTPUT_AUTO, 0, 0), // S6 D(2, 7, 7) + DEF_TIM(TIM4, CH1, PB6, TIM_USE_OUTPUT_AUTO, 0, 0), // S7 D(1, 0, 2) #else + DEF_TIM(TIM4, CH1, PB6, TIM_USE_OUTPUT_AUTO, 0, 0), // S5 DEF_TIM(TIM2, CH2, PB3, TIM_USE_OUTPUT_AUTO, 0, 0), // S6 D(1, 6, 3) + DEF_TIM(TIM2, CH1, PA15, TIM_USE_OUTPUT_AUTO, 0, 0), // S7 #endif - DEF_TIM(TIM4, CH1, PB6, TIM_USE_OUTPUT_AUTO, 0, 0), // S7 D(1, 0, 2) DEF_TIM(TIM4, CH2, PB7, TIM_USE_OUTPUT_AUTO, 0, 0), // S8 D(1, 3, 2) DEF_TIM(TIM1, CH1, PA8, TIM_USE_LED, 0, 0), // LED diff --git a/src/main/target/AOCODARCF7MINI/target.h b/src/main/target/AOCODARCF7MINI/target.h index 9f628963d..4a5f50687 100644 --- a/src/main/target/AOCODARCF7MINI/target.h +++ b/src/main/target/AOCODARCF7MINI/target.h @@ -163,3 +163,7 @@ #define USE_DSHOT #define USE_SERIALSHOT #define USE_ESC_SENSOR + +#if defined(AOCODARCF7MINI_V1) +#define USE_DSHOT_DMAR +#endif -- 2.11.4.GIT