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
@@ -28,9 +28,10 @@ const (
var (
UART0 = UART{
Buffer: NewRingBuffer(),
Bus: stm32.USART2,
AltFuncSelector: AF7_USART1_2_3,
Buffer: NewRingBuffer(),
Bus: stm32.USART2,
TxAltFuncSelector: AF7_USART1_2_3,
RxAltFuncSelector: AF7_USART1_2_3,
}
UART1 = &UART0
)