Updated SPI pins so that they are configurable, enabling multiple SPI sercoms for ATSAMD21

This commit is contained in:
BCG
2019-08-28 02:04:45 -04:00
committed by Ron Evans
parent 7c5f943564
commit 8a5fa51f60
6 changed files with 63 additions and 12 deletions
+6 -1
View File
@@ -62,7 +62,12 @@ const (
// SPI on the Trinket M0.
var (
SPI0 = SPI{Bus: sam.SERCOM0_SPI}
SPI0 = SPI{Bus: sam.SERCOM0_SPI,
SCK: SPI0_SCK_PIN,
MOSI: SPI0_MOSI_PIN,
MISO: SPI0_MISO_PIN,
DOpad: spiTXPad2SCK3,
DIpad: sercomRXPad0}
)
// I2C pins