blob: e06e1e3b5454a983ccd0ae9f02b991377e76a35d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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 */
|