![]() |
LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
|
Example description
Welcome to the LWIP TCP Echo example using the NET API for RTOS based operation. This example shows how to use the NET API with the LWIP contrib TCP Echo (threaded) example using the 18xx/43xx LWIP MAC and PHY drivers. The example shows how to handle PHY link monitoring and indicate to LWIP that a ethernet cable is plugged in.
To use the example, Simply connect an ethernet cable to the board. The board will acquire an IP address via DHCP and you can ping the board at it's IP address. You can monitor network traffice to the board using a tool such as wireshark at the boards MAC address.
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
Functions | |
| static void | prvSetupHardware (void) |
| static void | tcpip_init_done_signal (void *arg) |
| static | portTASK_FUNCTION (vSetupIFTask, pvParameters) |
| void | msDelay (uint32_t ms) |
| MilliSecond delay function based on FreeRTOS. | |
| int | main (void) |
| main routine for example_lwip_tcpecho_freertos_18xx43xx | |
Variables | |
| static struct netif | lpc_netif |
| int main | ( | void | ) |
main routine for example_lwip_tcpecho_freertos_18xx43xx
Main program body.
Definition at line 247 of file lwip_tcpecho_freertos.c.
| void msDelay | ( | uint32_t | ms | ) |
MilliSecond delay function based on FreeRTOS.
Delay for the specified number of milliSeconds.
Millisecond Delay function.
Delay function.
| ms | : Number of milliSeconds to delay |
Definition at line 238 of file lwip_tcpecho_freertos.c.
|
static |
Definition at line 126 of file lwip_tcpecho_freertos.c.
|
static |
Definition at line 109 of file lwip_tcpecho_freertos.c.
|
static |
Definition at line 119 of file lwip_tcpecho_freertos.c.
|
static |
Definition at line 98 of file lwip_tcpecho_freertos.c.