diff --git a/os/hal/ports/RP/LLD/I2Cv1/hal_i2c_lld.c b/os/hal/ports/RP/LLD/I2Cv1/hal_i2c_lld.c index 34d194a6c7..c48238c8d5 100644 --- a/os/hal/ports/RP/LLD/I2Cv1/hal_i2c_lld.c +++ b/os/hal/ports/RP/LLD/I2Cv1/hal_i2c_lld.c @@ -40,14 +40,14 @@ * @brief I2C1 driver identifier. */ #if (RP_I2C_USE_I2C0 == TRUE) || defined(__DOXYGEN__) -I2CDriver I2CD1; +I2CDriver I2CD0; #endif /** * @brief I2C2 driver identifier. */ #if (RP_I2C_USE_I2C1 == TRUE) || defined(__DOXYGEN__) -I2CDriver I2CD2; +I2CDriver I2CD1; #endif /*===========================================================================*/ diff --git a/testhal/RP/RP2040/RT-RP2040-PICO-I2C-24AA01/main.c b/testhal/RP/RP2040/RT-RP2040-PICO-I2C-24AA01/main.c index d7d9441ce2..a06f69a47a 100644 --- a/testhal/RP/RP2040/RT-RP2040-PICO-I2C-24AA01/main.c +++ b/testhal/RP/RP2040/RT-RP2040-PICO-I2C-24AA01/main.c @@ -27,8 +27,7 @@ #define I2C0_SDA_PIN 12U #define I2C0_SCL_PIN 13U -// This is I2C0 -#define I2CN I2CD1 +#define I2CN I2CD0 /* * Green LED blinker thread, times are in milliseconds.