[rtems commit] bsps: Fix clock driver defines
Sebastian Huber
sebh at rtems.org
Wed Aug 14 11:21:26 UTC 2013
Module: rtems
Branch: master
Commit: d473dc0b22d3276130f893a51350c8bfb8beaac8
Changeset: http://git.rtems.org/rtems/commit/?id=d473dc0b22d3276130f893a51350c8bfb8beaac8
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Aug 14 13:26:41 2013 +0200
bsps: Fix clock driver defines
---
c/src/lib/libbsp/arm/edb7312/clock/clockdrv.c | 2 +-
c/src/lib/libbsp/lm32/shared/clock/ckinit.c | 2 +-
.../libbsp/lm32/shared/milkymist_clock/ckinit.c | 2 +-
c/src/lib/libbsp/mips/jmr3904/clock/clockdrv.c | 2 +-
c/src/lib/libbsp/mips/rbtx4925/clock/clockdrv.c | 2 +-
c/src/lib/libbsp/mips/rbtx4938/clock/clockdrv.c | 2 +-
c/src/lib/libbsp/shared/clockdrv_shell.h | 2 +-
c/src/lib/libbsp/sparc/erc32/clock/ckinit.c | 2 +-
c/src/lib/libbsp/sparc/leon2/clock/ckinit.c | 2 +-
c/src/lib/libbsp/sparc/leon3/clock/ckinit.c | 2 +-
c/src/lib/libcpu/arm/pxa255/clock/clock.c | 2 +-
c/src/lib/libcpu/bfin/clock/clock.c | 4 ++--
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 (
More information about the vc
mailing list