RTEMS 6.1-rc4
Loading...
Searching...
No Matches
Functions

System clocks. More...

Functions

void lpc176x_timer_initialize (void)
 Initializes the standard timer.
 
void lpc176x_micro_seconds_delay (unsigned us)
 Delay for us micro seconds.
 
unsigned lpc176x_pllclk (void)
 Returns the PLL output clock frequency in [Hz].
 
unsigned lpc176x_cclk (void)
 Returns the CPU clock frequency in [Hz].
 

Detailed Description

System clocks.

Function Documentation

◆ lpc176x_cclk()

unsigned lpc176x_cclk ( void  )

Returns the CPU clock frequency in [Hz].

Returns
Returns zero in case of an unexpected PLL input frequency.

◆ lpc176x_micro_seconds_delay()

void lpc176x_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.

◆ lpc176x_pllclk()

unsigned lpc176x_pllclk ( void  )

Returns the PLL output clock frequency in [Hz].

Returns
Returns zero in case of an unexpected PLL input frequency.

◆ lpc176x_timer_initialize()

void lpc176x_timer_initialize ( void  )

Initializes the standard timer.

This function uses Timer 1.