add default protocols for uart, add BIDIR

This commit is contained in:
Vitaliy Nimych 2024-12-26 14:26:37 +02:00
parent 9fc3261555
commit 326c96a6ce

View File

@ -74,35 +74,42 @@ define HAL_GPIO_A_LED_PIN 91
define HAL_GPIO_B_LED_PIN 90 define HAL_GPIO_B_LED_PIN 90
# order of UARTs (and USB) # order of UARTs (and USB)
SERIAL_ORDER OTG1 UART7 USART1 USART2 USART3 UART8 UART4 USART6 SERIAL_ORDER OTG1 USART1 USART2 USART3 UART4 USART6 UART7 UART8
# USART1 (telem2) # USART1
PA10 USART1_RX USART1 PA10 USART1_RX USART1
PA9 USART1_TX USART1 PA9 USART1_TX USART1
define DEFAULT_SERIAL1_PROTOCOL SerialProtocol_None
# USART2 (GPS1) # USART2
PD5 USART2_TX USART2 PD5 USART2_TX USART2
PD6 USART2_RX USART2 PD6 USART2_RX USART2
define DEFAULT_SERIAL1_PROTOCOL SerialProtocol_None
# USART3 (GPS2) # USART3
PD9 USART3_RX USART3 PD9 USART3_RX USART3
PD8 USART3_TX USART3 PD8 USART3_TX USART3
define DEFAULT_SERIAL1_PROTOCOL SerialProtocol_None
# UART4 (spare) # UART4 (RCIN)
PB9 UART4_TX UART4 PB9 UART4_TX UART4
PB8 UART4_RX UART4 PB8 UART4_RX UART4
define DEFAULT_SERIAL4_PROTOCOL SerialProtocol_RCIN
# USART6 # USART6
PC7 USART6_RX USART6 PC7 USART6_RX USART6
PC6 USART6_TX USART6 PC6 USART6_TX USART6
define DEFAULT_SERIAL6_PROTOCOL SerialProtocol_GPS
# UART7 (telem1) # UART7
PE7 UART7_RX UART7 PE7 UART7_RX UART7
PE8 UART7_TX UART7 PE8 UART7_TX UART7
define DEFAULT_SERIAL7_PROTOCOL SerialProtocol_MSP_DisplayPort
# UART8 (spare) # UART8
PE0 UART8_RX UART8 PE0 UART8_RX UART8
PE1 UART8_TX UART8 PE1 UART8_TX UART8
define DEFAULT_SERIAL8_PROTOCOL SerialProtocol_ESCTelemetry
# CAN bus # CAN bus
PD0 CAN1_RX CAN1 PD0 CAN1_RX CAN1
@ -110,7 +117,7 @@ PD1 CAN1_TX CAN1
PD3 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW GPIO(70) PD3 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW GPIO(70)
# Motors # Motors
PB0 TIM3_CH3 TIM3 PWM(1) GPIO(50) PB0 TIM3_CH3 TIM3 PWM(1) BIDIR GPIO(50)
PB1 TIM3_CH4 TIM3 PWM(2) GPIO(51) PB1 TIM3_CH4 TIM3 PWM(2) GPIO(51)
PA0 TIM5_CH1 TIM5 PWM(3) GPIO(52) PA0 TIM5_CH1 TIM5 PWM(3) GPIO(52)
PA1 TIM5_CH2 TIM5 PWM(4) GPIO(53) PA1 TIM5_CH2 TIM5 PWM(4) GPIO(53)