replace outdated wrong SOC_I2C_NUM and use SOC_HP_I2C_NUM (#10452)

* SOC_HP_I2C_NUM

* SOC_HP_I2C_NUM
This commit is contained in:
Jason2866 2024-10-11 15:33:49 +02:00 committed by GitHub
parent 81d2cbca96
commit 3733c87c83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -646,8 +646,8 @@ void TwoWire::onRequestService(uint8_t num, void *arg) {
#endif /* SOC_I2C_SUPPORT_SLAVE */ #endif /* SOC_I2C_SUPPORT_SLAVE */
TwoWire Wire = TwoWire(0); TwoWire Wire = TwoWire(0);
#if SOC_I2C_NUM > 1 #if SOC_HP_I2C_NUM > 1
TwoWire Wire1 = TwoWire(1); TwoWire Wire1 = TwoWire(1);
#endif /* SOC_I2C_NUM */ #endif /* SOC_HP_I2C_NUM */
#endif /* SOC_I2C_SUPPORTED */ #endif /* SOC_I2C_SUPPORTED */

View file

@ -144,9 +144,9 @@ public:
}; };
extern TwoWire Wire; extern TwoWire Wire;
#if SOC_I2C_NUM > 1 #if SOC_HP_I2C_NUM > 1
extern TwoWire Wire1; extern TwoWire Wire1;
#endif /* SOC_I2C_NUM */ #endif /* SOC_HP_I2C_NUM */
#endif /* SOC_I2C_SUPPORTED */ #endif /* SOC_I2C_SUPPORTED */
#endif /* TwoWire_h */ #endif /* TwoWire_h */