source: rtems/c/src/lib/libcpu/arm/mc9328mxl/irq/irq.h @ 359e537

4.104.115
Last change on this file since 359e537 was 359e537, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/30/09 at 05:09:41

Whitespace removal.

  • Property mode set to 100644
File size: 3.4 KB
Line 
1/*
2 * Interrupt handler Header file
3 *
4 * Copyright (c) 2004 by Jay Monkman <jtm@lopingdog.com>
5 *
6 *  The license and distribution terms for this file may be
7 *  found in the file LICENSE in this distribution or at
8 *
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *
12 *  $Id$
13 */
14
15#ifndef __IRQ_H__
16#define __IRQ_H__
17
18#include <rtems/irq.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24  /* define that can be useful (the values are just examples) */
25#ifndef __asm__
26
27/*
28 * Include some preprocessor value also used by assember code
29 */
30
31#include <rtems.h>
32#include <mc9328mxl.h>
33
34extern void default_int_handler();
35/***********************************************************************
36 * Constants
37 **********************************************************************/
38
39/* possible interrupt sources on the MC9328MXL */
40#define BSP_INT_UART3_PFERR       0
41#define BSP_INT_UART3_RTS         1
42#define BSP_INT_UART3_DTR         2
43#define BSP_INT_UART3_UARTC       3
44#define BSP_INT_UART3_TX          4
45#define BSP_INT_PEN_UP            5
46#define BSP_INT_CSI               6
47#define BSP_INT_MMA_MAC           7
48#define BSP_INT_MMA               8
49#define BSP_INT_COMP              9
50#define BSP_INT_MSIRQ            10
51#define BSP_INT_GPIO_PORTA       11
52#define BSP_INT_GPIO_PORTB       12
53#define BSP_INT_GPIO_PORTC       13
54#define BSP_INT_LCDC             14
55#define BSP_INT_SIM_IRQ          15
56#define BSP_INT_SIM_DATA         16
57#define BSP_INT_RTC              17
58#define BSP_INT_RTC_SAM          18
59#define BSP_INT_UART2_PFERR      19
60#define BSP_INT_UART2_RTS        20
61#define BSP_INT_UART2_DTR        21
62#define BSP_INT_UART2_UARTC      22
63#define BSP_INT_UART2_TX         23
64#define BSP_INT_UART2_RX         24
65#define BSP_INT_UART1_PFERR      25
66#define BSP_INT_UART1_RTS        26
67#define BSP_INT_UART1_DTR        27
68#define BSP_INT_UART1_UARTC      28
69#define BSP_INT_UART1_TX         29
70#define BSP_INT_UART1_RX         30
71#define BSP_INT_RES31            31
72#define BSP_INT_RES32            32
73#define BSP_INT_PEN_DATA         33
74#define BSP_INT_PWM              34
75#define BSP_INT_MMC_IRQ          35
76#define BSP_INT_SSI2_TX          36
77#define BSP_INT_SSI2_RX          37
78#define BSP_INT_SSI2_ERR         38
79#define BSP_INT_I2C              39
80#define BSP_INT_SPI2             40
81#define BSP_INT_SPI1             41
82#define BSP_INT_SSI_TX           42
83#define BSP_INT_SSI_TX_ERR       43
84#define BSP_INT_SSI_RX           44
85#define BSP_INT_SSI_RX_ERR       45
86#define BSP_INT_TOUCH            46
87#define BSP_INT_USBD0            47
88#define BSP_INT_USBD1            48
89#define BSP_INT_USBD2            49
90#define BSP_INT_USBD3            50
91#define BSP_INT_USBD4            51
92#define BSP_INT_USBD5            52
93#define BSP_INT_USBD6            53
94#define BSP_INT_UART3_RX         54
95#define BSP_INT_BTSYS            55
96#define BSP_INT_BTTIM            56
97#define BSP_INT_BTWUI            57
98#define BSP_INT_TIMER2           58
99#define BSP_INT_TIMER1           59
100#define BSP_INT_DMA_ERR          60
101#define BSP_INT_DMA              61
102#define BSP_INT_GPIO_PORTD       62
103#define BSP_INT_WDT              63
104#define BSP_MAX_INT              64
105
106typedef struct {
107    rtems_irq_hdl       vector;
108    rtems_irq_hdl_param data;
109} mc9328mxl_irq_info_t;
110
111
112
113extern mc9328mxl_irq_info_t bsp_vector_table[BSP_MAX_INT];
114
115/*
116 * function to initialize the interrupt for a specific BSP
117 */
118void BSP_rtems_irq_mngt_init();
119
120
121#endif /* __asm__ */
122
123#ifdef __cplusplus
124}
125#endif
126
127#endif /* __IRQ_H__ */
Note: See TracBrowser for help on using the repository browser.