RTEMS  5.1
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_LPC24XX_SYSTEM_CLOCKS_H
23 #define LIBBSP_ARM_LPC24XX_SYSTEM_CLOCKS_H
24 
25 #include <bsp/lpc24xx.h>
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif /* __cplusplus */
30 
46 void lpc24xx_timer_initialize(void);
47 
53 static inline unsigned lpc24xx_timer(void)
54 {
55  return T1TC;
56 }
57 
67 void lpc24xx_micro_seconds_delay(unsigned us);
68 
74 unsigned lpc24xx_pllclk(void);
75 
81 unsigned lpc24xx_cclk(void);
82 
85 #ifdef __cplusplus
86 }
87 #endif /* __cplusplus */
88 
89 #endif /* LIBBSP_ARM_LPC24XX_SYSTEM_CLOCKS_H */
Register definitions.
void lpc24xx_micro_seconds_delay(unsigned us)
Delay for us micro seconds.
Definition: system-clocks.c:76
void lpc24xx_timer_initialize(void)
Initializes the standard timer.
Definition: system-clocks.c:42
unsigned lpc24xx_cclk(void)
Returns the CPU clock frequency in [Hz].
Definition: system-clocks.c:146
unsigned lpc24xx_pllclk(void)
Returns the PLL output clock frequency in [Hz].
Definition: system-clocks.c:96