mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 18:53:29 +00:00
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:
committed by
Ron Evans
parent
497c74e4a9
commit
38b9c55ae6
@@ -897,6 +897,8 @@ type I2S struct {
|
||||
Bus *sam.I2S_Type
|
||||
}
|
||||
|
||||
var I2S0 = I2S{Bus: sam.I2S}
|
||||
|
||||
// Configure is used to configure the I2S interface. You must call this
|
||||
// before you can use the I2S bus.
|
||||
func (i2s I2S) Configure(config I2SConfig) {
|
||||
|
||||
Reference in New Issue
Block a user