Skip to content

Commit 630977c

Browse files
committed
esp32c2: wifi: add stubs for specific revision
ECO4 revision has rom functions that are not available in prior version. Signed-off-by: Sylvio Alves <[email protected]>
1 parent a459b40 commit 630977c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

zephyr/port/wifi/wifi_init.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,4 +455,13 @@ void nan_sm_handle_event(void *p1, int p2)
455455
/* Do not remove, stub to overwrite weak link in Wi-Fi Lib */
456456
}
457457

458+
#if CONFIG_IDF_TARGET_ESP32C2
459+
#ifndef CONFIG_SOC_ESP32C2_REV_2_0
460+
void esp32c2_eco4_rom_ptr_init(void)
461+
{
462+
/* Do not remove, stub to overwrite weak link in Wi-Fi Lib */
463+
}
464+
#endif
465+
#endif
466+
458467
#endif

0 commit comments

Comments
 (0)