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:
Ayke van Laethem
2021-10-16 01:23:20 +02:00
committed by Ron Evans
parent ae864bdf0c
commit 497c74e4a9
41 changed files with 170 additions and 308 deletions
+14
View File
@@ -390,6 +390,20 @@ const (
SPI3_SDI_PIN = SDI3 // SDI: SERCOM7/PAD[2]
)
// SPI on the Wio Terminal
var (
SPI0 = sercomSPIM5
// RTL8720D
SPI1 = sercomSPIM0
// SD
SPI2 = sercomSPIM6
// LCD
SPI3 = sercomSPIM7
)
// USB CDC identifiers
const (
usb_STRING_PRODUCT = "Seeed Wio Terminal"