mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-19 20:14:04 +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
@@ -22,6 +22,11 @@ var (
|
||||
sercomI2CM1 = &I2C{Bus: sam.SERCOM1_I2CM, SERCOM: 1}
|
||||
sercomI2CM2 = &I2C{Bus: sam.SERCOM2_I2CM, SERCOM: 2}
|
||||
sercomI2CM3 = &I2C{Bus: sam.SERCOM3_I2CM, SERCOM: 3}
|
||||
|
||||
sercomSPIM0 = SPI{Bus: sam.SERCOM0_SPI, SERCOM: 0}
|
||||
sercomSPIM1 = SPI{Bus: sam.SERCOM1_SPI, SERCOM: 1}
|
||||
sercomSPIM2 = SPI{Bus: sam.SERCOM2_SPI, SERCOM: 2}
|
||||
sercomSPIM3 = SPI{Bus: sam.SERCOM3_SPI, SERCOM: 3}
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
||||
Reference in New Issue
Block a user