RTEMS  5.0.0
system-clocks.h
Go to the documentation of this file.
1 
9 /*
10  * Copyright (c) 2008, 2009
11  * embedded brains GmbH
12  * Obere Lagerstr. 30
13  * D-82178 Puchheim
14  * Germany
15  * <rtems@embedded-brains.de>
16  *
17  * The license and distribution terms for this file may be
18  * found in the file LICENSE in this distribution or at
19  * http://www.rtems.org/license/LICENSE.
20  */
21 
22 #ifndef LIBBSP_ARM_LPC176X_SYSTEM_CLOCKS_H
23 #define LIBBSP_ARM_LPC176X_SYSTEM_CLOCKS_H
24 
25 #include <bsp/lpc176x.h>
26 #include <bsp/timer-defs.h>
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif /* __cplusplus */
31 
47 void lpc176x_timer_initialize( void );
48 
54 static inline unsigned lpc176x_get_timer1( void )
55 {
56  return LPC176X_T1TC;
57 }
58 
69 void lpc176x_micro_seconds_delay( unsigned us );
70 
76 unsigned lpc176x_pllclk( void );
77 
83 unsigned lpc176x_cclk( void );
84 
87 #ifdef __cplusplus
88 }
89 #endif /* __cplusplus */
90 
91 #endif /* LIBBSP_ARM_LPC176X_SYSTEM_CLOCKS_H */
void lpc176x_timer_initialize(void)
Initializes the standard timer.
Definition: system-clocks.c:41
API definitions of the for the timer of the lpc176x bsp.
unsigned lpc176x_pllclk(void)
Returns the PLL output clock frequency in [Hz].
Definition: system-clocks.c:76
unsigned lpc176x_cclk(void)
Returns the CPU clock frequency in [Hz].
Definition: system-clocks.c:95
Specific register definitions according to lpc176x family boards.
void lpc176x_micro_seconds_delay(unsigned us)
Delay for us micro seconds.
Definition: system-clocks.c:59