LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
LWIP TCP Echo without an RTOS

Functions

static void prvSetupHardware (void)
 
int main (void)
 main routine for example_lwip_tcpecho_sa_18xx43xx
 

Variables

static struct netif lpc_netif
 

Detailed Description

Welcome to the LWIP TCP Echo example using the raw API for standalone (without an RTOS) operation. This example shows how to use the raw API with the LWIP contrib TCP Echo 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. It also shows how to manage input packet handling and reclaim transmit pbufs once they are transmitted in the main processing loop.

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.

Build procedure: LPCOpen 18xx/43xx build instructions

Submit bug reports for LPCOpen code here.

Function Documentation

int main ( void  )

main routine for example_lwip_tcpecho_sa_18xx43xx

Returns
Function should not exit.

Definition at line 111 of file lwip_tcpecho_sa.c.

static void prvSetupHardware ( void  )
static

Definition at line 90 of file lwip_tcpecho_sa.c.

Variable Documentation

struct netif lpc_netif
static

Definition at line 79 of file lwip_tcpecho_sa.c.