Skip to content

Commit

Permalink
feature: make i2c implementation shared for rp2040/rp2350
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Dec 17, 2024
1 parent ba1919f commit 3b73cf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/machine/i2c.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build rp2040
//go:build rp2040 || rp2350

package machine

Expand All @@ -8,7 +8,7 @@ import (
"internal/itoa"
)

// I2C on the RP2040.
// I2C on the RP2040/RP2350
var (
I2C0 = &_I2C0
_I2C0 = I2C{
Expand Down

0 comments on commit 3b73cf3

Please sign in to comment.