| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
lpc_nandflash_k9f1g.h File Reference
`#include "board.h"`

Go to the source code of this file.

## Data Structures
struct | K9F1G_ID_T

## Macros
#define | KF91G_NANDFLASH
#define | K9F1G_PAGE_SIZE (2 << 10) /* 2K bytes */
#define | K9F1G_SPARE_START_ADDR ( K9F1G_PAGE_SIZE) /* Spare start address */
#define | K9F1G_SPARE_SIZE (64)
#define | K9F1G_PAGES_PER_BLOCK (64)
#define | K9F1G_BLOCK_COUNT (1024)
#define | K9F1G_READ_1 0x00
#define | K9F1G_READ_2 0x30
#define | K9F1G_READ_ID 0x90
#define | K9F1G_RESET 0xFF
#define | K9F1G_PAGE_PROGRAM_1 0x80
#define | K9F1G_PAGE_PROGRAM_2 0x10
#define | K9F1G_BLOCK_ERASE_1 0x60
#define | K9F1G_BLOCK_ERASE_2 0xD0
#define | K9F1G_READ_STATUS 0x70
#define | NANDFLASH_STATUS_PAGE_PROG_FAIL (1 << 0)
#define | NANDFLASH_STATUS_BLOCK_ERASE_FAIL (1 << 0)
#define | NANDFLASH_STATUS_DEV_READY (1 << 6)
#define | NANDFLASH_STATUS_READ_WRITE_NPROTECTED (1 << 7)
#define | NANDFLASH_PROG_TIME (700 * 1000)
#define | NANDFLASH_BLOCK_ERASE_TIME (3 * 1000 * 1000)
#define | NANDFLASH_READ_TIME (25 * 1000)