mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-17 19:23:25 +00:00
machine/rp2040: implement UART0/UART1, can be used on all rp2040 boards
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -67,6 +67,7 @@ const (
|
||||
PinInputPulldown
|
||||
PinInputPullup
|
||||
PinAnalog
|
||||
PinUART
|
||||
)
|
||||
|
||||
// set drives the pin high
|
||||
@@ -152,6 +153,8 @@ func (p Pin) Configure(config PinConfig) {
|
||||
case PinAnalog:
|
||||
p.setFunc(fnNULL)
|
||||
p.pulloff()
|
||||
case PinUART:
|
||||
p.setFunc(fnUART)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user