aboutsummaryrefslogtreecommitdiffstats
path: root/src/generic/irq.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-06-05 15:07:57 -0400
committerKevin O'Connor <kevin@koconnor.net>2016-06-13 23:18:58 -0400
commit73f3b0636a369f9e89fe44b56825eead5361601c (patch)
tree932a8d71a547f579d78031385020cec786113227 /src/generic/irq.h
parent9f8817a47e10f35e8008e40576d2bc54157c2767 (diff)
downloadkutter-73f3b0636a369f9e89fe44b56825eead5361601c.tar.gz
kutter-73f3b0636a369f9e89fe44b56825eead5361601c.tar.xz
kutter-73f3b0636a369f9e89fe44b56825eead5361601c.zip
generic: Move simulator/irq.h to new file generic/irq.h
Move the generic irq definitions into generic/irq.h and move the simulator irq code into main.c. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/generic/irq.h')
-rw-r--r--src/generic/irq.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/generic/irq.h b/src/generic/irq.h
new file mode 100644
index 00000000..597ff96d
--- /dev/null
+++ b/src/generic/irq.h
@@ -0,0 +1,11 @@
+#ifndef __GENERIC_IRQ_H
+#define __GENERIC_IRQ_H
+
+#include <stdint.h>
+
+void irq_disable(void);
+void irq_enable(void);
+uint8_t irq_save(void);
+void irq_restore(uint8_t flag);
+
+#endif // irq.h