Skip to content

Commit

Permalink
Motor pins were arranged according to timer usage and uart4 was removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
orbittechnologyx committed Sep 17, 2024
1 parent ad55604 commit cdabfd7
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions configs/ORBITF405/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,26 @@
#define USE_BARO_DPS310

#define BEEPER_PIN PC15

#define MOTOR1_PIN PB0
#define MOTOR2_PIN PB1
#define MOTOR3_PIN PB10
#define MOTOR4_PIN PC8
#define MOTOR5_PIN PC9
#define MOTOR6_PIN PA15
#define MOTOR7_PIN PB6
#define MOTOR8_PIN PB7
#define MOTOR4_PIN PB11
#define MOTOR5_PIN PA15
#define MOTOR6_PIN PB6
#define MOTOR7_PIN PB7
#define MOTOR8_PIN PA1
#define LED_STRIP_PIN PA0
#define CAMERA_CONTROL_PIN PB14
#define PINIO1_PIN PC8
#define RX_PPM_PIN PA3
#define LED_STRIP_PIN PA8
#define UART1_TX_PIN PA9
#define UART2_TX_PIN PA2
#define UART3_TX_PIN PC10
#define UART4_TX_PIN PA0
#define UART6_TX_PIN PC6
#define UART1_RX_PIN PA10
#define UART2_RX_PIN PA3
#define UART3_RX_PIN PC11
#define UART4_RX_PIN PA1
#define UART5_RX_PIN PD2
#define UART6_RX_PIN PC7
#define INVERTER_PIN_UART2 PB2
Expand All @@ -72,28 +73,26 @@
#define SPI1_SDO_PIN PA7
#define SPI2_SDO_PIN PC3
#define SPI3_SDO_PIN PB5
#define CAMERA_CONTROL_PIN PB14
#define ADC_VBAT_PIN PC0
#define ADC_RSSI_PIN PC5
#define ADC_CURR_PIN PC1
#define SDCARD_SPI_CS_PIN PC14
#define FLASH_CS_PIN PB15
#define PINIO1_PIN PB11
#define MAX7456_SPI_CS_PIN PB12
#define GYRO_1_EXTI_PIN PC4
#define GYRO_1_CS_PIN PA4

#define TIMER_PIN_MAPPING \
TIMER_PIN_MAP( 0, PB0, 2, 0) \
TIMER_PIN_MAP( 1, PB1, 2, 0) \
TIMER_PIN_MAP( 2, PB10, 1, 0) \
TIMER_PIN_MAP( 3, PC8, 2, 0) \
TIMER_PIN_MAP( 4, PC9, 2, 0) \
TIMER_PIN_MAP( 5, PA15, 1, 0) \
TIMER_PIN_MAP( 6, PB6, 1, 0) \
TIMER_PIN_MAP( 7, PB7, 1, 0) \
TIMER_PIN_MAP( 8, PB14, 3, -1) \
TIMER_PIN_MAP( 9, PA8, 1, 0)
TIMER_PIN_MAP( 0, MOTOR1_PIN, 2, 0) \
TIMER_PIN_MAP( 1, MOTOR2_PIN, 2, 0) \
TIMER_PIN_MAP( 2, MOTOR3_PIN, 1, 0) \
TIMER_PIN_MAP( 3, MOTOR4_PIN, 1, 0) \
TIMER_PIN_MAP( 4, MOTOR5_PIN, 1, 0) \
TIMER_PIN_MAP( 5, MOTOR6_PIN, 1, 0) \
TIMER_PIN_MAP( 6, MOTOR7_PIN, 1, 0) \
TIMER_PIN_MAP( 7, MOTOR8_PIN, 2, 0) \
TIMER_PIN_MAP( 8, LED_STRIP_PIN, 2, 0) \
TIMER_PIN_MAP( 9, CAMERA_CONTROL_PIN, 3, -1)


#define SPI2_TX_DMA_OPT 0
Expand Down

0 comments on commit cdabfd7

Please sign in to comment.