/*
*************************************************************************************************
*	  					NAND FLASH driver for PIC24 (16-bit)using PMP module
*										All Rights Reserved
* File name		: mainDemo.h
* Programmer 	: John Leung, TechToys Co. Hong Kong
* Web presence  : www.TechToys.com.hk
* Language		: C30 complier version 3.01, MPLAB v7.60
* Hardware		: PIC24-Eval-B2 Rev B with TY320T-240320-BO stacked on top
* Disclaimer	: THIS DRIVER IS PROVIDED "AS IS" WITH NO WARRANTY
*                 WHATSOEVER AND TECHTOYS COMPANY SPECIFICALLY DISCLAIMS ANY
*                 IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR
*                 A PARTICULAR PURPOSE, OR AGAINST INFRINGEMENT.
*
*                 Copyright @2008 TECHTOYS COMPANY 
*                 All rights researved
*
* Rev			  Author	  		Date				Comment
* ---			  ------			----				-------
* 1.0a			 John Leung			19 Feb 2008			Initial Release
*************************************************************************************************
*										DESCRIPTION
*
* This module provides an interface to NAND Flash Hynix HY27US08561A for PIC24FJ128GA010
* Only basic I/O function is supported in this version. Therefore, no FAT is supported!
*
* Connect UART1 of the board to any standard RS232 monitoring program like hyperterminal
* Set the baud rate to be 19200bps, 8-data bit, 1-stop bit, no parity with no handshake.
* Follow the instruction on screen you will be able to write different content to the first
* block of the nand Flash at your wish.
*
* Remarks:  it is important to note that prior to writing to a block, 
*			block erase has to be performed; otherwise, inaccurate data would be written to the
*			same block. One may experiment with it with different procedures than 1-2-3-4.
*************************************************************************************************
*/
#ifndef  _MAINDEMO_H_
#define  _MAINDEMO_H_

// Oscillator frequency
#define SYSCLK 32000000 // 8MHz x 4PLL


////////////////////////////// INCLUDES //////////////////////////////
#include <p24Fxxxx.h>
#include "HY27US08561A.h"
#include <stdio.h>
#endif
