mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
hwdef: reduced size of Hitec-Airspeed bootloader
serial not needed in bootloader
This commit is contained in:
parent
84ff71d519
commit
684385c7d5
@ -21,27 +21,14 @@ OSCILLATOR_HZ 24000000
|
|||||||
# assume 128k flash part
|
# assume 128k flash part
|
||||||
FLASH_SIZE_KB 128
|
FLASH_SIZE_KB 128
|
||||||
|
|
||||||
STDOUT_SERIAL SD1
|
|
||||||
STDOUT_BAUDRATE 57600
|
|
||||||
|
|
||||||
# order of UARTs
|
|
||||||
SERIAL_ORDER USART1
|
|
||||||
|
|
||||||
# a fault LED
|
# a fault LED
|
||||||
PA6 LED_BOOTLOADER OUTPUT LOW
|
PA6 LED_BOOTLOADER OUTPUT LOW
|
||||||
define HAL_LED_ON 1
|
define HAL_LED_ON 1
|
||||||
|
|
||||||
# USART1
|
define HAL_USE_SERIAL FALSE
|
||||||
PB6 USART1_TX USART1 SPEED_HIGH NODMA
|
|
||||||
PB7 USART1_RX USART1 SPEED_HIGH NODMA
|
|
||||||
|
|
||||||
define HAL_USE_SERIAL TRUE
|
|
||||||
|
|
||||||
define STM32_SERIAL_USE_USART1 TRUE
|
|
||||||
|
|
||||||
define HAL_NO_GPIO_IRQ
|
define HAL_NO_GPIO_IRQ
|
||||||
|
|
||||||
define SERIAL_BUFFERS_SIZE 32
|
|
||||||
define HAL_USE_EMPTY_IO TRUE
|
define HAL_USE_EMPTY_IO TRUE
|
||||||
define PORT_INT_REQUIRED_STACK 64
|
define PORT_INT_REQUIRED_STACK 64
|
||||||
|
|
||||||
@ -62,11 +49,6 @@ PA12 CAN1_TX CAN1
|
|||||||
PA13 JTMS-SWDIO SWD
|
PA13 JTMS-SWDIO SWD
|
||||||
PA14 JTCK-SWCLK SWD
|
PA14 JTCK-SWCLK SWD
|
||||||
|
|
||||||
# make bl baudrate match debug baudrate for easier debugging
|
|
||||||
define BOOTLOADER_BAUDRATE 57600
|
|
||||||
|
|
||||||
# define BOOTLOADER_DEBUG SD1
|
|
||||||
|
|
||||||
# use a small bootloader timeout
|
# use a small bootloader timeout
|
||||||
define HAL_BOOTLOADER_TIMEOUT 1000
|
define HAL_BOOTLOADER_TIMEOUT 1000
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user