From 1b1f52ed87533a247994ddc40663ae9e1fa66051 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Tue, 17 Dec 2024 20:38:31 +0100 Subject: [PATCH] feature: make i2c implementation shared for rp2040/rp2350 Signed-off-by: deadprogram --- src/machine/i2c.go | 2 +- src/machine/{machine_rp2040_i2c.go => machine_rp2_i2c.go} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/machine/{machine_rp2040_i2c.go => machine_rp2_i2c.go} (99%) diff --git a/src/machine/i2c.go b/src/machine/i2c.go index 24fbf6897f..3b1b4dd4da 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 similarity index 99% rename from src/machine/machine_rp2040_i2c.go rename to src/machine/machine_rp2_i2c.go index f34aa259f5..2552eb94e6 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{