Skip to content

Commit

Permalink
AP_HAL_ChibiOS: update SpeedyBeeF405AIO
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Feb 19, 2025
1 parent bc4ebb3 commit 25fcf20
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions libraries/AP_HAL_ChibiOS/hwdef/SpeedyBeeF405AIO/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -58,25 +58,31 @@ PA12 OTG_FS_DP OTG1
# USART1 - WiFi
PA10 USART1_RX USART1 NODMA
PA9 USART1_TX USART1 NODMA
define DEFAULT_SERIAL1_PROTOCOL SerialProtocol_None

# USART2 - SBUS
PD6 USART2_RX USART2
PD6 USART2_RX USART2 NODMA
define DEFAULT_SERIAL2_PROTOCOL SerialProtocol_None

# USART3 - VTX / DJI
PD8 USART3_TX USART3
PD9 USART3_RX USART3
PD8 USART3_TX USART3 NODMA
PD9 USART3_RX USART3 NODMA
define DEFAULT_SERIAL3_PROTOCOL SerialProtocol_MSP_DisplayPort

# UART4
PC10 UART4_TX UART4 NODMA
PC11 UART4_RX UART4 NODMA
define DEFAULT_SERIAL4_PROTOCOL SerialProtocol_None

# UART5 - GPS
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 - RX
PC6 USART6_TX USART6
PC7 USART6_RX USART6
define DEFAULT_SERIAL6_PROTOCOL SerialProtocol_RCIN

# I2C ports
I2C_ORDER I2C1
Expand Down Expand Up @@ -127,7 +133,7 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
SPIDEV imu1 SPI1 DEVID1 GYRO1_CS MODE3 1*MHZ 8*MHZ
IMU Invensensev3 SPI:imu1 ROTATION_PITCH_180_YAW_270
DMA_NOSHARE TIM5* TIM2* SPI1*
DMA_PRIORITY TIM5* TIM2* SPI1*
DMA_PRIORITY TIM5* TIM2* SPI1* I2C1*

# Barometer setup
define AP_BARO_BACKEND_DEFAULT_ENABLED 0
Expand All @@ -140,7 +146,7 @@ define ALLOW_ARM_NO_COMPASS
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
define HAL_I2C_INTERNAL_MASK 0
define HAL_COMPASS_AUTO_ROT_DEFAULT 2
define HAL_DEFAULT_INS_FAST_SAMPLE 3
define HAL_DEFAULT_INS_FAST_SAMPLE 1
# Motor order implies Betaflight/X for standard ESCs
define HAL_FRAME_TYPE_DEFAULT 12

Expand Down

0 comments on commit 25fcf20

Please sign in to comment.