mirror of
https://github.com/simh/simh.git
synced 2026-01-25 19:56:25 +00:00
VAX, PDP11, PDP8, PDP1: Properly declare timer with clock unit
This commit is contained in:
@@ -118,9 +118,8 @@ t_stat clk_reset (DEVICE *dptr)
|
||||
{
|
||||
if (clk_dev.flags & DEV_DIS) sim_cancel (&clk_unit); /* disabled? */
|
||||
else {
|
||||
sim_register_clock_unit (&clk_unit); /* declare clock unit */
|
||||
tmxr_poll = sim_rtcn_init (clk_unit.wait, TMR_CLK);
|
||||
sim_activate_abs (&clk_unit, tmxr_poll); /* activate unit */
|
||||
tmxr_poll = sim_rtcn_init_unit (&clk_unit, clk_unit.wait, TMR_CLK);/* init timer */
|
||||
sim_activate_after (&clk_unit, 1000000/CLK_TPS); /* activate unit */
|
||||
}
|
||||
clk_cntr = 0; /* clear counter */
|
||||
return SCPE_OK;
|
||||
|
||||
Reference in New Issue
Block a user