diff options
author | Kenneth Bell <[email protected]> | 2021-03-18 19:24:59 -0700 |
---|---|---|
committer | Ron Evans <[email protected]> | 2021-03-23 08:33:59 +0100 |
commit | aa7c7b7bd9b843a0cba2ebbaef158a48f1570569 (patch) | |
tree | 6ef79633c5fa333ae09827b8414288f0f51e0995 /src/machine/machine_stm32l0.go | |
parent | c7bd5405c3f5101b84ee3c57bdab89af13be1db7 (diff) | |
download | tinygo-aa7c7b7bd9b843a0cba2ebbaef158a48f1570569.tar.gz tinygo-aa7c7b7bd9b843a0cba2ebbaef158a48f1570569.zip |
lgt92: update to new UART structure
Diffstat (limited to 'src/machine/machine_stm32l0.go')
-rw-r--r-- | src/machine/machine_stm32l0.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/machine/machine_stm32l0.go b/src/machine/machine_stm32l0.go index f5a8fb4b6..c37d6a027 100644 --- a/src/machine/machine_stm32l0.go +++ b/src/machine/machine_stm32l0.go @@ -191,8 +191,8 @@ func enableAltFuncClock(bus unsafe.Pointer) { // Configure the UART. func (uart UART) configurePins(config UARTConfig) { // enable the alternate functions on the TX and RX pins - config.TX.ConfigureAltFunc(PinConfig{Mode: PinModeUARTTX}, uart.AltFuncSelector) - config.RX.ConfigureAltFunc(PinConfig{Mode: PinModeUARTRX}, uart.AltFuncSelector) + config.TX.ConfigureAltFunc(PinConfig{Mode: PinModeUARTTX}, uart.TxAltFuncSelector) + config.RX.ConfigureAltFunc(PinConfig{Mode: PinModeUARTRX}, uart.RxAltFuncSelector) } // UART baudrate calc based on the bus and clockspeed |