EXAMPLE NAME: WEBSERVER_AUTBOARD_EXAMPLE_XMC48

HISTORY:
V1.0.0 initial version 

OVERVIEW: 
XMC4800 Web Server Demo for Automation Board V2

REQUIREMENTS:
1) "XMC4800 Automation Board V2" Ordernumber: KIT_XMC48_AUT_BASE_V2 
2) RJ45 ethernet cable for direct connection to your PC
3) XMC Link debugger
4) Micro USB cable
5) Windows PC/Laptop installed with DAVE v4 (Version 4.3.2 or higher)
6) 24V power supply 

DESCRIPTION:
This example demonstrates the implementation of a tcp/ip-stack, http server using DAVE APPs
on top of the XMC Lib drivers. 
Your PC/laptop and the board is connected via ethernet.
By accessing the webpage (which is compiled into flash) the RGB-LED on your board can be toggled.
You can modify the webpages compiled into flash.
By default DHCP is disabled. Double click ETH_LWIP APP and enable inside tab "IP Settings" DHCP, if needed. 

Source structure:
main.c              Initialization of modules and implementation of CGI callbacks to toggle RGB-LED

BUILD:
Please note, the project has to be rebuild after importing because the build result folder 
has been deleted to reduce the size.
1) Import the project
2) Build and flash the application to the device using USB X101 connection

SETUP:
1) Connect JTAG of XMCLink to Automation Board V2
2) Connect XMC Link and laptop with Micro USB cable
3) Connect RJ45 ethernet cable directly to your PC and ETH port of Automation Board V2.
4) Fix the IP address of your PC/laptop to 192.168.0.20 netmask 255.255.255.0
   inside Network Sharing Center/Adapter Settings/Local Area Connection/Internet Protocol Version 4 
5) Connect the 24V power supply according the automation board manual

HOW TO TEST:
1) Reset
   OBSERVATION: After reset the R-component of the RGB-LED is illuminated
2) Open command window and type "ping 192.168.0.10".
   OBSERVATION: You will see replies arriving from the server.
3) Access the web server with any browser by using the IP adress "http://192.168.0.10".
   OBSERVATION: The web page "index.htm" compiled into flash will show the Infineon 
   Logo and three buttons. By pressing the buttons each component of the RGB-LED on 
   the Automation Board V2 can be controlled individually.
   OBSERVATION: RGB-LED changes its color.
4) To upload your own web-page modify the files you find inside ./Resources
   With every build the files will be compiled into the binary.
   OBSERVATION: You can access your own web-pages 

FURTHER READING:
Review the documenation of the HTTP_SERVER and ETH_LWIP APP.
e.g. you can learn to configure the IP address, DHCP, SSI, PHY,...
There is also an option to relocate your webpage to a SD card.
