forked from Imagelibrary/rtems
bsps: Fix clock driver defines
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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() \
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
/*
|
||||
|
||||
@@ -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
|
||||
|
||||
/*
|
||||
|
||||
@@ -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
|
||||
|
||||
/*
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user