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.
pvParameters | Input; not used. |
uxPriority | Input. 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.
netif | Instance to network interface. |
Status callback used to print address given by DHCP.
netif | The network interface instance. |
Callback function used to print the given IP address when the link is up.
netif | Instance 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.
uxPriority | Input; priority of the task to create. |
References configMINIMAL_STACK_SIZE, NULL, and xTaskCreate.
Referenced by main().