/* @ Funciton: NF_ReadID Parameter: id: pointer to device ID Return: None  */
void NF_ReadID(unsigned char *id)
/* @ Funciton: NF_ReadID Parameter: id: pointer to device ID Return: None  */
void NF_ReadID(unsigned char *id)
{
    unsigned char maker_code;
    NF_Init();
    NF_OE_L();
    NF_DATA_OUT();
    NF_CMD(NAND_CMD_READID);
    NF_ADDR(0x00);
    NF_CLR_ALE();
    Wait(10);
    NF_DATA_IN();
    maker_code = NF_RDDATA();
    maker_code = maker_code;
    *id = NF_RDDATA();
    NF_OE_H();
    NF_UnInit();
}