AP_HAL_ChibiOS: fixup FoxeerF405v2 build

This commit is contained in:
Andy Piper 2024-04-04 08:20:35 +01:00 committed by Peter Barker
parent 4e21dbcc0b
commit b9fede8a27
1 changed files with 11 additions and 10 deletions

View File

@ -57,8 +57,9 @@ PA11 OTG_FS_DM OTG1
PA12 OTG_FS_DP OTG1 PA12 OTG_FS_DP OTG1
# USART1 # USART1
PA10 USART1_RX USART1 NODMA PA10 USART1_RX USART1
PA9 USART1_TX USART1 NODMA PA9 USART1_TX USART1
define DEFAULT_SERIAL1_PROTOCOL SerialProtocol_ESCTelemetry
# USART2 # USART2
PA2 USART2_TX USART2 PA2 USART2_TX USART2
@ -66,16 +67,18 @@ PA3 USART2_RX USART2
define DEFAULT_SERIAL2_PROTOCOL SerialProtocol_RCIN define DEFAULT_SERIAL2_PROTOCOL SerialProtocol_RCIN
# USART3 # USART3
PC10 USART3_TX USART3 NODMA PC10 USART3_TX USART3
PC11 USART3_RX USART3 NODMA PC11 USART3_RX USART3 NODMA
# UART4 # UART4
PA0 UART4_TX UART4 NODMA PA0 UART4_TX UART4
PA1 UART4_RX UART4 NODMA PA1 UART4_RX UART4
define DEFAULT_SERIAL4_PROTOCOL SerialProtocol_None
# UART5 # UART5
PC12 UART5_TX UART5 PC12 UART5_TX UART5 NODMA
PD2 UART5_RX UART5 PD2 UART5_RX UART5 NODMA
define DEFAULT_SERIAL5_PROTOCOL SerialProtocol_GPS
# USART6 # USART6
PC6 USART6_TX USART6 NODMA PC6 USART6_TX USART6 NODMA
@ -125,7 +128,7 @@ define HAL_GPIO_A_LED_PIN 90
PA14 LED1 OUTPUT LOW GPIO(91) PA14 LED1 OUTPUT LOW GPIO(91)
define HAL_GPIO_B_LED_PIN 91 define HAL_GPIO_B_LED_PIN 91
define HAL_GPIO_LED_OFF 1 define HAL_GPIO_LED_ON 0
# Dataflash setup # Dataflash setup
SPIDEV dataflash SPI2 DEVID1 FLASH1_CS MODE3 104*MHZ 104*MHZ SPIDEV dataflash SPI2 DEVID1 FLASH1_CS MODE3 104*MHZ 104*MHZ
@ -148,8 +151,6 @@ BARO DPS310 I2C:0:0x76
SPIDEV imu1 SPI1 DEVID1 GYRO1_CS MODE3 1*MHZ 8*MHZ SPIDEV imu1 SPI1 DEVID1 GYRO1_CS MODE3 1*MHZ 8*MHZ
IMU Invensensev3 SPI:imu1 ROTATION_PITCH_180_YAW_90 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 # no built-in compass, but probe the i2c bus for all possible
# external compass types # external compass types