Skip to content

Commit

Permalink
AP_HAL_ChibiOS: fixup FoxeerF405v2 build
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per authored and peterbarker committed Apr 5, 2024
1 parent 4e21dbc commit b9fede8
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions libraries/AP_HAL_ChibiOS/hwdef/FoxeerF405v2/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -57,25 +57,28 @@ PA11 OTG_FS_DM OTG1
PA12 OTG_FS_DP OTG1

# USART1
PA10 USART1_RX USART1 NODMA
PA9 USART1_TX USART1 NODMA
PA10 USART1_RX USART1
PA9 USART1_TX USART1
define DEFAULT_SERIAL1_PROTOCOL SerialProtocol_ESCTelemetry

# USART2
PA2 USART2_TX USART2
PA3 USART2_RX USART2
define DEFAULT_SERIAL2_PROTOCOL SerialProtocol_RCIN

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

# UART4
PA0 UART4_TX UART4 NODMA
PA1 UART4_RX UART4 NODMA
PA0 UART4_TX UART4
PA1 UART4_RX UART4
define DEFAULT_SERIAL4_PROTOCOL SerialProtocol_None

# UART5
PC12 UART5_TX UART5
PD2 UART5_RX UART5
PC12 UART5_TX UART5 NODMA
PD2 UART5_RX UART5 NODMA
define DEFAULT_SERIAL5_PROTOCOL SerialProtocol_GPS

# USART6
PC6 USART6_TX USART6 NODMA
Expand Down Expand Up @@ -125,7 +128,7 @@ define HAL_GPIO_A_LED_PIN 90

PA14 LED1 OUTPUT LOW GPIO(91)
define HAL_GPIO_B_LED_PIN 91
define HAL_GPIO_LED_OFF 1
define HAL_GPIO_LED_ON 0

# Dataflash setup
SPIDEV dataflash SPI2 DEVID1 FLASH1_CS MODE3 104*MHZ 104*MHZ
Expand All @@ -148,8 +151,6 @@ BARO DPS310 I2C:0:0x76
SPIDEV imu1 SPI1 DEVID1 GYRO1_CS MODE3 1*MHZ 8*MHZ

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*

# no built-in compass, but probe the i2c bus for all possible
# external compass types
Expand Down

0 comments on commit b9fede8

Please sign in to comment.