Ejemplo n.º 1
0
//------------------------------------------------------------------------------
/// Initializes the flash driver.
/// \param mck  Master clock frequency in Hz.
//------------------------------------------------------------------------------
void FLASHD_Initialize(unsigned int mck)
{
    EFC_DisableFrdyIt(AT91C_BASE_EFC0);
#ifdef AT91C_BASE_EFC1
    EFC_DisableFrdyIt(AT91C_BASE_EFC1);
#endif
}
Ejemplo n.º 2
0
extern void FLASHD_Initialize( uint32_t dwMCk, uint32_t dwUseIAP )
{
    dwMCk = dwMCk; /* avoid warnings */

    EFC_DisableFrdyIt( EFC0 ) ;
#if defined (EFC1)
    EFC_DisableFrdyIt( EFC1 ) ;
#endif
    _dwUseIAP = dwUseIAP ;
}
Ejemplo n.º 3
0
extern void FLASHD_Initialize( uint32_t dwMCk, uint32_t dwUseIAP )
{
    dwMCk = dwMCk; /* avoid warnings */

    EFC_DisableFrdyIt( EFC ) ;
    _dwUseIAP = dwUseIAP ;
}
Ejemplo n.º 4
0
extern void FLASHD_Initialize( uint32_t dwMCk, uint32_t dwUseIAP )
{
    EFC_DisableFrdyIt( EFC ) ;
	
    if ( (dwMCk/1000000) >= 64 )
	{
        EFC_SetWaitState( EFC, 2 ) ;
    }
    else
	{
	    if ( (dwMCk/1000000) >= 50 )
	    {
            EFC_SetWaitState( EFC, 1 ) ;
        }
        else
	    {
            EFC_SetWaitState( EFC, 0 ) ;
        }
	}

    _dwUseIAP=dwUseIAP ;
}
Ejemplo n.º 5
0
//------------------------------------------------------------------------------
/// Initializes the flash driver.
/// \param mck  Master clock frequency in Hz.
//------------------------------------------------------------------------------
void FLASHD_Initialize(unsigned int mck)
{
    EFC_DisableFrdyIt();
}