hwdef: added MatekL431-Serial

This commit is contained in:
Andrew Tridgell 2023-12-20 09:04:32 +11:00 committed by Tom Pittenger
parent e5f1c6e27d
commit 1e626a70cb
3 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,2 @@
include ../MatekL431/hwdef-bl.inc

View File

@ -0,0 +1,19 @@
include ../MatekL431/hwdef.inc
define HAL_PERIPH_ENABLE_SERIAL_OPTIONS
# enable serial3 port with DMA
undef PB10
undef PB11
PB10 USART3_TX USART3 SPEED_HIGH
PB11 USART3_RX USART3 SPEED_HIGH
# larger CAN pool for faster serial
undef HAL_CAN_POOL_SIZE
define HAL_CAN_POOL_SIZE 12000
define HAL_USE_ADC FALSE
# make the UARTn numbers in parameters match the silkscreen
undef SERIAL_ORDER
SERIAL_ORDER EMPTY USART1 USART2 USART3

View File

@ -335,7 +335,7 @@
#endif
#ifndef AP_UART_MONITOR_ENABLED
#define AP_UART_MONITOR_ENABLED defined(HAL_PERIPH_ENABLE_GPS) && (GPS_MOVING_BASELINE || BOARD_FLASH_SIZE>=256)
#define AP_UART_MONITOR_ENABLED defined(HAL_PERIPH_ENABLE_SERIAL_OPTIONS) || (defined(HAL_PERIPH_ENABLE_GPS) && (GPS_MOVING_BASELINE || BOARD_FLASH_SIZE>=256))
#endif
#ifndef HAL_BOARD_LOG_DIRECTORY