mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-10 14:03:39 +00:00
Updated SPI pins so that they are configurable, enabling multiple SPI sercoms for ATSAMD21
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user