machine/samd21: move definitions for I2C interfaces into board files, since pin connections on each SAMD21-based board implementation can differ

Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
Ron Evans
2019-03-04 17:08:52 +01:00
committed by Ayke
parent 543696eafc
commit 3538ba943c
3 changed files with 15 additions and 6 deletions
-6
View File
@@ -420,12 +420,6 @@ type I2C struct {
Bus *sam.SERCOM_I2CM_Type
}
// Since the I2C interfaces on the SAMD21 use the SERCOMx peripherals,
// you can have multiple ones. we currently only implement one.
var (
I2C0 = I2C{Bus: sam.SERCOM3_I2CM}
)
// I2CConfig is used to store config info for I2C.
type I2CConfig struct {
Frequency uint32