forked from Imagelibrary/rtems
bsp: Fix CLOCK_DRIVER_USE_FAST_IDLE and CLOCK_DRIVER_ISRS_PER_TICK.
Use the value rather than being defined. This allows inverted logic to be used.
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
#include <bsp.h>
|
#include <bsp.h>
|
||||||
|
|
||||||
#if defined(CLOCK_DRIVER_USE_FAST_IDLE) && defined(CLOCK_DRIVER_ISRS_PER_TICK)
|
#if CLOCK_DRIVER_USE_FAST_IDLE && CLOCK_DRIVER_ISRS_PER_TICK
|
||||||
#error "clockdrv_shell.h: Fast Idle PLUS n ISRs per tick is not supported"
|
#error "clockdrv_shell.h: Fast Idle PLUS n ISRs per tick is not supported"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -70,7 +70,7 @@ rtems_isr Clock_isr(
|
|||||||
*/
|
*/
|
||||||
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 (
|
||||||
@@ -89,7 +89,7 @@ rtems_isr Clock_isr(
|
|||||||
*/
|
*/
|
||||||
Clock_driver_support_at_tick();
|
Clock_driver_support_at_tick();
|
||||||
|
|
||||||
#ifdef CLOCK_DRIVER_ISRS_PER_TICK
|
#if CLOCK_DRIVER_ISRS_PER_TICK
|
||||||
/*
|
/*
|
||||||
* The driver is multiple ISRs per clock tick.
|
* The driver is multiple ISRs per clock tick.
|
||||||
*/
|
*/
|
||||||
@@ -182,7 +182,7 @@ rtems_device_driver Clock_initialize(
|
|||||||
/*
|
/*
|
||||||
* If we are counting ISRs per tick, then initialize the counter.
|
* If we are counting ISRs per tick, then initialize the counter.
|
||||||
*/
|
*/
|
||||||
#ifdef CLOCK_DRIVER_ISRS_PER_TICK
|
#if CLOCK_DRIVER_ISRS_PER_TICK
|
||||||
Clock_driver_isrs = CLOCK_DRIVER_ISRS_PER_TICK;
|
Clock_driver_isrs = CLOCK_DRIVER_ISRS_PER_TICK;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user