machine/rp2040: add SPI support

spi working with loopback

SPI working

apply @deadprogram's suggestions

consolidate SPI board pin naming

fix up SPI configuration

add feather-rp2040 SPI pins

add arduino connect SPI pins

add SPI handle variables
This commit is contained in:
soypat
2021-07-09 14:40:21 -03:00
committed by Ron Evans
parent 7434e5a2c7
commit 98e70c9b19
5 changed files with 404 additions and 1 deletions
+3
View File
@@ -68,6 +68,7 @@ const (
PinInputPullup
PinAnalog
PinUART
PinSPI
)
// set drives the pin high
@@ -155,6 +156,8 @@ func (p Pin) Configure(config PinConfig) {
p.pulloff()
case PinUART:
p.setFunc(fnUART)
case PinSPI:
p.setFunc(fnSPI)
}
}