Microchip® Advanced Software Framework

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.

portTASK_FUNCTION ( vStartEthernetTask  ,
pvParameters   
)

create ethernet task, for ethernet management.

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

References lwipBASIC_SMTP_CLIENT_PRIORITY, lwipBASIC_SMTP_CLIENT_STACK_SIZE, lwipBASIC_TFTP_SERVER_PRIORITY, lwipBASIC_TFTP_SERVER_STACK_SIZE, lwipBASIC_WEB_SERVER_PRIORITY, lwipBASIC_WEB_SERVER_STACK_SIZE, 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.

References inet_ntoa, netif::ip_addr, and netif_is_up.

Referenced by ethernet_configure_interface(), and netif_set_status_callback().

void vStartEthernetTaskLauncher ( unsigned portBASE_TYPE  uxPriority)

Create the vStartEthernetTask task.

Parameters
uxPriorityInput; priority of the task to create.

References configMINIMAL_STACK_SIZE, NULL, and xTaskHandle.

Referenced by main().