1
0
mirror of https://github.com/simh/simh.git synced 2026-02-12 10:58:34 +00:00

SCP: Fix timer calibration to produce consistent results with multiple clocks

- Timers that schedule their ticks with sim_activate_after() now operate
   consistently without having to be the single timer used by a simulator.
- Simulators which dynamically enable the operation of a clock when one
   wasn't previously wasn't enabled will disable the internal calibrated timer.
This commit is contained in:
Mark Pizzolato
2016-09-26 15:39:42 -07:00
parent c1ca3d4612
commit 2b61a9a92d
2 changed files with 45 additions and 14 deletions

View File

@@ -131,6 +131,7 @@ void sim_stop_timer_services (void);
t_stat sim_timer_change_asynch (void);
t_stat sim_timer_activate_after (UNIT *uptr, uint32 usec_delay);
t_stat sim_register_clock_unit (UNIT *uptr);
t_stat sim_register_clock_unit_tmr (UNIT *uptr, int32 tmr);
t_stat sim_clock_coschedule (UNIT *uptr, int32 interval);
t_stat sim_clock_coschedule_abs (UNIT *uptr, int32 interval);
t_stat sim_clock_coschedule_tmr (UNIT *uptr, int32 tmr, int32 interval);