Skip to content

Commit

Permalink
AP_HAL_ChibiOS: rework Foxeer F405v2 pin assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Mar 28, 2024
1 parent a5fed19 commit c29056b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions libraries/AP_HAL_ChibiOS/hwdef/FoxeerF405v2/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ PA10 USART1_RX USART1
PA9 USART1_TX USART1

# USART2
PA2 USART2_TX USART2
PA2 USART2_TX USART2 NODMA
PA3 USART2_RX USART2

# USART3
PC10 USART3_TX USART3
PC11 USART3_RX USART3
PC11 USART3_RX USART3 NODMA

# UART4
PA0 UART4_TX UART4
Expand All @@ -89,7 +89,7 @@ PB9 I2C1_SDA I2C1
# Servos
PB1 SERVO1 OUTPUT GPIO(70) LOW
define RELAY2_PIN_DEFAULT 70
PB0 CAMERA1 OUTPUT GPIO(71) LOW
PB14 CAMERA1 OUTPUT GPIO(71) LOW
define RELAY3_PIN_DEFAULT 71

# ADC ports
Expand All @@ -115,6 +115,8 @@ PA15 TIM2_CH1 TIM2 PWM(6) GPIO(55) # M6
PB11 TIM2_CH4 TIM2 PWM(7) GPIO(56) # M7
PB10 TIM2_CH3 TIM2 PWM(8) GPIO(57) # M8

PB7 TIM4_CH2 TIM4 PWM(9) GPIO(58) # LED

# LEDs

PA13 LED0 OUTPUT LOW GPIO(90)
Expand Down Expand Up @@ -144,7 +146,7 @@ BARO DPS310 I2C:0:0x76
# IMU setup
SPIDEV imu1 SPI1 DEVID1 GYRO1_CS MODE3 1*MHZ 8*MHZ

IMU Invensensev3 SPI:imu1 ROTATION_YAW_180
IMU Invensensev3 SPI:imu1 ROTATION_PITCH_180_YAW_90
DMA_NOSHARE TIM1_UP TIM8_UP TIM4_UP TIM2_UP SPI1*
DMA_PRIORITY TIM1_UP TIM8_UP TIM4_UP TIM2_UP SPI1*

Expand Down

0 comments on commit c29056b

Please sign in to comment.