RTEMS 5.2
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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
29extern "C" {
30#endif /* __cplusplus */
31
47void lpc176x_timer_initialize( void );
48
54static inline unsigned lpc176x_get_timer1( void )
55{
56 return LPC176X_T1TC;
57}
58
69void lpc176x_micro_seconds_delay( unsigned us );
70
76unsigned lpc176x_pllclk( void );
77
83unsigned lpc176x_cclk( void );
84
87#ifdef __cplusplus
88}
89#endif /* __cplusplus */
90
91#endif /* LIBBSP_ARM_LPC176X_SYSTEM_CLOCKS_H */
unsigned lpc176x_pllclk(void)
Returns the PLL output clock frequency in [Hz].
Definition: system-clocks.c:76
void lpc176x_timer_initialize(void)
Initializes the standard timer.
Definition: system-clocks.c:41
unsigned lpc176x_cclk(void)
Returns the CPU clock frequency in [Hz].
Definition: system-clocks.c:95
void lpc176x_micro_seconds_delay(unsigned us)
Delay for us micro seconds.
Definition: system-clocks.c:59
Specific register definitions according to lpc176x family boards.
API definitions of the for the timer of the lpc176x bsp.