GR712RC unit tests 1.0
Bare-metal C++ hardware tests for the PLATO DPU (IAA-CSIC, 2019)
Loading...
Searching...
No Matches
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
28namespace util
29{
30 template <typename unsigned_tick_type>
31 class timer;
32}
33
34
35extern "C" void __sys_tick_handler() __attribute__((used, noinline));
36
37namespace 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
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
void noinline
Definition mcal_gpt.cpp:56
void __sys_tick_handler() __attribute__((used
void init(const config_type *)
Definition mcal_gpt.cpp:37
std::uint32_t value_type
Definition mcal_gpt.h:42
value_type get_system_time()
Definition mcal_gpt.cpp:31
void config_type
Definition mcal_gpt.h:41