summaryrefslogtreecommitdiff
path: root/include/sparc/leon2/bsp/irq.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sparc/leon2/bsp/irq.h')
-rw-r--r--include/sparc/leon2/bsp/irq.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/sparc/leon2/bsp/irq.h b/include/sparc/leon2/bsp/irq.h
new file mode 100644
index 0000000000..086bf253c4
--- /dev/null
+++ b/include/sparc/leon2/bsp/irq.h
@@ -0,0 +1,28 @@
+/**
+ * @file
+ * @ingroup sparc_leon2
+ * @brief Interrupts definitions
+ *
+ * Based on libbsp/shared/include/irq.h.
+ */
+
+/*
+ * Copyright (c) 2012.
+ * Aeroflex Gaisler AB.
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifndef LIBBSP_LEON2_IRQ_CONFIG_H
+#define LIBBSP_LEON2_IRQ_CONFIG_H
+
+#define BSP_INTERRUPT_VECTOR_MAX_STD 15 /* Standard IRQ controller */
+#define BSP_INTERRUPT_VECTOR_MIN 0
+#define BSP_INTERRUPT_VECTOR_MAX BSP_INTERRUPT_VECTOR_MAX_STD
+
+/* No extra check is needed */
+#undef BSP_INTERRUPT_CUSTOM_VALID_VECTOR
+
+#endif /* LIBBSP_LEON2_IRQ_CONFIG_H */