RTEMS
6.1-rc7
Loading...
Searching...
No Matches
bsps
arm
tms570
include
bsp
system-clocks.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-2-Clause */
2
11
/*
12
* Copyright (C) 2014 Pavel Pisa <pisa@cmp.felk.cvut.cz>
13
*
14
* Czech Technical University in Prague
15
* Zikova 1903/4
16
* 166 36 Praha 6
17
* Czech Republic
18
*
19
* Redistribution and use in source and binary forms, with or without
20
* modification, are permitted provided that the following conditions
21
* are met:
22
* 1. Redistributions of source code must retain the above copyright
23
* notice, this list of conditions and the following disclaimer.
24
* 2. Redistributions in binary form must reproduce the above copyright
25
* notice, this list of conditions and the following disclaimer in the
26
* documentation and/or other materials provided with the distribution.
27
*
28
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
29
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
30
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
31
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
32
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
33
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
34
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
35
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
36
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
37
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
38
* POSSIBILITY OF SUCH DAMAGE.
39
*/
40
41
#ifndef LIBBSP_ARM_TMS570_SYSTEM_CLOCKS_H
42
#define LIBBSP_ARM_TMS570_SYSTEM_CLOCKS_H
43
44
#include <
bsp/tms570.h
>
45
46
#ifdef __cplusplus
47
extern
"C"
{
48
#endif
/* __cplusplus */
49
66
static
inline
unsigned
tms570_timer(
void
)
67
{
68
uint32_t actual_fcr0 = TMS570_RTI.CNT[0].FRCx;
69
return
actual_fcr0;
70
}
71
74
#ifdef __cplusplus
75
}
76
#endif
/* __cplusplus */
77
78
#endif
/* LIBBSP_ARM_TMS570_SYSTEM_CLOCKS_H */
tms570.h
This header file provides TMS570 interfaces.
Generated by
1.9.6