summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-07-21 09:52:40 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-07-23 16:31:12 +0200
commite1437144f9d69ebd47e294b09d657c2c372bacea (patch)
tree6400fd5c4212d35b7eecf0464399506d470888e2
parent2c05d33e1146e3cd687f2575f79c6f8a9e6c9a39 (diff)
tm27.h
-rw-r--r--bsps/sparc/leon3/include/tm27.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/bsps/sparc/leon3/include/tm27.h b/bsps/sparc/leon3/include/tm27.h
index c00a94c315..cfc97b125d 100644
--- a/bsps/sparc/leon3/include/tm27.h
+++ b/bsps/sparc/leon3/include/tm27.h
@@ -21,7 +21,6 @@
#define __tm27_h
#include <bsp.h>
-#include <leon.h>
/*
* Define the interrupt mechanism for Time Test 27
@@ -59,8 +58,8 @@
#else /* use a regular asynchronous trap */
-#define TEST_INTERRUPT_SOURCE LEON_INTERRUPT_EXTERNAL_1
-#define TEST_INTERRUPT_SOURCE2 LEON_INTERRUPT_EXTERNAL_1+1
+#define TEST_INTERRUPT_SOURCE 5
+#define TEST_INTERRUPT_SOURCE2 6
#define MUST_WAIT_FOR_INTERRUPT 1
static inline void Install_tm27_vector(
@@ -96,14 +95,14 @@ static inline void Install_tm27_vector(
#define Cause_tm27_intr() \
do { \
- LEON_Force_interrupt( TEST_INTERRUPT_SOURCE+(Interrupt_nest>>1)); \
+ rtems_interrupt_raise( TEST_INTERRUPT_SOURCE+(Interrupt_nest>>1)); \
nop(); \
nop(); \
nop(); \
} while (0)
#define Clear_tm27_intr() \
- LEON_Clear_interrupt( TEST_INTERRUPT_SOURCE )
+ rtems_interrupt_clear( TEST_INTERRUPT_SOURCE )
#define Lower_tm27_intr() /* empty */