machine/rp2040: add I2C support (#2013)

machine/rp2040: add i2c support
This commit is contained in:
Patricio Whittingslow
2021-08-06 12:22:50 -03:00
committed by GitHub
parent cfae2d4f9a
commit 4f7b23c2b7
6 changed files with 522 additions and 9 deletions
+9
View File
@@ -9,6 +9,15 @@ const (
xoscFreq = 12 // MHz
)
// I2C Pins.
const (
I2C0_SDA_PIN = GPIO24
I2C0_SCL_PIN = GPIO25
I2C1_SDA_PIN = GPIO2
I2C1_SCL_PIN = GPIO3
)
// SPI default pins
const (
// Default Serial Clock Bus 0 for SPI communications