/*--------------------------------------------------------------------------*
 Project:
 File: CardTestDefine.h
 カード検査で使われている定数定義

*--------------------------------------------------------------------------*/
#ifndef CARDTESTDEFINE_H_INCLUDED
#define CARDTESTDEFINE_H_INCLUDED

//#define TS_Board
//#define CARD_SDK_13_2

#define	CARD_TEST_VERSION	"0.9.3.5"

// ROM  1 sector = 4k Byte
#define DATA_4K_BYTE		4*1024
#define DATA_1M_BYTE		1024*1024

#define DATA_512K_BIT		64*1024			// 64K Byte
#define DATA_1M_BIT			128*1024		// 128K Byte
#define DATA_4M_BIT			512*1024		// 512K Byte

#define ERASE_CHECK_OFF		0
#define ERASE_CHECK_ON		1
#define READ_WAY_1XIO		0x0001
#define READ_WAY_4XIO		0x0004

#define GETPROGRAMVERSION_MOUNTCONTENT_ERROR	0x9301
#define CHECK_ERASE_ERROR						0xF0000000
#define VERIFY_INCREMENT_ERROR					0x20000000
#define GET_DEVICE_ID_ERROR						0x02030000
//#define FIELD_ERROR						0x03000000
//#define ROM_SIZE_ERROR							0x0000000	// SPI FLASHのデバイスIDから得られるサイズが規格外
#define SPI_FLASH_SIZE_ERROR					0x04000000	// SPI FLASHのデバイスIDから得られるサイズが規格外
//#define SPI_FLASH_CHECK_BLOCK_ERROR		0x0000000
#define SPI_FLASH_READ_ALLOC_ERROR				0x06000000
#define SPI_FLASH_WRITE_ALLOC_ERROR				0x07000000
#define ROM_ALLOC_ERROR1 						0x11100000	//0101
#define ROM_ALLOC_ERROR2 						0x11200000	//0102
#define CARD_POWER_STATUS_ERROR 				0x11300000	//0101


const char PROGRAM_VERSION_DATE[] = __DATE__ " " __TIME__ ;


#endif
