Microchip® Advanced Software Framework

freertos/demo/lwip_sam_example/network/ethernet.h File Reference

Ethernet management definitions for the FreeRTOS with lwIP example.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include <lwip/netif.h>

Functions

void init_ethernet (void)
 Initialize the ethernet interface. More...
 
 portTASK_FUNCTION (vStartEthernetTask, pvParameters)
 create ethernet task, for ethernet management. More...
 
void status_callback (struct netif *netif)
 Status callback used to print address given by DHCP. More...
 
void vStartEthernetTaskLauncher (unsigned portBASE_TYPE uxPriority)
 Create the vStartEthernetTask task. More...
 

void init_ethernet ( void  )

Initialize the ethernet interface.

Initialize the ethernet interface.

References ethernet_configure_interface(), lwip_init(), and sys_init_timing().

Referenced by main().

portTASK_FUNCTION ( vStartEthernetTask  ,
pvParameters   
)

create ethernet task, for ethernet management.

Parameters
pvParametersInput; not used.
uxPriorityInput. priority for the task, it should be low

References NULL, prvlwIPInit(), sys_thread_new(), and vTaskDelete().

void status_callback ( struct netif netif)

Status callback used to print address given by DHCP.

Parameters
netifInstance to network interface.

Status callback used to print address given by DHCP.

Parameters
netifThe network interface instance.

Callback function used to print the given IP address when the link is up.

Parameters
netifInstance to network interface.

References inet_ntoa, netif::ip_addr, and netif_is_up.

Referenced by ethernet_configure_interface().

void vStartEthernetTaskLauncher ( unsigned portBASE_TYPE  uxPriority)

Create the vStartEthernetTask task.

Parameters
uxPriorityInput; priority of the task to create.

References configMINIMAL_STACK_SIZE, NULL, and xTaskCreate.

Referenced by main().