aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/machine/board_pyportal.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/machine/board_pyportal.go')
-rw-r--r--src/machine/board_pyportal.go12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/machine/board_pyportal.go b/src/machine/board_pyportal.go
index db119265c..ad3ba7fd8 100644
--- a/src/machine/board_pyportal.go
+++ b/src/machine/board_pyportal.go
@@ -137,15 +137,9 @@ const (
// SPI on the PyPortal.
var (
- SPI0 = SPI{Bus: sam.SERCOM2_SPIM,
- SCK: SPI0_SCK_PIN,
- MOSI: SPI0_MOSI_PIN,
- MISO: SPI0_MISO_PIN,
- DOpad: spiTXPad0SCK1,
- DIpad: sercomRXPad2,
- MISOPinMode: PinSERCOM,
- MOSIPinMode: PinSERCOM,
- SCKPinMode: PinSERCOM,
+ SPI0 = SPI{
+ Bus: sam.SERCOM2_SPIM,
+ SERCOM: 2,
}
NINA_SPI = SPI0
)