source: rtems/bsps/arm/atsam/include/bsp/irq.h @ cd5573c

Last change on this file since cd5573c was cd5573c, checked in by Sebastian Huber <sebastian.huber@…>, on 06/19/21 at 10:40:57

bsps/irq: Add BSP_INTERRUPT_VECTOR_COUNT

Assert BSP_INTERRUPT_VECTOR_MAX + 1 == BSP_INTERRUPT_VECTOR_COUNT.

After building all BSPs with this patch, BSP_INTERRUPT_VECTOR_MAX can be
removed and replaced by BSP_INTERRUPT_VECTOR_COUNT. The
BSP_INTERRUPT_VECTOR_COUNT allows a default implementation which supports no
interrupt vector at all. Using COUNT instead of MAX may avoid some
interpretation issues, for example is the maximum value a valid vector number
or not.

Update #3269.

  • Property mode set to 100644
File size: 659 bytes
Line 
1/*
2 * Copyright (c) 2016 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Dornierstr. 4
6 *  82178 Puchheim
7 *  Germany
8 *  <rtems@embedded-brains.de>
9 *
10 * The license and distribution terms for this file may be
11 * found in the file LICENSE in this distribution or at
12 * http://www.rtems.org/license/LICENSE.
13 */
14
15#ifndef LIBBSP_ARM_ATSAM_ESV_70_IRQ_H
16#define LIBBSP_ARM_ATSAM_ESV_70_IRQ_H
17
18#include <bspopts.h>
19
20#ifndef ASM
21  #include <rtems.h>
22  #include <rtems/irq.h>
23  #include <rtems/irq-extension.h>
24#endif
25
26#define BSP_INTERRUPT_VECTOR_MAX 64
27#define BSP_INTERRUPT_VECTOR_COUNT 65
28
29#endif /* LIBBSP_ARM_ATSAM_ESV_70_IRQ_H */
Note: See TracBrowser for help on using the repository browser.