File tree 1 file changed +5
-5
lines changed
library/peripherals/lpc40xx
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -392,8 +392,8 @@ inline I2c & GetI2c()
392
392
// UM10562: Chapter 7: LPC408x/407x I/O configuration page 13
393
393
if constexpr (port == 0 )
394
394
{
395
- static auto & i2c0_sda_pin = GetPin<0 , 0 >();
396
- static auto & i2c0_scl_pin = GetPin<0 , 1 >();
395
+ static auto & i2c0_sda_pin = GetPin<1 , 30 >();
396
+ static auto & i2c0_scl_pin = GetPin<1 , 31 >();
397
397
static I2c::Transaction_t transaction_i2c0;
398
398
// / Definition for I2C bus 0 for LPC40xx.
399
399
static const I2c::Port_t kI2c0 = {
@@ -403,16 +403,16 @@ inline I2c & GetI2c()
403
403
.transaction = transaction_i2c0,
404
404
.sda_pin = i2c0_sda_pin,
405
405
.scl_pin = i2c0_scl_pin,
406
- .pin_function = 0b010 ,
406
+ .pin_function = 0b100 ,
407
407
};
408
408
409
409
static I2c i2c0 (kI2c0 );
410
410
return i2c0;
411
411
}
412
412
else if constexpr (port == 1 )
413
413
{
414
- static auto & i2c1_sda_pin = GetPin<1 , 30 >();
415
- static auto & i2c1_scl_pin = GetPin<1 , 31 >();
414
+ static auto & i2c1_sda_pin = GetPin<0 , 0 >();
415
+ static auto & i2c1_scl_pin = GetPin<0 , 1 >();
416
416
static I2c::Transaction_t transaction_i2c1;
417
417
// / Definition for I2C bus 1 for LPC40xx.
418
418
static const I2c::Port_t kI2c1 = {
You can’t perform that action at this time.
0 commit comments