forked from Imagelibrary/rtems
bsp/shared/clock: Reset Clock_driver_isrs to correct value
CLOCK_DRIVER_ISRS_PER_TICK is the configuration define, CLOCK_DRIVER_ISRS_PER_TICK_VALUE is the actual value of ISRS per clock tick, therefore use this one to reset the Clock_driver_isrs after each tick.
This commit is contained in:
committed by
Sebastian Huber
parent
51307919b4
commit
1483012b38
@@ -182,7 +182,7 @@ rtems_isr Clock_isr(
|
||||
if ( !Clock_driver_isrs ) {
|
||||
Clock_driver_timecounter_tick();
|
||||
|
||||
Clock_driver_isrs = CLOCK_DRIVER_ISRS_PER_TICK;
|
||||
Clock_driver_isrs = CLOCK_DRIVER_ISRS_PER_TICK_VALUE;
|
||||
}
|
||||
Clock_driver_isrs--;
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user