source: rtems/c/src/lib/libbsp/powerpc/tqm8xx/include/irq-config.h @ 63de714c

4.104.114.95
Last change on this file since 63de714c was 63de714c, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on 09/08/08 at 09:55:39

added new BSP for TQM8xx boards

  • Property mode set to 100644
File size: 3.1 KB
Line 
1/*===============================================================*\
2| Project: RTEMS TQM8xx BSP                                       |
3+-----------------------------------------------------------------+
4| This file has been adapted to MPC8xx by                         |
5|    Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>         |
6|                    Copyright (c) 2008                           |
7|                    Embedded Brains GmbH                         |
8|                    Obere Lagerstr. 30                           |
9|                    D-82178 Puchheim                             |
10|                    Germany                                      |
11|                    rtems@embedded-brains.de                     |
12|                                                                 |
13| See the other copyright notice below for the original parts.    |
14+-----------------------------------------------------------------+
15| The license and distribution terms for this file may be         |
16| found in the file LICENSE in this distribution or at            |
17|                                                                 |
18| http://www.rtems.com/license/LICENSE.                           |
19|                                                                 |
20+-----------------------------------------------------------------+
21| this file contains the console driver                           |
22\*===============================================================*/
23/* derived from: generic MPC83xx BSP */
24/**
25 * @file
26 *
27 * @ingroup bsp_interrupt
28 *
29 * @brief BSP interrupt support configuration.
30 */
31
32/*
33 * Copyright (c) 2008
34 * Embedded Brains GmbH
35 * Obere Lagerstr. 30
36 * D-82178 Puchheim
37 * Germany
38 * rtems@embedded-brains.de
39 *
40 * The license and distribution terms for this file may be found in the file
41 * LICENSE in this distribution or at http://www.rtems.com/license/LICENSE.
42 */
43
44#ifndef LIBBSP_POWERPC_TQM8XX_IRQ_CONFIG_H
45#define LIBBSP_POWERPC_TQM8XX_IRQ_CONFIG_H
46
47#include <stdint.h>
48
49#include <bsp/irq.h>
50
51/**
52 * @addtogroup bsp_interrupt
53 *
54 * @{
55 */
56
57/**
58 * @brief Minimum vector number.
59 */
60#define BSP_INTERRUPT_VECTOR_MIN BSP_LOWEST_OFFSET
61
62/**
63 * @brief Maximum vector number.
64 */
65#define BSP_INTERRUPT_VECTOR_MAX BSP_MAX_OFFSET
66
67/**
68 * @brief Enables the index table.
69 *
70 * If you enable the index table, you have to define a size for the handler
71 * table (@ref BSP_INTERRUPT_HANDLER_TABLE_SIZE) and must provide an integer
72 * type capable to index the complete handler table (@ref
73 * bsp_interrupt_handler_index_type).
74 */
75#undef BSP_INTERRUPT_USE_INDEX_TABLE
76
77/**
78 * @brief Disables usage of the heap.
79 *
80 * If you define this, you have to define @ref BSP_INTERRUPT_USE_INDEX_TABLE as
81 * well.
82 */
83#undef BSP_INTERRUPT_NO_HEAP_USAGE
84
85#ifdef BSP_INTERRUPT_USE_INDEX_TABLE
86
87/**
88 * @brief Size of the handler table.
89 */
90#define BSP_INTERRUPT_HANDLER_TABLE_SIZE 63
91
92/**
93 * @brief Integer type capable to index the complete handler table.
94 */
95typedef uint8_t bsp_interrupt_handler_index_type;
96
97#endif /* BSP_INTERRUPT_USE_INDEX_TABLE */
98
99/** @} */
100
101#endif /* LIBBSP_POWERPC_TQM8XX_IRQ_CONFIG_H */
Note: See TracBrowser for help on using the repository browser.