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