Merge pull request #343 from kanflo/sdk_system_get_netif
Added sdk_system_get_netif
This commit is contained in:
commit
eb5fa3d405
2 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue