Ejemplo n.º 1
0
/*----------------------------------------------------------------------------*/
uint32_t SystemInit (void)
{
#if defined(BOOT)
  lowLevelUsbCheck() ;
#endif

  // Set 2 cycle (1 WS) for Embedded Flash Access
  // Max clock is 38 MHz (1.8V VVDCORE)
  EFC->EEFC_FMR = (1 << 8) ;

  // Configure PMC
  return BOARD_ConfigurePmc();
}
Ejemplo n.º 2
0
/*----------------------------------------------------------------------------*/
uint32_t SystemInit (void)
{
#ifdef BOOT
#ifdef REVB
	lowLevelUsbCheck() ;
#endif
#endif
#ifdef USE_54_MHZ
    /** Set 3 cycle (2 WS) for Embedded Flash Access */
		// Max clock is 64 MHz (1.8V VVDCORE)
   EFC->EEFC_FMR = (3 << 8) ;
#else
 #ifdef USE_64_MHZ
   EFC->EEFC_FMR = (3 << 8) ;
 #else
    /** Set 2 cycle (1 WS) for Embedded Flash Access */
		// Max clock is 38 MHz (1.8V VVDCORE)
   EFC->EEFC_FMR = (1 << 8) ;
 #endif
#endif

   /** Configure PMC */
  return BOARD_ConfigurePmc();
}