HAL_ChibiOS: disable debug port on f103 to save memory

This commit is contained in:
Andrew Tridgell 2019-11-06 18:25:34 +11:00
parent a90a2e20dc
commit fdd2e93f7e
2 changed files with 12 additions and 5 deletions

View File

@ -12,6 +12,10 @@ COMPASS RM3100 SPI:rm3100 false ROTATION_NONE
# and support all external compass types
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
# increase TX size for RTCM
undef HAL_UART_MIN_TX_SIZE
define HAL_UART_MIN_TX_SIZE 256
# GPS+MAG
define HAL_PERIPH_ENABLE_GPS
define HAL_PERIPH_ENABLE_MAG

View File

@ -31,7 +31,7 @@ FLASH_SIZE_KB 128
STM32_VDD 330U
# order of UARTs
UART_ORDER USART2 USART1
UART_ORDER EMPTY USART1
# a LED to flash
PA4 LED OUTPUT LOW
@ -40,9 +40,9 @@ PA4 LED OUTPUT LOW
PA9 USART1_TX USART1 SPEED_HIGH NODMA
PA10 USART1_RX USART1 SPEED_HIGH NODMA
# USART2 for debug
PA2 USART2_TX USART2 SPEED_HIGH NODMA
PA3 USART2_RX USART2 SPEED_HIGH NODMA
# USART2 for debug (disabled)
# PA2 USART2_TX USART2 SPEED_HIGH NODMA
# PA3 USART2_RX USART2 SPEED_HIGH NODMA
define HAL_UART_NODMA
@ -97,10 +97,13 @@ PA12 CAN_TX CAN
define HAL_USE_CAN TRUE
define STM32_CAN_USE_CAN1 TRUE
# reduce memory overheads
define HAL_CAN_POOL_SIZE 2500
define HAL_USE_I2C TRUE
define STM32_I2C_USE_I2C1 TRUE
define HAL_UART_MIN_TX_SIZE 256
define HAL_UART_MIN_TX_SIZE 128
define HAL_UART_MIN_RX_SIZE 128
define HAL_UART_STACK_SIZE 256