mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-29 16:59:02 +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
@@ -109,6 +109,18 @@ const (
|
||||
SDCARD_CD_PIN Pin = PA27
|
||||
)
|
||||
|
||||
// SPI on the P1AM-100 is used for Base Controller.
|
||||
var (
|
||||
SPI0 = sercomSPIM1
|
||||
BASE_CONTROLLER_SPI = SPI0
|
||||
)
|
||||
|
||||
// SPI1 is connected to the SD card slot on the P1AM-100
|
||||
var (
|
||||
SPI1 = sercomSPIM2
|
||||
SDCARD_SPI = SPI1
|
||||
)
|
||||
|
||||
// I2S pins
|
||||
const (
|
||||
I2S_SCK_PIN Pin = D2
|
||||
|
||||
Reference in New Issue
Block a user