mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-21 21:09: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
@@ -77,12 +77,7 @@ const (
|
||||
)
|
||||
|
||||
// SPI on the ItsyBitsy M0.
|
||||
var (
|
||||
SPI0 = SPI{
|
||||
Bus: sam.SERCOM4_SPI,
|
||||
SERCOM: 4,
|
||||
}
|
||||
)
|
||||
var SPI0 = sercomSPIM4
|
||||
|
||||
// "Internal" SPI pins; SPI flash is attached to these on ItsyBitsy M0
|
||||
const (
|
||||
@@ -93,12 +88,7 @@ const (
|
||||
)
|
||||
|
||||
// "Internal" SPI on Sercom 5
|
||||
var (
|
||||
SPI1 = SPI{
|
||||
Bus: sam.SERCOM5_SPI,
|
||||
SERCOM: 5,
|
||||
}
|
||||
)
|
||||
var SPI1 = sercomSPIM5
|
||||
|
||||
// I2S pins
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user