/****************************************************************************/
/* Copyright 2010, © Bendor Research Pty. Ltd. All rights reserved.			*/
/* Permission is granted to use this software for any purpose whatsoever	*/
/* as long as this copyright notice is preserved. The code is provided		*/
/* "as is", with no explicit, implicit or implied warranty or guarantee		*/
/* of any kind and Bendor Research Pty. Ltd. can not be held liable for		*/
/* any loss or damages arising out of the use of this software.				*/
/****************************************************************************/
/*																			*/
/*	Include file describing the Atmel AT45DB642 dataflash chip in SPI mode	*/
/*	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~	*/
/*																			*/
/*	2010 May	ZK		Original											*/
/*																			*/
/****************************************************************************/

#ifndef _AT45DB642_H
#define	_AT45DB642_H

#include "common.h"

#define	AT45DB642_PAGE_SIZE				1056
#define	AT45DB642_PAGE_SIZE_BINARY		1024
#define	AT45DB642_PAGE_PER_BLOCK		8
#define	AT45DB642_BLOCK_PER_SECTOR		32
#define	AT45DB642_BLOCK_PER_SECTOR0A	1
#define	AT45DB642_BLOCK_PER_SECTOR0B	31
#define	AT45DB642_SECTOR_PER_CHIP		32
#define	AT45DB642_PAGE_SHIFT			11
#define	AT45DB642_NUM_BUFFERS			2

#endif

