Program list:

- fs_test.c
	Test program for the functionality of file system API and mote related API

- file_system.c & file_system.h
	This file provides the file access API for the file system
	Also provides a few string functions needed.

- mote.c & mote.h
	This file implements the mote related API

- template_html.c & template_html.h
	Files created by the File2C utility. 
	It's the template page for displaying sensor readings.

- back_jpg.c & back_jpg.h
	Files created by the File2C utility.
	It's the background image of the template webpage.

- http404_html.c & http404_html.h
	Files created by the File2C utility.
	It's the "Not Found" webpage.


/****************************************************/
/*   Run the test program on pc                     */
/****************************************************/

(1) Use "make" to build all the executable files.

(2) Run "fs_test" to test the system.



/*****************************************************/
/*  Run the program on the M16 Board                 */
/*****************************************************/

(1) Install HEW3 or HEW4

(2) Download OpenTCP sample code. Unzip the file and put the resulting OpenTCP_104 directory under the HEW3 directory.
http://america.renesas.com/products/tools/introductory_evaluation_tools/starterkits_evaluation_boards/skp/skp16c62p/starter_kit/skp16c62p.zip

(3) Replace the following files in the OpenTCP_104 directory

	http\file_system.c
	include\file_system.h
	include\inet\datatypes.h

(4) Add the following files to the directory structure

	http\our_demo.c
	http\mote.c
	http\mote.h
	http\template_html.c
	http\template_html.h
	http\http404_html.c
	http\http404_html.h
	http\back_jpg.c
	http\back_jpg.h

(5) Open the workspace at OpenTCP_104\arch\M16C\Hew3.hws
	The HEW environment may complain about dependencies at this point.
	This is due to the dependency compiler not being able to read through 
	preproccessor commands for #defines for the proper directory tree.

(6) Add the following files to the project

	http\our_demo.c
	http\mote.c
	http\template_html.c
	http\back_jpg.c
	http\http404_html.c

(7) Remove the following files from the project:

	under 'C Source File':
	gui_demo.c

	under 'webfiles':
	http404_html.c
	index_html.c
	lcd_set_html.c
	logo_gif.c
	marble_jpg.c

(8) Use "build all" to compile all the programs, and upload the object file to the M16 board

