Micron MT29F NAND driver
|
MT_uint8 NAND_Reset | ( | void | ) |
The RESET (90h) command must be issued to all CE::s as the first command after power-on.
NAND_TIMEOUT | |
NAND_SUCCESS |
Definition at line 123 of file nand_MT29F_lld.c.
References __wait_for_ready(), CMD_RESET, PLATFORM_Close(), PLATFORM_Open(), PLATFORM_SendCmd(), PLATFORM_Wait(), and TIME_WB.
{ MT_uint8 ret; /* init board transfer */ PLATFORM_Open(); /* send command and/or address */ PLATFORM_SendCmd(CMD_RESET); /* wait (see datasheet for details) */ PLATFORM_Wait(TIME_WB); ret = __wait_for_ready(); /* close board transfer */ PLATFORM_Close(); return ret; }