Initializes network interface and adds it to FNET stack.
- Parameters
-
netif_desc | Network interface descriptor to be initialized (FNET_CPU_ETH0_IF,FNET_CPU_ETH1_IF). |
hw_addr | Buffer containing the hardware address (for the Ethernet interface, it contains the MAC address). |
hw_addr_size | Size of the hardware address in the hw_addr (for the Ethernet interface, it equals 6 ). |
- Returns
- This function returns:
- See also
- fnet_init(), fnet_netif_release()
This function initializes network interface defined by netif_desc
and adds it to the FNET stack.
FNET declares descriptors for Ethernet interfaces (FNET_CPU_ETH0_IF, FNET_CPU_ETH1_IF).
- Note
- Loop-back interface (if set FNET_CFG_LOOPBACK) is initialized automatically during stack initialization.