Skip to content

Commit

Permalink
Merge branch 'fix/i2c_cap_build_issue' into 'master'
Browse files Browse the repository at this point in the history
Use SOC_I2C_NUM instead of SOC_HP_I2C_NUM

See merge request espressif/esp-cryptoauthlib!33
  • Loading branch information
mahavirj committed Jun 1, 2024
2 parents f8b2910 + 5249ba2 commit c822273
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cryptoauthlib/third_party/hal/esp32/hal_esp32_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#define LOG_LOCAL_LEVEL ESP_LOG_INFO
#endif

#define MAX_I2C_BUSES SOC_HP_I2C_NUM //ESP32 has 2 I2C bus
#define MAX_I2C_BUSES SOC_I2C_NUM //ESP32 has 2 I2C bus

typedef struct atcaI2Cmaster
{
Expand Down Expand Up @@ -111,7 +111,7 @@ ATCA_STATUS hal_i2c_init(ATCAIface iface, ATCAIfaceCfg *cfg)
i2c_hal_data[bus].id = I2C_NUM_0;
break;
case 1:
#if SOC_HP_I2C_NUM >= 2
#if SOC_I2C_NUM >= 2
i2c_hal_data[bus].id = I2C_NUM_1;
#endif
break;
Expand Down
2 changes: 1 addition & 1 deletion idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3.5.1~4"
version: "3.5.1~5"
description: "esp-cryptoauthlib: The port of Microchip CryptoAuthentication Library for ESP-IDF"
url: https://github.com/espressif/esp-cryptoauthlib
dependencies:
Expand Down

0 comments on commit c822273

Please sign in to comment.