From 1483012b38f543840e0ca28ce3559e999f0b770a Mon Sep 17 00:00:00 2001 From: Jan Sommer Date: Thu, 2 Apr 2020 21:05:48 +0200 Subject: 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. --- bsps/shared/dev/clock/clockimpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsps/shared/dev/clock/clockimpl.h b/bsps/shared/dev/clock/clockimpl.h index 3c08c80859..f3b2565c56 100644 --- a/bsps/shared/dev/clock/clockimpl.h +++ b/bsps/shared/dev/clock/clockimpl.h @@ -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 -- cgit v1.2.3