Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DMA assignments for AIKONF4V2 #635

Merged
merged 2 commits into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)