MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / eth_device_init

Function eth_device_init

components/net/lwip/port/ethernetif.c:638–648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

636}
637
638rt_err_t eth_device_init(struct eth_device * dev, const char *name)
639{
640 rt_uint16_t flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP;
641
642#if LWIP_IGMP
643 /* IGMP support */
644 flags |= NETIF_FLAG_IGMP;
645#endif
646
647 return eth_device_init_with_flag(dev, name, flags);
648}
649
650void eth_device_deinit(struct eth_device *dev)
651{

Callers 15

rt_virtio_net_initFunction · 0.85
enc28j60_attachFunction · 0.85
rt_hw_wifi_initFunction · 0.85
usbh_cdc_ecm_runFunction · 0.85
usbh_rndis_runFunction · 0.85
usbh_cdc_ncm_runFunction · 0.85
usbh_asix_runFunction · 0.85
usbh_rtl8152_runFunction · 0.85
rndis_lwip_initFunction · 0.85

Calls 1

Tested by

no test coverage detected