Added sdk_system_get_netif
This commit is contained in:
parent
398ed46776
commit
c415d49f1e
2 changed files with 6 additions and 0 deletions
|
@ -28,6 +28,8 @@ struct sdk_rst_info{
|
||||||
uint32_t rtn_addr;
|
uint32_t rtn_addr;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct netif *sdk_system_get_netif(uint32_t mode);
|
||||||
|
|
||||||
struct sdk_rst_info* sdk_system_get_rst_info(void);
|
struct sdk_rst_info* sdk_system_get_rst_info(void);
|
||||||
|
|
||||||
const char* sdk_system_get_sdk_version(void);
|
const char* sdk_system_get_sdk_version(void);
|
||||||
|
|
|
@ -517,6 +517,10 @@ struct sdk_rst_info *sdk_system_get_rst_info(void) {
|
||||||
return &sdk_rst_if;
|
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) {
|
static struct netif *_get_netif(uint32_t mode) {
|
||||||
struct sdk_g_ic_netif_info *info;
|
struct sdk_g_ic_netif_info *info;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue