RTEMS: bsps/arm/tms570/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) 2014 Pavel Pisa <pisa@cmp.felk.cvut.cz>
11 *
12 * Czech Technical University in Prague
13 * Zikova 1903/4
14 * 166 36 Praha 6
15 * Czech Republic
16 *
17 * Based on LPC24xx and LPC1768 BSP
18 * by embedded brains GmbH and others
19 *
20 * The license and distribution terms for this file may be
21 * found in the file LICENSE in this distribution or at
22 * http://www.rtems.org/license/LICENSE.
23 */
24
25#ifndef LIBBSP_ARM_TMS570_SYSTEM_CLOCKS_H
26#define LIBBSP_ARM_TMS570_SYSTEM_CLOCKS_H
27
28#include <bsp/tms570-rti.h>
29
30#ifdef __cplusplus
31extern "C" {
32#endif /* __cplusplus */
33
50static inline unsigned tms570_timer(void)
51{
52 uint32_t actual_fcr0 = TMS570_RTI.CNT[0].FRCx;
53 return actual_fcr0;
54}
55
58#ifdef __cplusplus
59}
60#endif /* __cplusplus */
61
62#endif /* LIBBSP_ARM_TMS570_SYSTEM_CLOCKS_H */
tms570-rti.h
Real Time Interrupt module (RTI) header file.