Example description
The ENET example is a simple ethernet application for sending an ethernet packet via the MAC and displaying received broadcast packets. The MAC example will listen for all packets on the ethernet and display some stats via UART when a packet is received. A dummy packet can also be sent out. Wireshark can be used to view the outgoing packet.
To use the example, connect a serial cable to the board's RS232/UART port and start a terminal program to monitor the port. The terminal program on the host PC should be setup for 115K8N1. For each packet received, the LED will toggle and the packets source and destination MAC addresses will be displayed with the packet type. Pressing any key will send a dummy packet.
Special connection requirements
- Embedded Artists' LPC1788 Developer's Kit:
- Embedded Artists' LPC4088 Developer's Kit:
There are no special connection requirements for this example.
- LPCXpresso LPC1769:
Need to connect with base board for using RS232/UART port and Ethernet port.
Build procedures:
LPC17xx/40xx example quickstart for Keil uVision4
LPC17xx/40xx example quickstart for IAR EWARM
LPC17xx/40xx example quickstart for Code Red Xpresso
Supported boards and board setup:
Embedded Artists' LPC1788 Developer's Kit
Embedded Artists' LPC4088 Developer's Kit
NXP Xpresso LPC1769 board
Submitting LPCOpen issues:
Community support for LPCOpen
| #define ENET_NUM_RX_DESC 4 |
| #define ENET_NUM_TX_DESC 4 |
| #define ENET_RX_DESC_BASE (0x20000000UL) |
| STATIC bool ENET_IsTXFinish |
( |
void |
| ) |
|
| STATIC void ENET_RXBuffClaim |
( |
void |
| ) |
|
| STATIC void* ENET_RXGet |
( |
int32_t * |
bytes | ) |
|
| STATIC void* ENET_TXBuffGet |
( |
void |
| ) |
|
| STATIC void ENET_TXQueue |
( |
int32_t |
bytes | ) |
|
| void ETH_IRQHandler |
( |
void |
| ) |
|
Handle interrupt from ethernet.
- Returns
- Nothing
Definition at line 221 of file enet.c.
| STATIC void InitDescriptors |
( |
void |
| ) |
|
main routine for ENET example
Main program body.
- Returns
- Nothing (function should not exit)
Definition at line 230 of file enet.c.