diff options
author | 2011-02-03 09:06:34 +0000 | |
---|---|---|
committer | 2011-02-03 09:06:34 +0000 | |
commit | f534d245c02059be44071e9c37f38497f12f67f8 (patch) | |
tree | b7b724026e8005bed1a42de7b3b6ea72178e4554 /src/emu/imagedev/flopdrv.c | |
parent | 1e88333178b63ee0d5b914e181b19b3b161f807b (diff) |
Attotime bulk conversion step:
attotime_zero => attotime::zero
attotime_never => attotime::never
ATTOTIME_IN_SEC(s) => attotime::from_seconds(s)
ATTOTIME_IN_MSEC(m) => attotime::from_msec(m)
ATTOTIME_IN_USEC(u) => attotime::from_usec(u)
ATTOTIME_IN_NSEC(n) => attotime::from_nsec(n)
ATTOTIME_IN_HZ(h) => attotime::from_hz(h)
Also, changed the following MCFG macros to require a full
attotime specification:
MCFG_TIMER_ADD_PERIODIC
MCFG_QUANTUM_TIME
MCFG_WATCHDOG_TIME_INIT
Diffstat (limited to 'src/emu/imagedev/flopdrv.c')
-rw-r--r-- | src/emu/imagedev/flopdrv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/imagedev/flopdrv.c b/src/emu/imagedev/flopdrv.c index 6f22d8dea71..786f8b3f134 100644 --- a/src/emu/imagedev/flopdrv.c +++ b/src/emu/imagedev/flopdrv.c @@ -674,7 +674,7 @@ DEVICE_IMAGE_LOAD( floppy ) else next_wpt = CLEAR_LINE; - timer_set(image.device().machine, ATTOTIME_IN_MSEC(250), flopimg, next_wpt, set_wpt); + timer_set(image.device().machine, attotime::from_msec(250), flopimg, next_wpt, set_wpt); return retVal; } @@ -702,7 +702,7 @@ DEVICE_IMAGE_UNLOAD( floppy ) devcb_call_write_line(&flopimg->out_wpt_func, flopimg->wpt); /* set timer for disk eject */ - timer_set(image.device().machine, ATTOTIME_IN_MSEC(250), flopimg, ASSERT_LINE, set_wpt); + timer_set(image.device().machine, attotime::from_msec(250), flopimg, ASSERT_LINE, set_wpt); } device_t *floppy_get_device(running_machine *machine,int drive) @@ -843,7 +843,7 @@ WRITE_LINE_DEVICE_HANDLER( floppy_mon_w ) /* on -> off */ else if (drive->mon == CLEAR_LINE && state) - timer_adjust_oneshot((emu_timer*)drive->index_timer, attotime_zero, 0); + timer_adjust_oneshot((emu_timer*)drive->index_timer, attotime::zero, 0); drive->mon = state; } |