machine/rp2040: implement UART0/UART1, can be used on all rp2040 boards

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2021-06-09 19:11:42 +02:00
committed by Ron Evans
parent b406b81416
commit 87e48c1057
6 changed files with 192 additions and 8 deletions
+3
View File
@@ -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)
}
}