File tree 3 files changed +14
-3
lines changed
3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -362,7 +362,7 @@ set(priv_requires fatfs nvs_flash app_update spiffs bootloader_support bt esp_hi
362
362
if (NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_OpenThread)
363
363
#if(CONFIG_SOC_IEEE802154_SUPPORTED) # Does not work!
364
364
#if(CONFIG_OPENTHREAD_ENABLED) # Does not work!
365
- if (IDF_TARGET STREQUAL "esp32c6" OR IDF_TARGET STREQUAL "esp32h2" ) # Sadly only this works
365
+ if (IDF_TARGET STREQUAL "esp32c6" OR IDF_TARGET STREQUAL "esp32h2" OR IDF_TARGET STREQUAL "esp32c5" ) # Sadly only this works
366
366
list (APPEND requires openthread)
367
367
endif ()
368
368
endif ()
Original file line number Diff line number Diff line change @@ -68,7 +68,8 @@ static void printPkgVersion(void) {
68
68
uint32_t pkg_ver = REG_GET_FIELD (EFUSE_RD_MAC_SYS_2_REG, EFUSE_PKG_VERSION);
69
69
chip_report_printf (" %lu" , pkg_ver);
70
70
#elif CONFIG_IDF_TARGET_ESP32C5
71
- uint32_t pkg_ver = REG_GET_FIELD (EFUSE_RD_MAC_SYS2_REG, EFUSE_PKG_VERSION);
71
+ // ToDo: Update this line when EFUSE_PKG_VERSION is available again for ESP32-C5
72
+ uint32_t pkg_ver = 0 ; // REG_GET_FIELD(EFUSE_RD_MAC_SYS2_REG, EFUSE_PKG_VERSION);
72
73
chip_report_printf (" %lu" , pkg_ver);
73
74
#else
74
75
chip_report_printf (" Unknown" );
Original file line number Diff line number Diff line change @@ -252,13 +252,23 @@ static bool wifiHostedInit() {
252
252
if (!hosted_initialized) {
253
253
hosted_initialized = true ;
254
254
struct esp_hosted_sdio_config conf = INIT_DEFAULT_HOST_SDIO_CONFIG ();
255
+ #ifdef BOARD_HAS_SDIO_ESP_HOSTED
256
+ conf.pin_clk .pin = BOARD_SDIO_ESP_HOSTED_CLK;
257
+ conf.pin_cmd .pin = BOARD_SDIO_ESP_HOSTED_CMD;
258
+ conf.pin_d0 .pin = BOARD_SDIO_ESP_HOSTED_D0;
259
+ conf.pin_d1 .pin = BOARD_SDIO_ESP_HOSTED_D1;
260
+ conf.pin_d2 .pin = BOARD_SDIO_ESP_HOSTED_D2;
261
+ conf.pin_d3 .pin = BOARD_SDIO_ESP_HOSTED_D3;
262
+ conf.pin_reset .pin = BOARD_SDIO_ESP_HOSTED_RESET;
263
+ #else
255
264
conf.pin_clk .pin = CONFIG_ESP_SDIO_PIN_CLK;
256
265
conf.pin_cmd .pin = CONFIG_ESP_SDIO_PIN_CMD;
257
266
conf.pin_d0 .pin = CONFIG_ESP_SDIO_PIN_D0;
258
267
conf.pin_d1 .pin = CONFIG_ESP_SDIO_PIN_D1;
259
268
conf.pin_d2 .pin = CONFIG_ESP_SDIO_PIN_D2;
260
269
conf.pin_d3 .pin = CONFIG_ESP_SDIO_PIN_D3;
261
- // conf.pin_rst.pin = CONFIG_ESP_SDIO_GPIO_RESET_SLAVE;
270
+ conf.pin_reset .pin = CONFIG_ESP_SDIO_GPIO_RESET_SLAVE;
271
+ #endif
262
272
// esp_hosted_sdio_set_config() will fail on second attempt but here temporarily to not cause exception on reinit
263
273
if (esp_hosted_sdio_set_config (&conf) != ESP_OK || esp_hosted_init () != ESP_OK) {
264
274
log_e (" esp_hosted_init failed!" );
You can’t perform that action at this time.
0 commit comments