source: rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/include/irq-config.h @ 6b150cc

4.104.11
Last change on this file since 6b150cc was 574fb67, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on Jul 14, 2008 at 4:15:28 PM

updated gen83xx BSP
updated haleakala BSP
added MPC55xx BSP

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup bsp_interrupt
5 *
6 * @brief BSP interrupt support configuration.
7 */
8
9/*
10 * Copyright (c) 2008
11 * Embedded Brains GmbH
12 * Obere Lagerstr. 30
13 * D-82178 Puchheim
14 * Germany
15 * rtems@embedded-brains.de
16 *
17 * The license and distribution terms for this file may be found in the file
18 * LICENSE in this distribution or at http://www.rtems.com/license/LICENSE.
19 */
20
21#ifndef LIBBSP_POWERPC_MPC55XXEVB_IRQ_CONFIG_H
22#define LIBBSP_POWERPC_MPC55XXEVB_IRQ_CONFIG_H
23
24#include <stdint.h>
25
26/**
27 * @addtogroup bsp_interrupt
28 *
29 * @{
30 */
31
32/**
33 * @brief Minimum vector number.
34 */
35#define BSP_INTERRUPT_VECTOR_MIN 0
36
37/**
38 * @brief Maximum vector number.
39 */
40#define BSP_INTERRUPT_VECTOR_MAX 328
41
42/**
43 * @brief Enables the index table.
44 *
45 * If you enable the index table, you have to define a size for the handler
46 * table (@ref BSP_INTERRUPT_HANDLER_TABLE_SIZE) and must provide an integer
47 * type capable to index the complete handler table (@ref
48 * bsp_interrupt_handler_index_type).
49 */
50#define BSP_INTERRUPT_USE_INDEX_TABLE
51
52/**
53 * @brief Disables usage of the heap.
54 *
55 * If you define this, you have to define @ref BSP_INTERRUPT_USE_INDEX_TABLE as
56 * well.
57 */
58#define BSP_INTERRUPT_NO_HEAP_USAGE
59
60#ifdef BSP_INTERRUPT_USE_INDEX_TABLE
61
62/**
63 * @brief Size of the handler table.
64 */
65#define BSP_INTERRUPT_HANDLER_TABLE_SIZE 63
66
67/**
68 * @brief Integer type capable to index the complete handler table.
69 */
70typedef uint8_t bsp_interrupt_handler_index_type;
71
72#endif /* BSP_INTERRUPT_USE_INDEX_TABLE */
73
74/** @} */
75
76#endif /* LIBBSP_POWERPC_MPC55XXEVB_IRQ_CONFIG_H */
Note: See TracBrowser for help on using the repository browser.