mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 02:33:28 +00:00
machine: rename PinInputPullUp/PinInputPullDown
Some targets used capital PullUp/PullDown, while the documented standard is Pullup/Pulldown. This commit fixes this mismatch, while preserving compatibility with aliases that are marked deprecated.
This commit is contained in:
committed by
Ron Evans
parent
6e6666519c
commit
bc946f346d
@@ -159,8 +159,8 @@ func (uart *UART) Disable() {
|
||||
uart.Bus.CTRL.ClearBits(nxp.LPUART_CTRL_TE | nxp.LPUART_CTRL_RE)
|
||||
|
||||
// put pins back into GPIO mode
|
||||
uart.rx.Configure(PinConfig{Mode: PinInputPullUp})
|
||||
uart.tx.Configure(PinConfig{Mode: PinInputPullUp})
|
||||
uart.rx.Configure(PinConfig{Mode: PinInputPullup})
|
||||
uart.tx.Configure(PinConfig{Mode: PinInputPullup})
|
||||
}
|
||||
uart.configured = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user