nabypassapp: Ethernet bypass application.

DESCRIPTION:

This application receives UDP datagrams on one socket, 
sends datagrams on another socket every 1ms and measures 
the CPU utilization in a low priority thread.

The application waits for a 1st datagram, and then starts sending 
same size datagrams back to the sender. It will receive datagrams from
several clients, but send to the 1st.

NOTE: This application supports only IPv4 and does not support UDP checksum.


OPERATION:

Start the NET+ARM application and wait for following message before starting the client:

IA App ready on 7777.

The 1st PC client should be started as (20 is data size):

UDPpps <IP address> 7777 6666 20 1


Additional PC clients should be started as:

UDPppsx <IP address> 7777 20 1

The NET+ARM application should be restarted to send packets of different size.


The application won't function properly, if the client started prematurely.

The application can run in bypass mode or socket API mode. Both BSP and the application must
be rebuilt to switch the mode.


REQUIRED CONFIGURATION:

Required BSP Configuration for bypass mode:

    In bsp_sys.h:
        #define BSP_TICKS_PER_SECOND                    1000

    In bsp_net.h:
        #define BSP_USE_ETHERNET_RECV_QUEUE             TRUE
        #define BSP_ETHERNET_RECV_QUEUE_THREAD_PRIORITY 9      
        #define BSP_ENABLE_ETHERNET_BYPASS              TRUE
        #define BSP_ETHERNET_BYPASS_SEND_BUFFERS        54

Required BSP configuration for socket API mode:

    In bsp_net.h:
        #define BSP_USE_ETHERNET_RECV_QUEUE             FALSE
        #define BSP_ENABLE_ETHERNET_BYPASS              FALSE



The application uses the following files located in the
netos\src\linkerScripts directory.  These files are generated
when the BSP is built.

bootldr.dat     bootloader configuration file used to generate the
                file image.bin.  It controls the information placed
                in the bootloader header of the image.

image.ldr       GNU linker script used to build an image that can
                be debugged and used with the bootloader.
                
customize.ldr   Customizable GNU linker script
