aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authordeadprogram <[email protected]>2024-12-17 20:38:31 +0100
committerRon Evans <[email protected]>2024-12-18 21:16:07 +0100
commit64fa7853a705c3a1df305a8791a09a8d12b524bc (patch)
tree5193f95193bf1e21778f8b5ae054134f5bbbdf2d
parent37f35f8c910b05e2040433448546f41b34535b32 (diff)
downloadtinygo-64fa7853a705c3a1df305a8791a09a8d12b524bc.tar.gz
tinygo-64fa7853a705c3a1df305a8791a09a8d12b524bc.zip
feature: make i2c implementation shared for rp2040/rp2350
Signed-off-by: deadprogram <[email protected]>
-rw-r--r--src/machine/i2c.go2
-rw-r--r--src/machine/machine_rp2_i2c.go (renamed from src/machine/machine_rp2040_i2c.go)4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/machine/i2c.go b/src/machine/i2c.go
index 24fbf6897..3b1b4dd4d 100644
--- a/src/machine/i2c.go
+++ b/src/machine/i2c.go
@@ -1,4 +1,4 @@
-//go:build !baremetal || atmega || nrf || sam || stm32 || fe310 || k210 || rp2040 || mimxrt1062 || (esp32c3 && !m5stamp_c3) || esp32
+//go:build !baremetal || atmega || nrf || sam || stm32 || fe310 || k210 || rp2040 || rp2350 || mimxrt1062 || (esp32c3 && !m5stamp_c3) || esp32
package machine
diff --git a/src/machine/machine_rp2040_i2c.go b/src/machine/machine_rp2_i2c.go
index f34aa259f..2552eb94e 100644
--- a/src/machine/machine_rp2040_i2c.go
+++ b/src/machine/machine_rp2_i2c.go
@@ -1,4 +1,4 @@
-//go:build rp2040
+//go:build rp2040 || rp2350
package machine
@@ -8,7 +8,7 @@ import (
"internal/itoa"
)
-// I2C on the RP2040.
+// I2C on the RP2040/RP2350
var (
I2C0 = &_I2C0
_I2C0 = I2C{