source: rtems/c/src/lib/libbsp/arm/gba/irq/irq.h @ 536f2d2b

4.104.115
Last change on this file since 536f2d2b was 536f2d2b, checked in by Sebastian Huber <sebastian.huber@…>, on 04/30/10 at 14:55:55

2010-04-30 Sebastian Huber <sebastian.huber@…>

  • irq/irq_asm.S, irq/irq_init.c, irq/bsp_irq_asm.S, irq/bsp_irq_init.c: Removed files.
  • Makefile.am, preinstall.am: Reflect changes above. Added generic interrupt support modules.
  • irq/irq.h, irq/irq.c: The previous interrupt warning fix changed the interrupt handler API. To fix this problem the generic interrupt support framework will be used now. This eliminates a lot of copy and paste code. The interrupt header file is now <bsp/irq.h>.
  • include/bsp.h: Define BSP_FEATURE_IRQ_EXTENSION.
  • start/start.S, startup/bspstart.c, clock/clockdrv.c, console/console.c, timer/timer.c: Interrupt support changes.
  • 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 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.