From 81fbc8cd4816309c930d7c8e0d1f38c2506dbcb3 Mon Sep 17 00:00:00 2001 From: ot0tot <36753790+ot0tot@users.noreply.github.com> Date: Mon, 9 Dec 2024 21:00:13 -0500 Subject: [PATCH 1/2] Fix DMA assignments for AIKONF4V2 --- configs/AIKONF4V2/config.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/configs/AIKONF4V2/config.h b/configs/AIKONF4V2/config.h index 830848e40..2f10b54b4 100644 --- a/configs/AIKONF4V2/config.h +++ b/configs/AIKONF4V2/config.h @@ -102,16 +102,16 @@ #define TIMER_PIN_MAPPING \ TIMER_PIN_MAP(0, PB6, 1, 0) \ - TIMER_PIN_MAP(1, PC6, 2, 0) \ - TIMER_PIN_MAP(2, PC7, 2, 0) \ - TIMER_PIN_MAP(3, PC8, 2, 0) \ + TIMER_PIN_MAP(1, PC6, 2, 1) \ + TIMER_PIN_MAP(2, PC7, 2, 1) \ + TIMER_PIN_MAP(3, PC8, 2, 1) \ TIMER_PIN_MAP(4, PC9, 2, 0) \ TIMER_PIN_MAP(5, PB0, 2, 0) \ TIMER_PIN_MAP(6, PB1, 2, 0) \ TIMER_PIN_MAP(5, PB3, 1, -1) -#define ADC1_DMA_OPT 0 -#define ADC_INSTANCE ADC1 +#define ADC3_DMA_OPT 1 +#define ADC_INSTANCE ADC3 #define MAG_I2C_INSTANCE I2CDEV_1 @@ -123,5 +123,3 @@ #define DEFAULT_VOLTAGE_METER_SCALE 110 #define PINIO1_BOX 40 - -#define DEFAULT_FEATURES (FEATURE_OSD | FEATURE_LED_STRIP) From 6fdd4f639651807459b29cfaf8e9e8ccf2be7a3a Mon Sep 17 00:00:00 2001 From: ot0tot <36753790+ot0tot@users.noreply.github.com> Date: Mon, 9 Dec 2024 21:34:48 -0500 Subject: [PATCH 2/2] Remove Motors 5&6 --- configs/AIKONF4V2/config.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/configs/AIKONF4V2/config.h b/configs/AIKONF4V2/config.h index 2f10b54b4..7fadc4cd8 100644 --- a/configs/AIKONF4V2/config.h +++ b/configs/AIKONF4V2/config.h @@ -70,8 +70,6 @@ #define MOTOR2_PIN PC7 #define MOTOR3_PIN PC8 #define MOTOR4_PIN PC9 -#define MOTOR5_PIN PB0 -#define MOTOR6_PIN PB1 #define LED_STRIP_PIN PB6 @@ -106,8 +104,6 @@ TIMER_PIN_MAP(2, PC7, 2, 1) \ TIMER_PIN_MAP(3, PC8, 2, 1) \ TIMER_PIN_MAP(4, PC9, 2, 0) \ - TIMER_PIN_MAP(5, PB0, 2, 0) \ - TIMER_PIN_MAP(6, PB1, 2, 0) \ TIMER_PIN_MAP(5, PB3, 1, -1) #define ADC3_DMA_OPT 1