[PATCH] bsp/shared/clock: Reset Clock_driver_isrs to correct value

Jan Sommer jan.sommer at dlr.de
Thu Apr 2 19:05:48 UTC 2020


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
-- 
2.12.3



More information about the devel mailing list