uC chip interface arduino
0.9.0
A interface for async and neuromrphic IC testing
Loading...
Searching...
No Matches
core_instruction_exec.h
Go to the documentation of this file.
1
/*
2
This file is part of the Firmware project to interface with small Async or Neuromorphic chips
3
Copyright (C) 2022-2023 Ole Richter - University of Groningen
4
5
This program is free software: you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation, either version 3 of the License, or
8
(at your option) any later version.
9
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with this program. If not, see <https://www.gnu.org/licenses/>.
17
*/
18
#ifndef INSTURCTION_EXEC_H
19
#define INSTURCTION_EXEC_H
20
21
//EXEC_PRESISION in usec
22
#define EXEC_PRESISION 100
23
24
#include "
core_ring_buffer.h
"
25
#include "
datatypes.h
"
26
#include "
interface_AER_from_chip.h
"
27
#include "
interface_AER_to_chip.h
"
28
#include "
interface_spi.h
"
29
#include "
interface_pin.h
"
30
#include "
interface_i2c.h
"
31
#include "
core_intervaltimer_samd21.h
"
32
33
/*
34
the instruction execution handles the
35
*/
36
37
extern
volatile
bool
exec_active
;
38
extern
volatile
IntervalTimer
myTimer
;
39
40
void
set_time_offset
(uint32_t offset);
41
void
read_time
(
bool
is_ISR_call);
42
43
void
exec_instruction
(
packet_t
* instruction,
bool
is_ISR_call);
44
45
void
exec_timed_commands
();
46
47
#endif
exec_instruction
void exec_instruction(packet_t *instruction, bool is_ISR_call)
Definition:
core_instruction_exec.cpp:30
exec_timed_commands
void exec_timed_commands()
Definition:
core_instruction_exec.cpp:88
exec_active
volatile bool exec_active
Definition:
core_instruction_exec.cpp:25
read_time
void read_time(bool is_ISR_call)
Definition:
core_instruction_exec.cpp:127
set_time_offset
void set_time_offset(uint32_t offset)
Definition:
core_instruction_exec.cpp:110
myTimer
volatile IntervalTimer myTimer
Definition:
core_instruction_exec.cpp:26
core_intervaltimer_samd21.h
core_ring_buffer.h
datatypes.h
interface_AER_from_chip.h
interface_AER_to_chip.h
interface_i2c.h
interface_pin.h
interface_spi.h
packet_t
Definition:
datatypes.h:792
firmware
core_instruction_exec.h
Generated by
1.9.5