/* add the network interface (IPv4/IPv6) without RTOS */
netif_add(&gnetif, &ipaddr, &netmask, &gw, NULL, ðernetif_init, ðernet_input);
/* Registers the default network interface */
netif_set_default(&gnetif);
if (netif_is_link_up(&gnetif))
{
/* When the netif is fully configured this function must be called */
netif_set_up(&gnetif);
}
else
{
/* When the netif link is down this function must be called */
netif_set_down(&gnetif);
}
作者: 修炼人生 时间: 2017-10-16 17:54
求大神帮忙看看,可能哪里出问题了
作者: zuozhongkai 时间: 2017-10-16 17:57
HAL库的参考F429开发板的例程,F429开发板的网络就是HAL库版本的
作者: 修炼人生 时间: 2017-10-17 09:24