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
+5 -4
View File
@@ -13,10 +13,11 @@ import (
// UART representation
type UART struct {
Buffer *RingBuffer
Bus *stm32.USART_Type
Interrupt interrupt.Interrupt
AltFuncSelector uint8
Buffer *RingBuffer
Bus *stm32.USART_Type
Interrupt interrupt.Interrupt
TxAltFuncSelector uint8
RxAltFuncSelector uint8
// Registers specific to the chip
rxReg *volatile.Register32