machine/samd21: Initial implementation of I2S hardware interface using Circuit Playground Express

Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
Ron Evans
2019-05-03 09:15:52 +02:00
committed by Ayke
parent 11567c62d4
commit d90f1947d9
6 changed files with 333 additions and 0 deletions
+12
View File
@@ -73,3 +73,15 @@ const (
var (
SPI0 = SPI{Bus: sam.SERCOM4_SPI}
)
// I2S pins
const (
I2S_SCK_PIN = PA10
I2S_SD_PIN = PA08
I2S_WS_PIN = 0xff // TODO: figure out what this is on ItsyBitsy M0.
)
// I2S on the ItsyBitsy M0.
var (
I2S0 = I2S{Bus: sam.I2S}
)