forked from Imagelibrary/rtems
bsps: Fix clock driver defines
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#if ON_SKYEYE==1
|
#if ON_SKYEYE==1
|
||||||
#define CLOCK_DRIVER_USE_FAST_IDLE
|
#define CLOCK_DRIVER_USE_FAST_IDLE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void Clock_isr(void * arg);
|
void Clock_isr(void * arg);
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
#include "bspopts.h"
|
#include "bspopts.h"
|
||||||
|
|
||||||
#if ON_SIMULATOR
|
#if ON_SIMULATOR
|
||||||
#define CLOCK_DRIVER_USE_FAST_IDLE
|
#define CLOCK_DRIVER_USE_FAST_IDLE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static inline int clockread(unsigned int reg)
|
static inline int clockread(unsigned int reg)
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
#include "bspopts.h"
|
#include "bspopts.h"
|
||||||
|
|
||||||
#if ON_SIMULATOR
|
#if ON_SIMULATOR
|
||||||
#define CLOCK_DRIVER_USE_FAST_IDLE
|
#define CLOCK_DRIVER_USE_FAST_IDLE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define Clock_driver_support_at_tick() \
|
#define Clock_driver_support_at_tick() \
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
#include <bsp/irq.h>
|
#include <bsp/irq.h>
|
||||||
#include <bsp.h>
|
#include <bsp.h>
|
||||||
|
|
||||||
#define CLOCK_DRIVER_USE_FAST_IDLE
|
#define CLOCK_DRIVER_USE_FAST_IDLE 1
|
||||||
|
|
||||||
#define CLOCK_VECTOR TX3904_IRQ_TMR0
|
#define CLOCK_VECTOR TX3904_IRQ_TMR0
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
#include <bsp/irq.h>
|
#include <bsp/irq.h>
|
||||||
#include <bsp.h>
|
#include <bsp.h>
|
||||||
|
|
||||||
/* #define CLOCK_DRIVER_USE_FAST_IDLE */
|
/* #define CLOCK_DRIVER_USE_FAST_IDLE 1 */
|
||||||
|
|
||||||
#define CLOCK_VECTOR TX4925_IRQ_TMR0
|
#define CLOCK_VECTOR TX4925_IRQ_TMR0
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
#include "yamon_api.h"
|
#include "yamon_api.h"
|
||||||
|
|
||||||
|
|
||||||
/* #define CLOCK_DRIVER_USE_FAST_IDLE */
|
/* #define CLOCK_DRIVER_USE_FAST_IDLE 1 */
|
||||||
|
|
||||||
#define CLOCK_VECTOR TX4938_IRQ_TMR0
|
#define CLOCK_VECTOR TX4938_IRQ_TMR0
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
/*
|
/*
|
||||||
* ISRs until next clock tick
|
* ISRs until next clock tick
|
||||||
*/
|
*/
|
||||||
#ifdef CLOCK_DRIVER_ISRS_PER_TICK
|
#if CLOCK_DRIVER_ISRS_PER_TICK
|
||||||
volatile uint32_t Clock_driver_isrs;
|
volatile uint32_t Clock_driver_isrs;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
#include <bspopts.h>
|
#include <bspopts.h>
|
||||||
|
|
||||||
#if SIMSPARC_FAST_IDLE==1
|
#if SIMSPARC_FAST_IDLE==1
|
||||||
#define CLOCK_DRIVER_USE_FAST_IDLE
|
#define CLOCK_DRIVER_USE_FAST_IDLE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
#include <bspopts.h>
|
#include <bspopts.h>
|
||||||
|
|
||||||
#if SIMSPARC_FAST_IDLE==1
|
#if SIMSPARC_FAST_IDLE==1
|
||||||
#define CLOCK_DRIVER_USE_FAST_IDLE
|
#define CLOCK_DRIVER_USE_FAST_IDLE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
#include <ambapp.h>
|
#include <ambapp.h>
|
||||||
|
|
||||||
#if SIMSPARC_FAST_IDLE==1
|
#if SIMSPARC_FAST_IDLE==1
|
||||||
#define CLOCK_DRIVER_USE_FAST_IDLE
|
#define CLOCK_DRIVER_USE_FAST_IDLE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
#include <pxa255.h>
|
#include <pxa255.h>
|
||||||
|
|
||||||
#if ON_SKYEYE==1
|
#if ON_SKYEYE==1
|
||||||
#define CLOCK_DRIVER_USE_FAST_IDLE
|
#define CLOCK_DRIVER_USE_FAST_IDLE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static unsigned long period_num;
|
static unsigned long period_num;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include <libcpu/coreTimerRegs.h>
|
#include <libcpu/coreTimerRegs.h>
|
||||||
|
|
||||||
#if (BFIN_ON_SKYEYE)
|
#if (BFIN_ON_SKYEYE)
|
||||||
#define CLOCK_DRIVER_USE_FAST_IDLE
|
#define CLOCK_DRIVER_USE_FAST_IDLE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
volatile uint32_t Clock_driver_ticks;
|
volatile uint32_t Clock_driver_ticks;
|
||||||
@@ -36,7 +36,7 @@ static rtems_isr clockISR(rtems_vector_number vector) {
|
|||||||
|
|
||||||
Clock_driver_ticks += 1;
|
Clock_driver_ticks += 1;
|
||||||
|
|
||||||
#ifdef CLOCK_DRIVER_USE_FAST_IDLE
|
#if CLOCK_DRIVER_USE_FAST_IDLE
|
||||||
do {
|
do {
|
||||||
rtems_clock_tick();
|
rtems_clock_tick();
|
||||||
} while (
|
} while (
|
||||||
|
|||||||
Reference in New Issue
Block a user