Skip to content

Commit 64fa785

Browse files
committed
feature: make i2c implementation shared for rp2040/rp2350
Signed-off-by: deadprogram <[email protected]>
1 parent 37f35f8 commit 64fa785

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/machine/i2c.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build !baremetal || atmega || nrf || sam || stm32 || fe310 || k210 || rp2040 || mimxrt1062 || (esp32c3 && !m5stamp_c3) || esp32
1+
//go:build !baremetal || atmega || nrf || sam || stm32 || fe310 || k210 || rp2040 || rp2350 || mimxrt1062 || (esp32c3 && !m5stamp_c3) || esp32
22

33
package machine
44

src/machine/machine_rp2040_i2c.go renamed to src/machine/machine_rp2_i2c.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build rp2040
1+
//go:build rp2040 || rp2350
22

33
package machine
44

@@ -8,7 +8,7 @@ import (
88
"internal/itoa"
99
)
1010

11-
// I2C on the RP2040.
11+
// I2C on the RP2040/RP2350
1212
var (
1313
I2C0 = &_I2C0
1414
_I2C0 = I2C{

0 commit comments

Comments
 (0)