[1cfcfd3] | 1 | /* |
---|
| 2 | * Interrupt handler Header file |
---|
| 3 | * |
---|
| 4 | * Copyright (c) 2004 by Jay Monkman <jtm@lopingdog.com> |
---|
[359e537] | 5 | * |
---|
[1cfcfd3] | 6 | * The license and distribution terms for this file may be |
---|
| 7 | * found in the file LICENSE in this distribution or at |
---|
| 8 | * |
---|
[93f4a906] | 9 | * http://www.rtems.com/license/LICENSE. |
---|
[1cfcfd3] | 10 | * |
---|
| 11 | * |
---|
| 12 | * $Id$ |
---|
| 13 | */ |
---|
| 14 | |
---|
| 15 | #ifndef __IRQ_H__ |
---|
| 16 | #define __IRQ_H__ |
---|
| 17 | |
---|
[7afe5a2] | 18 | #include <rtems/irq.h> |
---|
| 19 | |
---|
[1cfcfd3] | 20 | #ifdef __cplusplus |
---|
| 21 | extern "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 | */ |
---|
[359e537] | 30 | |
---|
[1cfcfd3] | 31 | #include <rtems.h> |
---|
| 32 | #include <mc9328mxl.h> |
---|
| 33 | |
---|
[c193baad] | 34 | extern void default_int_handler(rtems_irq_hdl_param); |
---|
[1cfcfd3] | 35 | /*********************************************************************** |
---|
| 36 | * Constants |
---|
| 37 | **********************************************************************/ |
---|
| 38 | |
---|
[7afe5a2] | 39 | /* possible interrupt sources on the MC9328MXL */ |
---|
[359e537] | 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 |
---|
[2c24794] | 46 | #define BSP_INT_CSI 6 |
---|
[359e537] | 47 | #define BSP_INT_MMA_MAC 7 |
---|
[2c24794] | 48 | #define BSP_INT_MMA 8 |
---|
| 49 | #define BSP_INT_COMP 9 |
---|
[359e537] | 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 |
---|
[2c24794] | 57 | #define BSP_INT_RTC 17 |
---|
[359e537] | 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 |
---|
[2c24794] | 74 | #define BSP_INT_PWM 34 |
---|
[359e537] | 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 |
---|
[2c24794] | 79 | #define BSP_INT_I2C 39 |
---|
| 80 | #define BSP_INT_SPI2 40 |
---|
| 81 | #define BSP_INT_SPI1 41 |
---|
[359e537] | 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 |
---|
[2c24794] | 101 | #define BSP_INT_DMA 61 |
---|
[359e537] | 102 | #define BSP_INT_GPIO_PORTD 62 |
---|
[2c24794] | 103 | #define BSP_INT_WDT 63 |
---|
| 104 | #define BSP_MAX_INT 64 |
---|
[359e537] | 105 | |
---|
[7afe5a2] | 106 | typedef struct { |
---|
| 107 | rtems_irq_hdl vector; |
---|
| 108 | rtems_irq_hdl_param data; |
---|
| 109 | } mc9328mxl_irq_info_t; |
---|
[1cfcfd3] | 110 | |
---|
| 111 | |
---|
| 112 | |
---|
[7afe5a2] | 113 | extern mc9328mxl_irq_info_t bsp_vector_table[BSP_MAX_INT]; |
---|
[1cfcfd3] | 114 | |
---|
| 115 | /* |
---|
| 116 | * function to initialize the interrupt for a specific BSP |
---|
| 117 | */ |
---|
[c193baad] | 118 | void BSP_rtems_irq_mngt_init(void); |
---|
[1cfcfd3] | 119 | |
---|
| 120 | #endif /* __asm__ */ |
---|
| 121 | |
---|
| 122 | #ifdef __cplusplus |
---|
| 123 | } |
---|
| 124 | #endif |
---|
| 125 | |
---|
| 126 | #endif /* __IRQ_H__ */ |
---|