machine/samd21: I2C implementation

Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
Ron Evans
2019-01-21 14:35:40 +01:00
committed by Ayke van Laethem
parent 38c5e384af
commit 3ebf464da2
4 changed files with 258 additions and 1 deletions
+6
View File
@@ -29,3 +29,9 @@ const (
UART_TX_PIN = D1
UART_RX_PIN = D0
)
// I2C pins
const (
SDA_PIN = 22 // // SDA: SERCOM3/PAD[0]
SCL_PIN = 23 // // SCL: SERCOM3/PAD[1]
)