4.115
Last change
on this file since 15ca4e7 was
15ca4e7,
checked in by Joel Sherrill <joel.sherrill@…>, on 01/28/11 at 20:29:35
|
2011-01-28 Joel Sherrill <joel.sherrilL@…>
- gba/clock/clockdrv.c, gba/console/conio.c, gba/console/console.c,
gba/console/defaultfont.h, gba/include/arm_mode_bits.h,
gba/include/asm_macros.h, gba/include/bsp.h, gba/include/conio.h,
gba/include/gba.h, gba/include/gba_registers.h, gba/irq/irq.c,
gba/irq/irq.h, gba/startup/bspstart.c, gba/timer/timer.c,
gp32/include/bsp.h, gp32/startup/bspreset.c, gp32/startup/bspstart.c,
nds/tools/runtest, shared/comm/uart.c, shared/comm/uart.h,
smdk2410/include/bsp.h: Fix typo where license said
found in found in.
|
-
Property mode set to
100644
|
File size:
1.6 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file irq.h |
---|
3 | * |
---|
4 | * This include file describe the data structure and the functions implemented |
---|
5 | * by rtems to write interrupt handlers. |
---|
6 | */ |
---|
7 | /* |
---|
8 | * RTEMS GBA BSP |
---|
9 | * |
---|
10 | * Copyright (c) 2010 embedded brains GmbH. |
---|
11 | * |
---|
12 | * Copyright (c) 2004 Markku Puro <markku.puro@kopteri.net> |
---|
13 | * |
---|
14 | * The license and distribution terms for this file may be |
---|
15 | * found in the file LICENSE in this distribution or at |
---|
16 | * http://www.rtems.com/license/LICENSE. |
---|
17 | * |
---|
18 | * $Id$ |
---|
19 | */ |
---|
20 | |
---|
21 | #ifndef __asm__ |
---|
22 | |
---|
23 | #include <rtems.h> |
---|
24 | #include <rtems/irq.h> |
---|
25 | #include <rtems/irq-extension.h> |
---|
26 | |
---|
27 | #endif /* __asm__ */ |
---|
28 | |
---|
29 | #ifndef _IRQ_H_ |
---|
30 | #define _IRQ_H_ |
---|
31 | |
---|
32 | /*---------------------------------------------------------------------------* |
---|
33 | * MACROS * |
---|
34 | *---------------------------------------------------------------------------*/ |
---|
35 | |
---|
36 | #define ENABLE_IRQ() GBA_REG_IME = 1; |
---|
37 | #define DISABLE_IRQ() GBA_REG_IME = 0; |
---|
38 | |
---|
39 | |
---|
40 | /*-------------------------------------------------------------------------+ |
---|
41 | | Constants |
---|
42 | +--------------------------------------------------------------------------*/ |
---|
43 | |
---|
44 | #define BSP_IRQ_VBLANK 0 |
---|
45 | #define BSP_IRQ_HBLANK 1 |
---|
46 | #define BSP_IRQ_VCOUNTER 2 |
---|
47 | #define BSP_IRQ_TIMER0 3 |
---|
48 | #define BSP_IRQ_TIMER1 4 |
---|
49 | #define BSP_IRQ_TIMER2 5 |
---|
50 | #define BSP_IRQ_TIMER3 6 |
---|
51 | #define BSP_IRQ_SERIAL 7 |
---|
52 | #define BSP_IRQ_DMA0 8 |
---|
53 | #define BSP_IRQ_DMA1 9 |
---|
54 | #define BSP_IRQ_DMA2 10 |
---|
55 | #define BSP_IRQ_DMA3 11 |
---|
56 | #define BSP_IRQ_KEY 12 |
---|
57 | #define BSP_IRQ_CART 13 |
---|
58 | #define BSP_IRQ_NA14 14 |
---|
59 | #define BSP_IRQ_NA15 15 |
---|
60 | #define BSP_MAX_INT 16 |
---|
61 | |
---|
62 | #define BSP_INTERRUPT_VECTOR_MIN 0 |
---|
63 | |
---|
64 | #define BSP_INTERRUPT_VECTOR_MAX (BSP_MAX_INT - 1) |
---|
65 | |
---|
66 | #endif /* _IRQ_H_ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.