NXP LPC LWIP port documentation  v1.10
LWIP port for LPC devices
C:/dev/git/lwip_work/lpc43xx/lwip_lpc/nxpcommon/arch/lpc18xx_43xx/lpc18xx_43xx_emac.c File Reference

LPC18xx/43xx ethernet driver for LWIP. More...

#include "lwip/opt.h"
#include "lwip/sys.h"
#include "lwip/def.h"
#include "lwip/mem.h"
#include "lwip/pbuf.h"
#include "lwip/stats.h"
#include "lwip/snmp.h"
#include "netif/etharp.h"
#include "netif/ppp_oe.h"
#include "lpc18xx_43xx_mac_regs.h"
#include "lpc_emac_config.h"
#include "lpc18xx_43xx_emac.h"

Defines

#define tskTXCLEAN_PRIORITY   (TCPIP_THREAD_PRIO - 1)
 Driver transmit and receive thread priorities.
#define tskRECPKT_PRIORITY   (TCPIP_THREAD_PRIO - 1)

Functions

void lpc_mii_write_noblock (u32_t PhyReg, u32_t Value)
 Write a value via the MII link (non-blocking)
err_t lpc_mii_write (u32_t PhyReg, u32_t Value)
 Write a value via the MII link (blocking)
u32_t lpc_mii_is_busy (void)
 Reads current MII link busy status.
u32_t lpc_mii_read_data (void)
 Starts a read operation via the MII link (non-blocking)
void lpc_mii_read_noblock (u32_t PhyReg)
 Read a value via the MII link (blocking)
err_t lpc_mii_read (u32_t PhyReg, u32_t *data)
 Starts a read operation via the MII link (non-blocking)
s32_t lpc_rx_queue (struct netif *netif)
 Attempt to allocate and requeue a new pbuf for RX.
void lpc_enetif_input (struct netif *netif)
 Attempt to read a packet from the EMAC interface.
void lpc_tx_reclaim (struct netif *netif)
 Call for freeing TX buffers that are complete.
s32_t lpc_tx_ready (struct netif *netif)
 Polls if an available TX descriptor is ready. Can be used to determine if the low level transmit function will block.
void ETH_IRQHandler (void)
 LPC EMAC interrupt handler.
void lpc_emac_set_duplex (int full_duplex)
void lpc_emac_set_speed (int mbs_100)
err_t lpc_etharp_output (struct netif *netif, struct pbuf *q, ip_addr_t *ipaddr)
err_t lpc_enetif_init (struct netif *netif)

Detailed Description

LPC18xx/43xx ethernet driver for LWIP.

Version:
1.0
Date:
20. Nov. 2011
Author:
NXP MCU SW Application Team

Copyright(C) 2012, NXP Semiconductor All rights reserved.

Software that is described herein is for illustrative purposes only which provides customers with programming information regarding the products. This software is supplied "AS IS" without any warranties. NXP Semiconductors assumes no responsibility or liability for the use of the software, conveys no license or title under any patent, copyright, or mask work right to the product. NXP Semiconductors reserves the right to make changes in the software without notification. NXP Semiconductors also make no representation or warranty that such application will be suitable for the specified use without further testing or modification.