summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-05-07 16:58:39 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-05-07 16:58:39 -0500
commitdac3a5261751b0d11c8f9869eb9e8279377f2e9e (patch)
tree580dd33104ebe10b1dd4dfcb16731058568b6518 /c
parentcsb350 - Correct tm27.h to use PIC Interrupt Model (diff)
downloadrtems-dac3a5261751b0d11c8f9869eb9e8279377f2e9e.tar.bz2
genmongoosev - Correct tm27.h to use PIC Interrupt Model
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libbsp/mips/genmongoosev/include/tm27.h32
1 files changed, 9 insertions, 23 deletions
diff --git a/c/src/lib/libbsp/mips/genmongoosev/include/tm27.h b/c/src/lib/libbsp/mips/genmongoosev/include/tm27.h
index 52f7fafdfc..ed33e7ef97 100644
--- a/c/src/lib/libbsp/mips/genmongoosev/include/tm27.h
+++ b/c/src/lib/libbsp/mips/genmongoosev/include/tm27.h
@@ -1,11 +1,11 @@
+/**
+ * @file
+ */
+
/*
- * tm27.h
- *
* 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.
- *
- * $Id$
*/
#ifndef _RTEMS_TMTEST27
@@ -19,32 +19,18 @@
* Define the interrupt mechanism for Time Test 27
*/
-#define MUST_WAIT_FOR_INTERRUPT 1
+#include <bsp/irq.h>
-#if 1
+#define MUST_WAIT_FOR_INTERRUPT 1
#define Install_tm27_vector( handler ) \
- (void) set_vector( handler, MONGOOSEV_IRQ_SOFTWARE_1, 1 );
+ rtems_interrupt_handler_install( \
+ MONGOOSEV_IRQ_SOFTWARE_1, "benchmark", 0, \
+ (rtems_interrupt_handler)handler, NULL );
#define Cause_tm27_intr() assertSoftwareInterrupt(0);
#define Clear_tm27_intr() /* empty */
#define Lower_tm27_intr() /* empty */
-#else
-
-#define Install_tm27_vector( handler ) \
- (void) set_vector( handler, MONGOOSEV_IRQ_TIMER1, 1 );
-
-#define Cause_tm27_intr() \
- do { \
- ; \
- } while(0)
-
-#define Clear_tm27_intr() /* empty */
-
-#define Lower_tm27_intr() /* empty */
-
-#endif
-
#endif