diff options
author | Jan Sommer <jan.sommer@dlr.de> | 2020-04-02 21:05:48 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-04-03 11:47:18 +0200 |
commit | 1483012b38f543840e0ca28ce3559e999f0b770a (patch) | |
tree | 5c27e86d05d06692804b70b8f31e87dbc2c2e896 /bsps/shared/dev/clock | |
parent | arm: ARMv7-M statically initialized vector table (diff) | |
download | rtems-1483012b38f543840e0ca28ce3559e999f0b770a.tar.bz2 |
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.
Diffstat (limited to 'bsps/shared/dev/clock')
-rw-r--r-- | bsps/shared/dev/clock/clockimpl.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |