Changed to use sim_clock_coschedule and sim_activate_after where appropriate
This commit is contained in:
parent
936c3dbcfe
commit
57cbb6fe0c
1 changed files with 2 additions and 3 deletions
|
@ -867,8 +867,7 @@ static t_stat vh_wr ( int32 data,
|
||||||
data &= ~CSR_MASTER_RESET;
|
data &= ~CSR_MASTER_RESET;
|
||||||
if (vh == 0) /* Only start unit service on the first unit. Units are polled there */
|
if (vh == 0) /* Only start unit service on the first unit. Units are polled there */
|
||||||
sim_clock_coschedule (&vh_unit[0], tmxr_poll);
|
sim_clock_coschedule (&vh_unit[0], tmxr_poll);
|
||||||
vh_mcount[vh] = MS2SIMH (1200); /* 1.2 seconds */
|
sim_activate_after (&vh_unit[1], 1200000); /* 1.2 seconds */
|
||||||
sim_clock_coschedule (&vh_unit[1], tmxr_poll);
|
|
||||||
}
|
}
|
||||||
if ((data & CSR_RXIE) == 0)
|
if ((data & CSR_RXIE) == 0)
|
||||||
vh_clr_rxint (vh);
|
vh_clr_rxint (vh);
|
||||||
|
@ -1226,7 +1225,7 @@ static t_stat vh_svc ( UNIT *uptr )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sim_activate (uptr, tmxr_poll); /* requeue ourselves */
|
sim_clock_coschedule (uptr, tmxr_poll); /* requeue ourselves */
|
||||||
return (SCPE_OK);
|
return (SCPE_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue