diff options
| author | Xavi Del Campo <xavi.dcr@tutanota.com> | 2020-03-03 18:39:09 +0100 |
|---|---|---|
| committer | Xavi Del Campo <xavi.dcr@tutanota.com> | 2020-03-03 19:40:00 +0100 |
| commit | 792e22676786a577b2edc0ed0ed78e51c5b38245 (patch) | |
| tree | 3a5b1092af322003be3189bf6d58f362dcfe1dca /include/Interrupts.h | |
| parent | 62adc2edd17cbd39272715d29d1b4c8650ef7dde (diff) | |
| download | opensend-792e22676786a577b2edc0ed0ed78e51c5b38245.tar.gz | |
Refactoring
Diffstat (limited to 'include/Interrupts.h')
| -rw-r--r-- | include/Interrupts.h | 68 |
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 */ |
