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... | |
portTASK_FUNCTION | ( | vStartEthernetTask | , |
pvParameters | |||
) |
create ethernet task, for ethernet management.
pvParameters | Input; not used. |
uxPriority | Input. 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().
Status callback used to print address given by DHCP.
netif | Instance 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.
uxPriority | Input; priority of the task to create. |
References configMINIMAL_STACK_SIZE, NULL, and xTaskHandle.
Referenced by main().