summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/6840ptm.h
diff options
context:
space:
mode:
author Phil Bennett <philipjbennett@users.noreply.github.com>2010-04-14 21:49:50 +0000
committer Phil Bennett <philipjbennett@users.noreply.github.com>2010-04-14 21:49:50 +0000
commit99d799f6f0bee144c729fb13603a8966e87f27f9 (patch)
treea095096d1f242517b6d5f95b8e2c3a494cdc54b3 /src/emu/machine/6840ptm.h
parent4859c32fa390bc6b372c9934ece6f91bb979fa19 (diff)
6840PTM: Fixed interrupt flag behaviour and now allow fractional input clocks. [Phil Bennett]
Diffstat (limited to 'src/emu/machine/6840ptm.h')
-rw-r--r--src/emu/machine/6840ptm.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/machine/6840ptm.h b/src/emu/machine/6840ptm.h
index f49c4381e43..e4f86f86987 100644
--- a/src/emu/machine/6840ptm.h
+++ b/src/emu/machine/6840ptm.h
@@ -29,8 +29,8 @@
typedef struct _ptm6840_interface ptm6840_interface;
struct _ptm6840_interface
{
- int internal_clock;
- int external_clock[3];
+ double internal_clock;
+ double external_clock[3];
devcb_write8 out_func[3]; // function to call when output[idx] changes
devcb_write_line irq_func; // function called if IRQ line changes
@@ -47,7 +47,7 @@ DEVICE_GET_INFO( ptm6840 );
int ptm6840_get_status( running_device *device, int clock ); // get whether timer is enabled
int ptm6840_get_irq( running_device *device ); // get IRQ state
UINT16 ptm6840_get_count( running_device *device, int counter );// get counter value
-void ptm6840_set_ext_clock( running_device *device, int counter, int clock ); // set clock frequency
+void ptm6840_set_ext_clock( running_device *device, int counter, double clock ); // set clock frequency
int ptm6840_get_ext_clock( running_device *device, int counter );// get clock frequency
WRITE8_DEVICE_HANDLER( ptm6840_set_g1 ); // set gate1 state