Example description
The ENET example is a simple Ethernet application for sending an Ethernet packet via the MAC and displaying received broadcast packets.
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 115.2K 8N1. 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
There are no special connection requirements for this example.
Build procedures:
LPC18xx/43xx example quickstart for Keil uVision4
LPC18xx/43xx example quickstart for IAR EWARM
LPC18xx/43xx example quickstart for Code Red Xpresso
Supported boards and board setup:
Hitex 1850 evaluation boards
Hitex 4350 evaluation boards
Keil 1857 evaluation boards
Keil 4357 evaluation boards
NGX 1830 Xplorer boards
NGX 4330 Xplorer boards
Submitting LPCOpen issues:
Community support for LPCOpen
| #define ENET_NUM_RX_DESC 4 |
| #define ENET_NUM_TX_DESC 4 |
| static void* ENET_RXGet |
( |
int32_t * |
bytes | ) |
|
|
static |
| static void ENET_RXQueue |
( |
void * |
buffer, |
|
|
int32_t |
bytes |
|
) |
| |
|
static |
| static void* ENET_TXBuffClaim |
( |
void |
| ) |
|
|
static |
| static void ENET_TXQueue |
( |
void * |
buffer, |
|
|
int32_t |
bytes |
|
) |
| |
|
static |
| void ETH_IRQHandler |
( |
void |
| ) |
|
Handle interrupt from ethernet.
- Returns
- Nothing
Definition at line 240 of file enet.c.
| static __INLINE int32_t incIndex |
( |
int32_t |
index, |
|
|
int32_t |
max |
|
) |
| |
|
static |
main routine for ENET example
Main program body.
- Returns
- Nothing (function should not exit)
Definition at line 249 of file enet.c.