summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/mpc55xxevb/include/irq-config.h
blob: d1ecd56da79c0631eb25a5a6677fd25f6a5d19ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/**
 * @file
 *
 * @ingroup bsp_interrupt
 *
 * @brief BSP interrupt support configuration.
 */

/*
 * Copyright (c) 2008
 * Embedded Brains GmbH
 * Obere Lagerstr. 30
 * D-82178 Puchheim
 * Germany
 * rtems@embedded-brains.de
 *
 * The license and distribution terms for this file may be found in the file
 * LICENSE in this distribution or at http://www.rtems.com/license/LICENSE.
 */

#ifndef LIBBSP_POWERPC_MPC55XXEVB_IRQ_CONFIG_H
#define LIBBSP_POWERPC_MPC55XXEVB_IRQ_CONFIG_H

#include <stdint.h>

/**
 * @addtogroup bsp_interrupt
 *
 * @{
 */

/**
 * @brief Minimum vector number.
 */
#define BSP_INTERRUPT_VECTOR_MIN 0

/**
 * @brief Maximum vector number.
 */
#define BSP_INTERRUPT_VECTOR_MAX 328

/**
 * @brief Enables the index table.
 *
 * If you enable the index table, you have to define a size for the handler
 * table (@ref BSP_INTERRUPT_HANDLER_TABLE_SIZE) and must provide an integer
 * type capable to index the complete handler table (@ref
 * bsp_interrupt_handler_index_type).
 */
#define BSP_INTERRUPT_USE_INDEX_TABLE

/**
 * @brief Disables usage of the heap.
 *
 * If you define this, you have to define @ref BSP_INTERRUPT_USE_INDEX_TABLE as
 * well.
 */
#define BSP_INTERRUPT_NO_HEAP_USAGE

#ifdef BSP_INTERRUPT_USE_INDEX_TABLE

/**
 * @brief Size of the handler table.
 */
#define BSP_INTERRUPT_HANDLER_TABLE_SIZE 63

/**
 * @brief Integer type capable to index the complete handler table.
 */
typedef uint8_t bsp_interrupt_handler_index_type;

#endif /* BSP_INTERRUPT_USE_INDEX_TABLE */

/** @} */

#endif /* LIBBSP_POWERPC_MPC55XXEVB_IRQ_CONFIG_H */