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:
parent
81d2cbca96
commit
3733c87c83
2 changed files with 4 additions and 4 deletions
|
|
@ -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 */
|
||||||
|
|
|
||||||
|
|
@ -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 */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue