예제 #1
0
RTCDue::RTCDue (int source)
{
  if (source) {
    pmc_switch_sclk_to_32kxtal(0);
  
  while (!pmc_osc_is_ready_32kxtal());
  }
}
예제 #2
0
WEAK void platform_init_system_clocks( void )
{
    sysclk_init();

    /* Switch Slow Clock source to external 32K crystal */
    pmc_switch_sclk_to_32kxtal( 0 );
    while( pmc_osc_is_ready_32kxtal( ) == 0 )
    {
    }

    pmc_disable_udpck( );
}