RTEMS: bsps/arm/lpc24xx/include/bsp/system-clocks.h Source File

| RTEMS 5.4-rc2

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