Added sdk_system_get_netif

This commit is contained in:
Johan Kanflo 2017-02-20 20:27:24 +01:00
parent 398ed46776
commit c415d49f1e
2 changed files with 6 additions and 0 deletions

View file

@ -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);

View file

@ -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;