GR712RC unit tests
1.0
Bare-metal C++ hardware tests for the PLATO DPU (IAA-CSIC, 2019)
Loading...
Searching...
No Matches
src
mcal
gr712rc_ed31
mcal_gpt.h
Go to the documentation of this file.
1
20
21
#ifndef _MCAL_GPT_EMBEDDED_H_
22
#define _MCAL_GPT_EMBEDDED_H_
23
24
#include <chrono>
25
#include <cstdint>
26
27
28
namespace
util
29
{
30
template
<
typename
unsigned
_tick_type>
31
class
timer
;
32
}
33
34
35
extern
"C"
void
__sys_tick_handler
() __attribute__((used,
noinline
));
36
37
namespace
mcal
38
{
39
namespace
gpt
40
{
41
typedef
void
config_type
;
42
typedef
std::uint32_t
value_type
;
43
44
void
init
(
const
config_type
*);
45
46
value_type
get_system_time
();
47
48
class
secure
final
49
{
50
51
// private:
52
static
value_type
get_time_elapsed();
53
friend
std::chrono::high_resolution_clock::time_point std::chrono::high_resolution_clock::now();
54
55
template
<
typename
unsigned
_tick_type>
56
friend
class
util::timer
;
57
58
};
59
60
}
61
}
62
63
#endif
// _MCAL_GPT_EMBEDDED_H_
64
mcal::gpt::secure
Definition
mcal_gpt.h:49
util::timer
Definition
mcal_gpt.h:31
noinline
void noinline
Definition
mcal_gpt.cpp:56
__sys_tick_handler
void __sys_tick_handler() __attribute__((used
mcal::gpt
Definition
mcal_gpt.h:40
mcal::gpt::init
void init(const config_type *)
Definition
mcal_gpt.cpp:37
mcal::gpt::value_type
std::uint32_t value_type
Definition
mcal_gpt.h:42
mcal::gpt::get_system_time
value_type get_system_time()
Definition
mcal_gpt.cpp:31
mcal::gpt::config_type
void config_type
Definition
mcal_gpt.h:41
mcal
Definition
mcal_cpu.h:16
util
Definition
mcal_gpt.h:29
Generated by
1.15.0