mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-09-04 19:59:03 +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
@@ -269,28 +269,16 @@ var (
|
||||
// SPI on the SAM E54 Xplained Pro
|
||||
var (
|
||||
// Extension Header EXT1
|
||||
SPI0 = SPI{
|
||||
Bus: sam.SERCOM4_SPIM,
|
||||
SERCOM: 4,
|
||||
}
|
||||
SPI0 = sercomSPIM4
|
||||
|
||||
// Extension Header EXT2
|
||||
SPI1 = SPI{
|
||||
Bus: sam.SERCOM6_SPIM,
|
||||
SERCOM: 6,
|
||||
}
|
||||
SPI1 = sercomSPIM6
|
||||
|
||||
// Extension Header EXT3
|
||||
SPI2 = SPI{
|
||||
Bus: sam.SERCOM6_SPIM,
|
||||
SERCOM: 6,
|
||||
}
|
||||
SPI2 = sercomSPIM6
|
||||
|
||||
// Data Gateway Interface
|
||||
SPI3 = SPI{
|
||||
Bus: sam.SERCOM6_SPIM,
|
||||
SERCOM: 6,
|
||||
}
|
||||
SPI3 = sercomSPIM6
|
||||
)
|
||||
|
||||
// CAN on the SAM E54 Xplained Pro
|
||||
|
||||
Reference in New Issue
Block a user