summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-08-14 11:26:41 (UTC)
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-08-14 11:27:34 (UTC)
commitd473dc0b22d3276130f893a51350c8bfb8beaac8 (patch)
tree258ba66bbe3e9ed710949cb63a6cdbac95ad27a4
parent66c00789efc4b45d7a6e45c936d29d4321742118 (diff)
downloadrtems-d473dc0b22d3276130f893a51350c8bfb8beaac8.tar.bz2
bsps: Fix clock driver defines
-rw-r--r--c/src/lib/libbsp/arm/edb7312/clock/clockdrv.c2
-rw-r--r--c/src/lib/libbsp/lm32/shared/clock/ckinit.c2
-rw-r--r--c/src/lib/libbsp/lm32/shared/milkymist_clock/ckinit.c2
-rw-r--r--c/src/lib/libbsp/mips/jmr3904/clock/clockdrv.c2
-rw-r--r--c/src/lib/libbsp/mips/rbtx4925/clock/clockdrv.c2
-rw-r--r--c/src/lib/libbsp/mips/rbtx4938/clock/clockdrv.c2
-rw-r--r--c/src/lib/libbsp/shared/clockdrv_shell.h2
-rw-r--r--c/src/lib/libbsp/sparc/erc32/clock/ckinit.c2
-rw-r--r--c/src/lib/libbsp/sparc/leon2/clock/ckinit.c2
-rw-r--r--c/src/lib/libbsp/sparc/leon3/clock/ckinit.c2
-rw-r--r--c/src/lib/libcpu/arm/pxa255/clock/clock.c2
-rw-r--r--c/src/lib/libcpu/bfin/clock/clock.c4
12 files changed, 13 insertions, 13 deletions
diff --git a/c/src/lib/libbsp/arm/edb7312/clock/clockdrv.c b/c/src/lib/libbsp/arm/edb7312/clock/clockdrv.c
index b5d49d1..451b1b8 100644
--- a/c/src/lib/libbsp/arm/edb7312/clock/clockdrv.c
+++ b/c/src/lib/libbsp/arm/edb7312/clock/clockdrv.c
@@ -15,7 +15,7 @@
#include <assert.h>
#if ON_SKYEYE==1
- #define CLOCK_DRIVER_USE_FAST_IDLE
+ #define CLOCK_DRIVER_USE_FAST_IDLE 1
#endif
void Clock_isr(void * arg);
diff --git a/c/src/lib/libbsp/lm32/shared/clock/ckinit.c b/c/src/lib/libbsp/lm32/shared/clock/ckinit.c
index 6914283..01fdc2d 100644
--- a/c/src/lib/libbsp/lm32/shared/clock/ckinit.c
+++ b/c/src/lib/libbsp/lm32/shared/clock/ckinit.c
@@ -19,7 +19,7 @@
#include "bspopts.h"
#if ON_SIMULATOR
-#define CLOCK_DRIVER_USE_FAST_IDLE
+#define CLOCK_DRIVER_USE_FAST_IDLE 1
#endif
static inline int clockread(unsigned int reg)
diff --git a/c/src/lib/libbsp/lm32/shared/milkymist_clock/ckinit.c b/c/src/lib/libbsp/lm32/shared/milkymist_clock/ckinit.c
index 10b86e2..ed6fbaa 100644
--- a/c/src/lib/libbsp/lm32/shared/milkymist_clock/ckinit.c
+++ b/c/src/lib/libbsp/lm32/shared/milkymist_clock/ckinit.c
@@ -17,7 +17,7 @@
#include "bspopts.h"
#if ON_SIMULATOR
-#define CLOCK_DRIVER_USE_FAST_IDLE
+#define CLOCK_DRIVER_USE_FAST_IDLE 1
#endif
#define Clock_driver_support_at_tick() \
diff --git a/c/src/lib/libbsp/mips/jmr3904/clock/clockdrv.c b/c/src/lib/libbsp/mips/jmr3904/clock/clockdrv.c
index 6133885..8603a06 100644
--- a/c/src/lib/libbsp/mips/jmr3904/clock/clockdrv.c
+++ b/c/src/lib/libbsp/mips/jmr3904/clock/clockdrv.c
@@ -19,7 +19,7 @@
#include <bsp/irq.h>
#include <bsp.h>
-#define CLOCK_DRIVER_USE_FAST_IDLE
+#define CLOCK_DRIVER_USE_FAST_IDLE 1
#define CLOCK_VECTOR TX3904_IRQ_TMR0
diff --git a/c/src/lib/libbsp/mips/rbtx4925/clock/clockdrv.c b/c/src/lib/libbsp/mips/rbtx4925/clock/clockdrv.c
index 1f3813b..77bdd90 100644
--- a/c/src/lib/libbsp/mips/rbtx4925/clock/clockdrv.c
+++ b/c/src/lib/libbsp/mips/rbtx4925/clock/clockdrv.c
@@ -17,7 +17,7 @@
#include <bsp/irq.h>
#include <bsp.h>
-/* #define CLOCK_DRIVER_USE_FAST_IDLE */
+/* #define CLOCK_DRIVER_USE_FAST_IDLE 1 */
#define CLOCK_VECTOR TX4925_IRQ_TMR0
diff --git a/c/src/lib/libbsp/mips/rbtx4938/clock/clockdrv.c b/c/src/lib/libbsp/mips/rbtx4938/clock/clockdrv.c
index 501ce57..6bf905c 100644
--- a/c/src/lib/libbsp/mips/rbtx4938/clock/clockdrv.c
+++ b/c/src/lib/libbsp/mips/rbtx4938/clock/clockdrv.c
@@ -23,7 +23,7 @@
#include "yamon_api.h"
-/* #define CLOCK_DRIVER_USE_FAST_IDLE */
+/* #define CLOCK_DRIVER_USE_FAST_IDLE 1 */
#define CLOCK_VECTOR TX4938_IRQ_TMR0
diff --git a/c/src/lib/libbsp/shared/clockdrv_shell.h b/c/src/lib/libbsp/shared/clockdrv_shell.h
index 4a455bb..2a7fe0b 100644
--- a/c/src/lib/libbsp/shared/clockdrv_shell.h
+++ b/c/src/lib/libbsp/shared/clockdrv_shell.h
@@ -31,7 +31,7 @@
/*
* ISRs until next clock tick
*/
-#ifdef CLOCK_DRIVER_ISRS_PER_TICK
+#if CLOCK_DRIVER_ISRS_PER_TICK
volatile uint32_t Clock_driver_isrs;
#endif
diff --git a/c/src/lib/libbsp/sparc/erc32/clock/ckinit.c b/c/src/lib/libbsp/sparc/erc32/clock/ckinit.c
index 66c1f27..1287645 100644
--- a/c/src/lib/libbsp/sparc/erc32/clock/ckinit.c
+++ b/c/src/lib/libbsp/sparc/erc32/clock/ckinit.c
@@ -26,7 +26,7 @@
#include <bspopts.h>
#if SIMSPARC_FAST_IDLE==1
-#define CLOCK_DRIVER_USE_FAST_IDLE
+#define CLOCK_DRIVER_USE_FAST_IDLE 1
#endif
/*
diff --git a/c/src/lib/libbsp/sparc/leon2/clock/ckinit.c b/c/src/lib/libbsp/sparc/leon2/clock/ckinit.c
index 13aac0b..a9c9db6 100644
--- a/c/src/lib/libbsp/sparc/leon2/clock/ckinit.c
+++ b/c/src/lib/libbsp/sparc/leon2/clock/ckinit.c
@@ -22,7 +22,7 @@
#include <bspopts.h>
#if SIMSPARC_FAST_IDLE==1
-#define CLOCK_DRIVER_USE_FAST_IDLE
+#define CLOCK_DRIVER_USE_FAST_IDLE 1
#endif
/*
diff --git a/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c b/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c
index ce47cb6..79f8864 100644
--- a/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c
+++ b/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c
@@ -23,7 +23,7 @@
#include <ambapp.h>
#if SIMSPARC_FAST_IDLE==1
-#define CLOCK_DRIVER_USE_FAST_IDLE
+#define CLOCK_DRIVER_USE_FAST_IDLE 1
#endif
/*
diff --git a/c/src/lib/libcpu/arm/pxa255/clock/clock.c b/c/src/lib/libcpu/arm/pxa255/clock/clock.c
index 0736b14..7562770 100644
--- a/c/src/lib/libcpu/arm/pxa255/clock/clock.c
+++ b/c/src/lib/libcpu/arm/pxa255/clock/clock.c
@@ -20,7 +20,7 @@
#include <pxa255.h>
#if ON_SKYEYE==1
- #define CLOCK_DRIVER_USE_FAST_IDLE
+ #define CLOCK_DRIVER_USE_FAST_IDLE 1
#endif
static unsigned long period_num;
diff --git a/c/src/lib/libcpu/bfin/clock/clock.c b/c/src/lib/libcpu/bfin/clock/clock.c
index 4652586..f9aee69 100644
--- a/c/src/lib/libcpu/bfin/clock/clock.c
+++ b/c/src/lib/libcpu/bfin/clock/clock.c
@@ -18,7 +18,7 @@
#include <libcpu/coreTimerRegs.h>
#if (BFIN_ON_SKYEYE)
-#define CLOCK_DRIVER_USE_FAST_IDLE
+#define CLOCK_DRIVER_USE_FAST_IDLE 1
#endif
volatile uint32_t Clock_driver_ticks;
@@ -36,7 +36,7 @@ static rtems_isr clockISR(rtems_vector_number vector) {
Clock_driver_ticks += 1;
-#ifdef CLOCK_DRIVER_USE_FAST_IDLE
+#if CLOCK_DRIVER_USE_FAST_IDLE
do {
rtems_clock_tick();
} while (