sam: move I2S0 to machine file

There is no need to put these in the board files as the I2S is the same
on all Microchip SAM D21 chips. This simplifies the code and avoids some
special *_baremetal.go files.

This change does not change the resulting binaries.
This commit is contained in:
Ayke van Laethem
2021-10-16 01:36:20 +02:00
committed by Ron Evans
parent 497c74e4a9
commit 38b9c55ae6
6 changed files with 2 additions and 51 deletions
-9
View File
@@ -2,10 +2,6 @@
package machine
import (
"device/sam"
)
// used to reset into bootloader
const RESET_MAGIC_VALUE = 0xf01669ef
@@ -90,11 +86,6 @@ const (
I2S_WS_PIN = NoPin // TODO: figure out what this is on Xiao
)
// I2S on the Xiao
var (
I2S0 = I2S{Bus: sam.I2S}
)
// USB CDC identifiers
const (
usb_STRING_PRODUCT = "Seeed XIAO M0"