stm32: separate altfunc selection for UART Tx/Rx

This is needed for stm32l432 nucleo with different altfun for tx and rx
This commit is contained in:
Kenneth Bell
2021-03-07 10:55:50 -08:00
committed by Ron Evans
parent c522569378
commit dc981ce509
9 changed files with 37 additions and 30 deletions
+4 -3
View File
@@ -33,9 +33,10 @@ var (
// debugger to be exposed as virtual COM port over USB on Nucleo boards.
// Both UART0 and UART1 refer to USART2.
UART0 = UART{
Buffer: NewRingBuffer(),
Bus: stm32.USART3,
AltFuncSelector: UART_ALT_FN,
Buffer: NewRingBuffer(),
Bus: stm32.USART3,
TxAltFuncSelector: UART_ALT_FN,
RxAltFuncSelector: UART_ALT_FN,
}
UART1 = &UART0
)