From 792e22676786a577b2edc0ed0ed78e51c5b38245 Mon Sep 17 00:00:00 2001 From: Xavi Del Campo Date: Tue, 3 Mar 2020 18:39:09 +0100 Subject: Refactoring --- include/Interrupts.h | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 include/Interrupts.h (limited to 'include/Interrupts.h') 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 */ -- cgit v1.2.3