mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-11 06:23:39 +00:00
Updated SPI pins so that they are configurable, enabling multiple SPI sercoms for ATSAMD21
This commit is contained in:
@@ -85,7 +85,12 @@ const (
|
||||
|
||||
// SPI on the Feather M0.
|
||||
var (
|
||||
SPI0 = SPI{Bus: sam.SERCOM4_SPI}
|
||||
SPI0 = SPI{Bus: sam.SERCOM4_SPI,
|
||||
SCK: SPI0_SCK_PIN,
|
||||
MOSI: SPI0_MOSI_PIN,
|
||||
MISO: SPI0_MISO_PIN,
|
||||
DOpad: spiTXPad2SCK3,
|
||||
DIpad: sercomRXPad0}
|
||||
)
|
||||
|
||||
// I2S pins
|
||||
|
||||
Reference in New Issue
Block a user