bsps: Fix clock driver defines

This commit is contained in:
Sebastian Huber
2013-08-14 13:26:41 +02:00
parent 66c00789ef
commit d473dc0b22
12 changed files with 13 additions and 13 deletions

View File

@@ -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);

View File

@@ -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)

View File

@@ -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() \

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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
/*

View File

@@ -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
/*

View File

@@ -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
/*

View File

@@ -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;

View File

@@ -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 (