Skip to content

Commit

Permalink
Fix KAKUTEF4WING timer and DMA assignments (betaflight#590)
Browse files Browse the repository at this point in the history
  • Loading branch information
ot0tot authored Oct 11, 2024
1 parent 3a41ad8 commit 96a7fa5
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions configs/KAKUTEF4WING/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,36 +81,36 @@
#define PINIO2_PIN PB15

#define TIMER_PIN_MAPPING \
TIMER_PIN_MAP( 0, MOTOR1_PIN , 1, 1) \
TIMER_PIN_MAP( 1, MOTOR2_PIN , 1, 1) \
TIMER_PIN_MAP( 2, SERVO1_PIN , 2, 0) \
TIMER_PIN_MAP( 3, SERVO2_PIN , 2, 0) \
TIMER_PIN_MAP( 4, SERVO3_PIN , 2, 1) \
TIMER_PIN_MAP( 5, SERVO4_PIN , 2, 0) \
TIMER_PIN_MAP( 6, LED_STRIP_PIN , 1, 0)
TIMER_PIN_MAP( 0, MOTOR1_PIN , 1, 1) \
TIMER_PIN_MAP( 1, MOTOR2_PIN , 1, 1) \
TIMER_PIN_MAP( 2, SERVO1_PIN , 2, -1) \
TIMER_PIN_MAP( 3, SERVO2_PIN , 2, -1) \
TIMER_PIN_MAP( 4, SERVO3_PIN , 2, -1) \
TIMER_PIN_MAP( 5, SERVO4_PIN , 2, -1) \
TIMER_PIN_MAP( 6, LED_STRIP_PIN, 1, 0)


#define ADC1_DMA_OPT 0
#define ADC1_DMA_OPT 1

#define MIXER_MODE MIXER_FLYING_WING

#define MAG_I2C_INSTANCE (I2CDEV_2)
#define BARO_I2C_INSTANCE (I2CDEV_2)

#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
#define SERIALRX_UART SERIAL_PORT_USART3
#define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
#define SERIALRX_UART SERIAL_PORT_USART3
#define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
#define DEFAULT_VOLTAGE_METER_SCALE 110
#define DEFAULT_CURRENT_METER_SCALE 250
#define SYSTEM_HSE_MHZ 8
#define MAX7456_SPI_INSTANCE SPI2
#define FLASH_SPI_INSTANCE SPI3
#define PINIO1_CONFIG 129
#define PINIO1_BOX 40
#define PINIO2_CONFIG 129
#define PINIO2_BOX 41
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW270_DEG
#define GYRO_1_ALIGN_YAW 2700
#define DEFAULT_VOLTAGE_METER_SCALE 110
#define DEFAULT_CURRENT_METER_SCALE 250
#define SYSTEM_HSE_MHZ 8
#define MAX7456_SPI_INSTANCE SPI2
#define FLASH_SPI_INSTANCE SPI3
#define PINIO1_CONFIG 129
#define PINIO1_BOX 40
#define PINIO2_CONFIG 129
#define PINIO2_BOX 41
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW270_DEG
#define GYRO_1_ALIGN_YAW 2700

0 comments on commit 96a7fa5

Please sign in to comment.