summaryrefslogtreecommitdiff
path: root/include/Interrupts.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/Interrupts.h')
-rw-r--r--include/Interrupts.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/include/Interrupts.h b/include/Interrupts.h
new file mode 100644
index 0000000..e06e1e3
--- /dev/null
+++ b/include/Interrupts.h
@@ -0,0 +1,68 @@
+#ifndef INTERRUPTS_H
+#define INTERRUPTS_H
+
+/*******************************************************************//**
+*
+* @file Interrupts.h
+*
+* @author Xavier Del Campo
+*
+* @brief Include file for Interrupts module.
+*
+************************************************************************/
+
+/* *************************************
+ * Includes
+ * *************************************/
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/* *************************************
+ * Defines
+ * *************************************/
+
+/* *************************************
+ * Public types definition
+ * *************************************/
+
+/*******************************************************************//**
+*
+* \brief List of HW interrupt sources.
+*
+************************************************************************/
+enum InterruptSource
+{
+ INT_SOURCE_VBLANK,
+ INT_SOURCE_GPU,
+ INT_SOURCE_CDROM,
+ INT_SOURCE_DMA,
+ INT_SOURCE_RCNT0,
+ INT_SOURCE_RCNT1,
+ INT_SOURCE_RCNT2,
+ INT_CONTROLLER_MEMCARD_BYTE_RECEIVED,
+ INT_SIO,
+ INT_SPU,
+ INT_CONTROLLER_LIGHTPEN_PIO,
+
+ MAX_INTERRUPT_SOURCES
+};
+
+/* *************************************
+ * Public variables declaration
+ * *************************************/
+
+/* *************************************
+ * Public functions declaration
+ * *************************************/
+
+void InterruptsEnableInt(const enum InterruptSource intSource);
+void InterruptsDisableInt(const enum InterruptSource intSource);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* INTERRUPTS_H */