RTEMS  5.1
Functions

System clocks. More...

Functions

void lpc24xx_timer_initialize (void)
 Initializes the standard timer. More...
 
void lpc24xx_micro_seconds_delay (unsigned us)
 Delay for us micro seconds. More...
 
unsigned lpc24xx_pllclk (void)
 Returns the PLL output clock frequency in [Hz]. More...
 
unsigned lpc24xx_cclk (void)
 Returns the CPU clock frequency in [Hz]. More...
 

Detailed Description

System clocks.

Function Documentation

◆ lpc24xx_cclk()

unsigned lpc24xx_cclk ( void  )

Returns the CPU clock frequency in [Hz].

Returns zero in case of an unexpected PLL input frequency.

◆ lpc24xx_micro_seconds_delay()

void lpc24xx_micro_seconds_delay ( unsigned  us)

Delay for us micro seconds.

This function uses the standard timer and assumes that the CPU frequency is in whole MHz numbers. The delay value us will be converted to CPU ticks and there is no protection against integer overflows.

This function uses Timer 1.

◆ lpc24xx_pllclk()

unsigned lpc24xx_pllclk ( void  )

Returns the PLL output clock frequency in [Hz].

Returns zero in case of an unexpected PLL input frequency.

◆ lpc24xx_timer_initialize()

void lpc24xx_timer_initialize ( void  )

Initializes the standard timer.

This function uses Timer 1.