diff --git a/include/espressif/esp_system.h b/include/espressif/esp_system.h index c7185d4..690bc60 100644 --- a/include/espressif/esp_system.h +++ b/include/espressif/esp_system.h @@ -28,6 +28,8 @@ struct sdk_rst_info{ uint32_t rtn_addr; }; +struct netif *sdk_system_get_netif(uint32_t mode); + struct sdk_rst_info* sdk_system_get_rst_info(void); const char* sdk_system_get_sdk_version(void); diff --git a/open_esplibs/libmain/user_interface.c b/open_esplibs/libmain/user_interface.c index 01ac331..eed34a1 100644 --- a/open_esplibs/libmain/user_interface.c +++ b/open_esplibs/libmain/user_interface.c @@ -517,6 +517,10 @@ struct sdk_rst_info *sdk_system_get_rst_info(void) { return &sdk_rst_if; } +struct netif *sdk_system_get_netif(uint32_t mode) { + return _get_netif(mode); +} + static struct netif *_get_netif(uint32_t mode) { struct sdk_g_ic_netif_info *info;