diff --git a/libraries/AP_HAL_ChibiOS/hwdef/FoxeerF405v2/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/FoxeerF405v2/hwdef.dat index 4eef21fcf6..a7ea2c9fa1 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/FoxeerF405v2/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/FoxeerF405v2/hwdef.dat @@ -57,8 +57,9 @@ 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 @@ -66,16 +67,18 @@ 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 @@ -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 @@ -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