mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-20 04:19: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
@@ -2,10 +2,6 @@
|
||||
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/sam"
|
||||
)
|
||||
|
||||
// used to reset into bootloader
|
||||
const RESET_MAGIC_VALUE = 0xf01669ef
|
||||
|
||||
@@ -69,12 +65,7 @@ const (
|
||||
)
|
||||
|
||||
// SPI on the QT Py M0.
|
||||
var (
|
||||
SPI0 = SPI{
|
||||
Bus: sam.SERCOM0_SPI,
|
||||
SERCOM: 0,
|
||||
}
|
||||
)
|
||||
var SPI0 = sercomSPIM0
|
||||
|
||||
// I2C pins
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user