Merge pull request #343 from kanflo/sdk_system_get_netif

Added sdk_system_get_netif
This commit is contained in:
Ruslan V. Uss 2017-02-21 22:30:33 +06:00 committed by GitHub
commit eb5fa3d405
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;