From 578caf042e99ce52851e775abeea1d0a1fec6dcd Mon Sep 17 00:00:00 2001 From: ot0tot <36753790+ot0tot@users.noreply.github.com> Date: Mon, 27 Jan 2025 10:42:23 -0500 Subject: [PATCH] Update config.h (#679) Fix DMA and timer map --- configs/BAYCK_DOLPHIN/config.h | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/configs/BAYCK_DOLPHIN/config.h b/configs/BAYCK_DOLPHIN/config.h index 49087371..206ba01f 100644 --- a/configs/BAYCK_DOLPHIN/config.h +++ b/configs/BAYCK_DOLPHIN/config.h @@ -73,7 +73,6 @@ #define SPI1_SDO_PIN PA7 #define SPI2_SDO_PIN PB15 #define SPI3_SDO_PIN PC12 -#define CAMERA_CONTROL_PIN PB7 #define ADC_VBAT_PIN PC2 #define ADC_CURR_PIN PC1 #define BARO_CS_PIN PB3 @@ -85,26 +84,17 @@ #define GYRO_2_CS_PIN PC14 #define TIMER_PIN_MAPPING \ - TIMER_PIN_MAP( 0, MOTOR1_PIN , 2, 7) \ - TIMER_PIN_MAP( 1, MOTOR2_PIN , 2, 2) \ - TIMER_PIN_MAP( 2, MOTOR3_PIN , 1, 6) \ + TIMER_PIN_MAP( 0, MOTOR1_PIN , 2, 0) \ + TIMER_PIN_MAP( 1, MOTOR2_PIN , 2, 1) \ + TIMER_PIN_MAP( 2, MOTOR3_PIN , 1, 2) \ TIMER_PIN_MAP( 3, MOTOR4_PIN , 1, 3) \ - TIMER_PIN_MAP( 4, MOTOR5_PIN , 2, 9) \ - TIMER_PIN_MAP( 5, MOTOR6_PIN , 2, 8) \ - TIMER_PIN_MAP( 6, LED_STRIP_PIN , 1, 13) \ - TIMER_PIN_MAP( 7, CAMERA_CONTROL_PIN , 1, 15) \ - TIMER_PIN_MAP( 8, UART1_TX_PIN , 1, 5) \ - TIMER_PIN_MAP( 9, UART1_RX_PIN , 1, 4) \ - TIMER_PIN_MAP(10, UART3_TX_PIN , 1, 1) \ - TIMER_PIN_MAP(11, UART3_RX_PIN , 2, 2) \ - TIMER_PIN_MAP(12, UART6_TX_PIN , 2, 0) \ - TIMER_PIN_MAP(13, UART6_RX_PIN , 2, 10) \ - TIMER_PIN_MAP(14, UART2_TX_PIN , 2, 14) \ - TIMER_PIN_MAP(15, UART4_RX_PIN , 1, 12) + TIMER_PIN_MAP( 4, MOTOR5_PIN , 2, 4) \ + TIMER_PIN_MAP( 5, MOTOR6_PIN , 2, 5) \ + TIMER_PIN_MAP( 6, LED_STRIP_PIN , 1, 6) -#define ADC_INSTANCE ADC1 -#define ADC1_DMA_OPT 11 -#define MAG_I2C_INSTANCE I2CDEV_1 +#define ADC_INSTANCE ADC1 +#define ADC1_DMA_OPT 11 +#define MAG_I2C_INSTANCE I2CDEV_1 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH