mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 16:23:56 -04:00
hwdef: disable UARTS in MatekL431 bootloader
this saves a lot of flash, and UARTs are not needed in the bootloader. It means we can fit a bootloader with signing for ESC based RemoteID support
This commit is contained in:
parent
b55ee297d8
commit
30ed94c73c
@ -19,30 +19,10 @@ FLASH_SIZE_KB 256
|
||||
# reserve some space for params
|
||||
APP_START_OFFSET_KB 4
|
||||
|
||||
STDOUT_SERIAL SD1
|
||||
STDOUT_BAUDRATE 57600
|
||||
|
||||
# ---------------------------------------------
|
||||
PB3 LED_BOOTLOADER OUTPUT LOW # blue
|
||||
define HAL_LED_ON 0
|
||||
|
||||
# order of UARTs
|
||||
SERIAL_ORDER USART1 USART2 USART3
|
||||
|
||||
PB6 USART1_TX USART1 NODMA
|
||||
PB7 USART1_RX USART1 NODMA
|
||||
|
||||
PA2 USART2_TX USART2 NODMA
|
||||
PA3 USART2_RX USART2 NODMA
|
||||
|
||||
PB10 USART3_TX USART3 NODMA
|
||||
PB11 USART3_RX USART3 NODMA
|
||||
|
||||
define HAL_USE_SERIAL TRUE
|
||||
define STM32_SERIAL_USE_USART1 TRUE
|
||||
define STM32_SERIAL_USE_USART2 TRUE
|
||||
define STM32_SERIAL_USE_USART3 TRUE
|
||||
|
||||
# enable CAN support
|
||||
PB8 CAN1_RX CAN1
|
||||
PB9 CAN1_TX CAN1
|
||||
@ -58,9 +38,7 @@ define BOOTLOADER_BAUDRATE 57600
|
||||
# use a small bootloader timeout
|
||||
define HAL_BOOTLOADER_TIMEOUT 1000
|
||||
|
||||
define HAL_USE_SERIAL TRUE
|
||||
define STM32_SERIAL_USE_USART1 TRUE
|
||||
define STM32_SERIAL_USE_USART2 TRUE
|
||||
define HAL_USE_SERIAL FALSE
|
||||
|
||||
define HAL_NO_GPIO_IRQ
|
||||
define SERIAL_BUFFERS_SIZE 32
|
||||
|
Loading…
Reference in New Issue
Block a user