Skip to content

Commit

Permalink
Fix DMA assignments for AIKONF4V2 (betaflight#635)
Browse files Browse the repository at this point in the history
* Fix DMA assignments for AIKONF4V2

* Remove Motors 5&6
  • Loading branch information
ot0tot authored Dec 10, 2024
1 parent 93fd130 commit 0d8fbab
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions configs/AIKONF4V2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -102,16 +100,14 @@

#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

Expand All @@ -123,5 +119,3 @@
#define DEFAULT_VOLTAGE_METER_SCALE 110

#define PINIO1_BOX 40

#define DEFAULT_FEATURES (FEATURE_OSD | FEATURE_LED_STRIP)

0 comments on commit 0d8fbab

Please sign in to comment.