GR712RC unit tests
1.0
Bare-metal C++ hardware tests for the PLATO DPU (IAA-CSIC, 2019)
Loading...
Searching...
No Matches
src
mcal
gr712rc_comercial
mcal_cpu.h
Go to the documentation of this file.
1
9
10
#ifndef _MCAL_CPU_SAM4S_EMBEDDED_2018_
11
#define _MCAL_CPU_SAM4S_EMBEDDED_2018_
12
13
#include <cstdint>
14
15
namespace
mcal
16
{
17
namespace
cpu
18
{
19
20
typedef
void
config_type
;
21
22
void
init
(
config_type
*);
23
24
inline
void
nop
() {
asm
volatile
(
"nop"
); }
25
26
//There are four types of flush, may we should implement all.
27
// Verify this functions in the asm.
28
inline
void
flush
() {
asm
volatile
(
"flush"
); }
29
30
//Necesita un template y una fordware declaration.
31
inline
std::uint32_t
read_program_memory
(
volatile
std::uint32_t * pointer_to_program_memory)
32
{
33
return
*pointer_to_program_memory;
34
}
35
36
37
}
38
}
39
40
#endif
//_MCAL_CPU_SAM4S_EMBEDDED_2018
mcal::cpu
Definition
mcal_cpu.h:18
mcal::cpu::config_type
void config_type
Definition
mcal_cpu.h:20
mcal::cpu::init
void init(config_type *)
Definition
mcal_cpu.cpp:16
mcal::cpu::read_program_memory
std::uint32_t read_program_memory(volatile std::uint32_t *pointer_to_program_memory)
Definition
mcal_cpu.h:31
mcal::cpu::nop
void nop()
Definition
mcal_cpu.h:24
mcal::cpu::flush
void flush()
Definition
mcal_cpu.h:28
mcal
Definition
mcal_cpu.h:16
Generated by
1.15.0