test(i2c): Support test for esp32p4 lp i2c

This commit is contained in:
C.S.M
2024-10-25 16:09:21 +08:00
parent 3419abf601
commit 22edfd2021
2 changed files with 9 additions and 4 deletions
@@ -26,9 +26,14 @@ extern "C" {
#endif
#if SOC_LP_I2C_SUPPORTED
#if CONFIG_IDF_TARGET_ESP32P4
#define LP_I2C_SCL_IO 4
#define LP_I2C_SDA_IO 5
#else
#define LP_I2C_SCL_IO 7
#define LP_I2C_SDA_IO 6
#endif
#endif
#define ESP_SLAVE_ADDR 0x28 /*!< ESP_I2C slave address, you can set any 7bit value */
#define TEST_I2C_PORT 0