File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Expand file tree Collapse file tree 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
362362if (NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_OpenThread)
363363 #if(CONFIG_SOC_IEEE802154_SUPPORTED) # Does not work!
364364 #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
366366 list (APPEND requires openthread)
367367 endif ()
368368endif ()
Original file line number Diff line number Diff line change @@ -68,7 +68,8 @@ static void printPkgVersion(void) {
6868 uint32_t pkg_ver = REG_GET_FIELD (EFUSE_RD_MAC_SYS_2_REG, EFUSE_PKG_VERSION);
6969 chip_report_printf (" %lu" , pkg_ver);
7070#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);
7273 chip_report_printf (" %lu" , pkg_ver);
7374#else
7475 chip_report_printf (" Unknown" );
Original file line number Diff line number Diff line change @@ -252,13 +252,23 @@ static bool wifiHostedInit() {
252252 if (!hosted_initialized) {
253253 hosted_initialized = true ;
254254 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
255264 conf.pin_clk .pin = CONFIG_ESP_SDIO_PIN_CLK;
256265 conf.pin_cmd .pin = CONFIG_ESP_SDIO_PIN_CMD;
257266 conf.pin_d0 .pin = CONFIG_ESP_SDIO_PIN_D0;
258267 conf.pin_d1 .pin = CONFIG_ESP_SDIO_PIN_D1;
259268 conf.pin_d2 .pin = CONFIG_ESP_SDIO_PIN_D2;
260269 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
262272 // esp_hosted_sdio_set_config() will fail on second attempt but here temporarily to not cause exception on reinit
263273 if (esp_hosted_sdio_set_config (&conf) != ESP_OK || esp_hosted_init () != ESP_OK) {
264274 log_e (" esp_hosted_init failed!" );
You can’t perform that action at this time.
0 commit comments