Inlined netif_is_up() and netif_is_link_up() as defines for speed reasons; fixed type and macro definition.

This commit is contained in:
goldsimon
2010-01-09 13:25:15 +00:00
parent 53bc34f3e2
commit 32833bcd56
2 changed files with 19 additions and 35 deletions

View File

@@ -445,14 +445,6 @@ void netif_set_down(struct netif *netif)
}
}
/**
* Ask if an interface is up
*/
u8_t netif_is_up(struct netif *netif)
{
return (netif->flags & NETIF_FLAG_UP)?1:0;
}
#if LWIP_NETIF_STATUS_CALLBACK
/**
* Set callback to be called when interface is brought up/down
@@ -511,14 +503,6 @@ void netif_set_link_down(struct netif *netif )
NETIF_LINK_CALLBACK(netif);
}
/**
* Ask if a link is up
*/
u8_t netif_is_link_up(struct netif *netif)
{
return (netif->flags & NETIF_FLAG_LINK_UP) ? 1 : 0;
}
/**
* Set callback to be called when link is brought up/down
*/