diff options
author | Ron Evans <[email protected]> | 2020-01-11 21:08:20 +0100 |
---|---|---|
committer | Ayke <[email protected]> | 2020-01-11 21:31:33 +0100 |
commit | ef4ede43d1bbb2dcd91f147eb3c1b2bbfb55b2dd (patch) | |
tree | 78f01b18670863e92315f0335e5b8488b88e67a0 /src/machine | |
parent | 31d3ac725fc6521aa30113550787db0ea33a24c1 (diff) | |
download | tinygo-ef4ede43d1bbb2dcd91f147eb3c1b2bbfb55b2dd.tar.gz tinygo-ef4ede43d1bbb2dcd91f147eb3c1b2bbfb55b2dd.zip |
machine/pyportal: remove manual SPI pin mapping as now handled by default
Signed-off-by: Ron Evans <[email protected]>
Diffstat (limited to 'src/machine')
-rw-r--r-- | src/machine/board_pyportal.go | 12 |
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 ) |