source: rtems/c/src/lib/libbsp/or1k/generic_or1k/include/irq.h @ 5774c414

4.115
Last change on this file since 5774c414 was 5774c414, checked in by Hesham ALMatary <heshamelmatary@…>, on 05/25/15 at 17:09:35

generic_or1k: Fix a typo in a comment

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup OR1K_IRQ
5 *
6 * @brief Interrupt definitions.
7 */
8
9/**
10 * COPYRIGHT (c) 2014-2015 Hesham ALMatary <heshamelmatary@gmail.com>
11 *
12 * The license and distribution terms for this file may be
13 * found in the file LICENSE in this distribution or at
14 * http://www.rtems.org/license/LICENSE
15 */
16
17#ifndef LIBBSP_GENERIC_OR1K_IRQ_H
18#define LIBBSP_GENERIC_OR1K_IRQ_H
19
20#ifndef ASM
21
22#include <rtems.h>
23#include <rtems/irq.h>
24#include <rtems/irq-extension.h>
25
26#define BSP_INTERRUPT_VECTOR_MIN  0x100
27#define BSP_INTERRUPT_VECTOR_MAX  0x1F00
28
29/* Interrupt Identification Register */
30#define OR1K_BSP_UART_REG_INT_ID_MSI    (0x00)
31#define OR1K_BSP_UART_REG_INT_ID_NO_INT (0x01)
32#define OR1K_BSP_UART_REG_INT_ID_THRI   (0x02)
33#define OR1K_BSP_UART_REG_INT_ID_RDI    (0x04)
34#define OR1K_BSP_UART_REG_INT_ID_ID     (0x06)
35#define OR1K_BSP_UART_REG_INT_ID_RLSI   (0x06)
36#define OR1K_BSP_UART_REG_INT_ID_TOI    (0x0c)
37
38/* Interrupt Enable Register */
39#define OR1K_BSP_UART_REG_INT_ENABLE_RDI  (0x01)
40#define OR1K_BSP_UART_REG_INT_ENABLE_THRI (0x02)
41#define OR1K_BSP_UART_REG_INT_ENABLE_RLSI (0x04)
42#define OR1K_BSP_UART_REG_INT_ENABLE_MSI  (0x08)
43
44#endif /* ASM */
45#endif /* LIBBSP_GENERIC_OR1K_IRQ_H */
Note: See TracBrowser for help on using the repository browser.