/* Rough approximation of a delay function with microsecond resolution. 
Used during initial clock setup as the Timers are not configured yet. */
static void cgu_WaitUS(volatile uint32_t us)
/* Rough approximation of a delay function with microsecond resolution. 
Used during initial clock setup as the Timers are not configured yet. */
static void cgu_WaitUS(volatile uint32_t us)
{
    us *= (SystemCoreClock / 1000000) / 3;
    while (us--);
}