RTEMS
5.1
Main Page
Related Pages
Modules
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Variables
_
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
v
w
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
o
p
q
r
s
t
u
v
w
x
+
Enumerations
a
b
c
e
h
i
l
m
o
p
q
r
s
t
w
+
Enumerator
a
c
d
h
i
l
m
p
r
s
t
w
+
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
bsps
arm
tms570
include
bsp
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
31
extern
"C"
{
32
#endif
/* __cplusplus */
33
50
static
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.
Generated by
1.8.15