nanoFORTH v2.2
Loading...
Searching...
No Matches
n4_intr.h
Go to the documentation of this file.
1
5#ifndef __SRC_N4_INTR_H
6#define __SRC_N4_INTR_H
7#include "n4_core.h"
8
9#if ARDUINO
10#define CLI() cli()
11#define SEI() sei()
12#else // !ARDUINO
13#define LOW 0
14#define HIGH 1
15#define CLI()
16#define SEI()
17#endif // ARDUINO
18
19namespace N4Intr {
20 void reset();
21 IU isr();
22
23 void add_tmisr(
24 U16 i,
25 U16 n,
26 IU xt);
27 void add_pcisr(
28 U16 pin,
29 IU xt);
30
31 void enable_timer(U16 f);
32 void enable_pci(U16 f);
33}; // namespace N4Intr
34
35#endif //__SRC_N4_INTR_H
uint16_t U16
16-bit unsigned integer, for return stack, and pointers
Definition n4.h:66
U16 IU
16-bit instruction unit (ADDR)
Definition n4.h:75
nanoForth Core Utilities
Definition n4_intr.cpp:19
IU isr()
fetch interrupt service routines
Definition n4_intr.cpp:44
void enable_timer(U16 f)
ENABLE=1, DISABLE=0.
Definition n4_intr.cpp:113
void enable_pci(U16 f)
Definition n4_intr.cpp:103
void reset()
reset interrupts
Definition n4_intr.cpp:22
void add_tmisr(U16 i, U16 n, IU xt)
handler's xt
Definition n4_intr.cpp:68
void add_pcisr(U16 p, IU xt)
handler's xt
Definition n4_intr.cpp:86