Beispiel #1
0
static void ynandsim_InitDevice(void)
{
    static char init_flg = 0;
    uint32_t FlashID;
    if(init_flg == 0)
    {
        NandFlash_Init();
        NandFlash_Reset();
        FlashID = NandFlash_ReadId();
        if ( (FlashID & 0xFFFF0000) != K9FXX_ID )
            return;
        NandFlash_ValidBlockCheck();
        init_flg = 1;
    }
}
Beispiel #2
0
/**
 * Initialize Board
 *
 * @param  none
 * @return none
 *
 * @brief  Initialize Board
 */
static void Board_Init()
{
    /* init nand */
    NandFlash_Init();
    
    /* init nor */
    NORFLASHInit();
	
		/*	init eeprom	*/
		EEPROM_24c02_Init();
	
		/*	init option	*/
		optionSaveStruct=EEPROM_ReadStruct();
	
		ipConfig=optionSaveStruct.ipConfig;
	
    /* init lcd */
		//TFT_Init();
}