Something is odd with your copy of the SDK. If I repeat your grep command on my copy of the SDK, I get more hits:
Code:
zip(arg)% grep -iRn "I2C_NUM" *lib/btstack/port/esp32/components/btstack/es8388.h:230: .i2c_port_num = I2C_NUM_0, \src/rp2_common/hardware_i2c/include/hardware/i2c.h:157: * \def I2C_NUM(i2c)src/rp2_common/hardware_i2c/include/hardware/i2c.h:164:#ifndef I2C_NUMsrc/rp2_common/hardware_i2c/include/hardware/i2c.h:166:#define I2C_NUM(i2c) ((i2c) == i2c1)src/rp2_common/hardware_i2c/include/hardware/i2c.h:170: * \def I2C_INSTANCE(i2c_num)src/rp2_common/hardware_i2c/include/hardware/i2c.h:195:#define I2C_DREQ_NUM(i2c,is_tx) (DREQ_I2C0_TX + I2C_NUM(i2c) * 2 + !(is_tx))src/rp2_common/hardware_i2c/include/hardware/i2c.h:206: return I2C_NUM(i2c);zip(arg)%
Statistics: Posted by arg001 — Tue Nov 26, 2024 11:21 am