mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-09-10 14:39:31 +00:00
sam: simplify SPI peripheral declaration
This has practically no effect on the resulting binaries, the only difference I could find was for the flash/console/spi driver example. I'm not sure how to test that one, but I think it's very unlikely that code will have changed in any meaningful way (apart from reordering some globals).
This commit is contained in:
committed by
Ron Evans
parent
ae864bdf0c
commit
497c74e4a9
@@ -82,6 +82,15 @@ const (
|
||||
SPI0_SDI_PIN Pin = D12 // SDI: SERCOM1/PAD[3]
|
||||
)
|
||||
|
||||
// SPI on the Arduino Nano 33.
|
||||
var SPI0 = sercomSPIM1
|
||||
|
||||
// SPI1 is connected to the NINA-W102 chip on the Arduino Nano 33.
|
||||
var (
|
||||
SPI1 = sercomSPIM2
|
||||
NINA_SPI = SPI1
|
||||
)
|
||||
|
||||
// NINA-W102 Pins
|
||||
const (
|
||||
NINA_SDO Pin = PA12
|
||||
|
||||
Reference in New Issue
Block a user