![]() |
LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
|
Note that some LWIP examples may not necessarily use all the provided LWIP driver functions or may contain overriden versions of the functions. (For example, PHY drives may have their own implementation of the MII read/write functions).
Functions | |
| void | lpc_enetif_input (struct netif *netif) |
| Attempt to read a packet from the EMAC interface. | |
| s32_t | lpc_rx_queue (struct netif *netif) |
| Attempt to allocate and requeue a new pbuf for RX. | |
| s32_t | lpc_tx_ready (struct netif *netif) |
| Polls if an available TX descriptor is ready. | |
| void | lpc_tx_reclaim (struct netif *netif) |
| Call for freeing TX buffers that are complete. | |
| err_t | lpc_enetif_init (struct netif *netif) |
| LWIP 17xx/40xx EMAC initialization function. | |
| void | lpc_emac_set_duplex (int full_duplex) |
| Set up the MAC interface duplex. | |
| void | lpc_emac_set_speed (int mbs_100) |
| Set up the MAC interface speed. | |
| void | msDelay (uint32_t ms) |
| Millisecond Delay function. | |
| #define RXINTGROUP (ENET_INT_RXOVERRUN | ENET_INT_RXERROR | ENET_INT_RXDONE) |
Debug output formatter lock define When using FreeRTOS and with LWIP_DEBUG enabled, enabling this define will allow RX debug messages to not interleave with the TX messages (so they are actually readable). Not enabling this define when the system is under load will cause the output to be unreadable. There is a small tradeoff in performance for this so use it only for debug.
Receive group interrupts
Definition at line 94 of file lpc17xx_40xx_emac.c.
| #define tskRECPKT_PRIORITY (DEFAULT_THREAD_PRIO + 4) |
Driver transmit and receive thread priorities Thread priorities for receive thread and TX cleanup thread. Alter to prioritize receive or transmit bandwidth. In a heavily loaded system or with LWIP_DEBUG enabled, the priorities might be better the same.
Definition at line 76 of file lpc17xx_40xx_emac.c.
| #define tskTXCLEAN_PRIORITY (DEFAULT_THREAD_PRIO + 5) |
Definition at line 77 of file lpc17xx_40xx_emac.c.
| #define TXINTGROUP (ENET_INT_TXUNDERRUN | ENET_INT_TXERROR | ENET_INT_TXDONE) |
Transmit group interrupts.
Definition at line 98 of file lpc17xx_40xx_emac.c.
| ALIGNED | ( | 8 | ) |
LPC EMAC driver work data.
Definition at line 131 of file lpc17xx_40xx_emac.c.
| void ETH_IRQHandler | ( | void | ) |
EMAC interrupt handler.
Definition at line 754 of file lpc17xx_40xx_emac.c.
| STATIC err_t low_level_init | ( | struct netif * | netif | ) |
Definition at line 594 of file lpc17xx_40xx_emac.c.
| void lpc_emac_set_duplex | ( | int | full_duplex | ) |
Set up the MAC interface duplex.
| full_duplex | : 0 = half duplex, 1 = full duplex |
Definition at line 792 of file lpc17xx_40xx_emac.c.
| void lpc_emac_set_speed | ( | int | mbs_100 | ) |
Set up the MAC interface speed.
| mbs_100 | : 0 = 10mbs mode, 1 = 100mbs mode |
Definition at line 803 of file lpc17xx_40xx_emac.c.
| err_t lpc_enetif_init | ( | struct netif * | netif | ) |
LWIP 17xx/40xx EMAC initialization function.
| netif | : lwip network interface structure pointer |
Definition at line 814 of file lpc17xx_40xx_emac.c.
| void lpc_enetif_input | ( | struct netif * | netif | ) |
Attempt to read a packet from the EMAC interface.
| netif | : lwip network interface structure pointer |
Definition at line 693 of file lpc17xx_40xx_emac.c.
| STATIC err_t lpc_etharp_output | ( | struct netif * | netif, |
| struct pbuf * | q, | ||
| ip_addr_t * | ipaddr | ||
| ) |
Definition at line 643 of file lpc17xx_40xx_emac.c.
|
read |
Definition at line 189 of file lpc17xx_40xx_emac.c.
| STATIC err_t lpc_low_level_output | ( | struct netif * | netif, |
| struct pbuf * | p | ||
| ) |
Definition at line 398 of file lpc17xx_40xx_emac.c.
Definition at line 324 of file lpc17xx_40xx_emac.c.
| s32_t lpc_rx_queue | ( | struct netif * | netif | ) |
Attempt to allocate and requeue a new pbuf for RX.
| netif | : lwip network interface structure pointer |
Definition at line 658 of file lpc17xx_40xx_emac.c.
| STATIC err_t lpc_rx_setup | ( | lpc_enetdata_t * | lpc_enetif | ) |
Definition at line 174 of file lpc17xx_40xx_emac.c.
| s32_t lpc_tx_ready | ( | struct netif * | netif | ) |
Polls if an available TX descriptor is ready.
| netif | : lwip network interface structure pointer |
Definition at line 738 of file lpc17xx_40xx_emac.c.
| void lpc_tx_reclaim | ( | struct netif * | netif | ) |
Call for freeing TX buffers that are complete.
| netif | : lwip network interface structure pointer |
Definition at line 731 of file lpc17xx_40xx_emac.c.
| STATIC void lpc_tx_reclaim_st | ( | lpc_enetdata_t * | lpc_enetif, |
| u32_t | cidx | ||
| ) |
Definition at line 364 of file lpc17xx_40xx_emac.c.
| STATIC err_t lpc_tx_setup | ( | lpc_enetdata_t * | lpc_enetif | ) |
Definition at line 345 of file lpc17xx_40xx_emac.c.
| void msDelay | ( | uint32_t | ms | ) |
Millisecond Delay function.
| ms | : Milliseconds to wait |
Millisecond Delay function.
| ms | : Delay period in milliseconds |
Millisecond Delay function.
Delay function.
| ms | : Number of milliSeconds to delay |
Definition at line 300 of file lpc43xx_systick.c.
| STATIC portTASK_FUNCTION | ( | vPacketReceiveTask | , |
| pvParameters | |||
| ) |
Definition at line 529 of file lpc17xx_40xx_emac.c.
| STATIC portTASK_FUNCTION | ( | vTransmitCleanupTask | , |
| pvParameters | |||
| ) |
Definition at line 545 of file lpc17xx_40xx_emac.c.