/*
*************************************************************************************************
*	  					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 Rev C 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			4 March 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.
*************************************************************************************************
*/


/*********************************************************************
 * Microchip Graphic Library Demo Application
 * The header file joins all header files used in the project.
 *********************************************************************
 * FileName:        MainDemo.h
 * Dependencies:    See INCLUDES section below
 * Processor:       PIC24/PIC30
 * Compiler:        C30
 * Company:         Microchip Technology, Inc.
 *
 * Software License Agreement
 *
 * Copyright © 2007 Microchip Technology Inc.  All rights reserved.
 * Microchip licenses to you the right to use, modify, copy and distribute
 * Software only when embedded on a Microchip microcontroller or digital
 * signal controller, which is integrated into your product or third party
 * product (pursuant to the sublicense terms in the accompanying license
 * agreement).  
 *
 * You should refer to the license agreement accompanying this Software
 * for additional information regarding your rights and obligations.
 *
 * SOFTWARE AND DOCUMENTATION ARE PROVIDED “AS IS” WITHOUT WARRANTY OF ANY
 * KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY
 * OF MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR
 * PURPOSE. IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR
 * OBLIGATED UNDER CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION,
 * BREACH OF WARRANTY, OR OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT
 * DAMAGES OR EXPENSES INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL,
 * INDIRECT, PUNITIVE OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA,
 * COST OF PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY
 * CLAIMS BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF),
 * OR OTHER SIMILAR COSTS.
 *
 * Author               Date        Comment
 *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 * Anton Alkhimenok		05/29/2007
 ********************************************************************/


#ifndef _AN1136DEMO_H
#define _AN1136DEMO_H

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

////////////////////////////// INCLUDES //////////////////////////////
#include <p24Fxxxx.h>
#include "GenericTypeDefs.h"
#include "Graphics.h"
#include "EEPROM.h"
#include "TouchScreen.h"
#include "HY27US08561A.h"
#include <stdio.h>

#endif
