diff options
author | 2008-11-26 06:38:08 +0000 | |
---|---|---|
committer | 2008-11-26 06:38:08 +0000 | |
commit | 6924ad81208bf71964ee63da20d14582972331f0 (patch) | |
tree | a287ea66747c45300dae4963f0bbaa5942b604c3 /src/emu/machine/74123.c | |
parent | bbac5a66b24aae68a2822fc4d3fcb17b63c704ab (diff) |
Changed timer_alloc, timer_set, timer_pulse, timer_call_after_resynch,
and timer_get_time to pass the machine parameter. Moved timer globals
to hang off of the running_machine.
Diffstat (limited to 'src/emu/machine/74123.c')
-rw-r--r-- | src/emu/machine/74123.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/machine/74123.c b/src/emu/machine/74123.c index ac047477a2d..4c6be09b621 100644 --- a/src/emu/machine/74123.c +++ b/src/emu/machine/74123.c @@ -85,7 +85,7 @@ static void set_output(const device_config *device) ttl74123_t *chip = get_safe_token(device); int output = timer_running(chip); - timer_set( attotime_zero, (void *) device, output, output_callback ); + timer_set( device->machine, attotime_zero, (void *) device, output, output_callback ); if (LOG) logerror("74123 %s: Output: %d\n", device->tag, output); } @@ -197,7 +197,7 @@ static DEVICE_START( ttl74123 ) assert_always((chip->intf->connection_type != TTL74123_GROUNDED) || (chip->intf->cap >= CAP_U(0.01)), "Only capacitors >= 0.01uF supported for GROUNDED type"); assert_always(chip->intf->cap >= CAP_P(1000), "Only capacitors >= 1000pF supported "); - chip->timer = timer_alloc(clear_callback, (void *) device); + chip->timer = timer_alloc(device->machine, clear_callback, (void *) device); /* start with the defaults */ chip->a = chip->intf->a; |