summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/ieee488/c2040fdc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/ieee488/c2040fdc.cpp')
-rw-r--r--src/devices/bus/ieee488/c2040fdc.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/devices/bus/ieee488/c2040fdc.cpp b/src/devices/bus/ieee488/c2040fdc.cpp
index 493cdb8ee69..7256457371f 100644
--- a/src/devices/bus/ieee488/c2040fdc.cpp
+++ b/src/devices/bus/ieee488/c2040fdc.cpp
@@ -88,7 +88,7 @@ c2040_fdc_t::c2040_fdc_t(const machine_config &mconfig, const char *tag, device_
m_drv_sel(0),
m_mode_sel(0),
m_rw_sel(0), m_odd_hd(0), m_pi(0),
- m_period(attotime::from_hz(clock)), t_gen(nullptr)
+ t_gen(nullptr)
{
cur_live.tm = attotime::never;
cur_live.state = IDLE;
@@ -128,6 +128,17 @@ void c2040_fdc_t::device_start()
//-------------------------------------------------
+// device_clock_changed - called when the
+// device clock is altered in any way
+//-------------------------------------------------
+
+void c2040_fdc_t::device_clock_changed()
+{
+ m_period = attotime::from_hz(clock());
+}
+
+
+//-------------------------------------------------
// device_reset - device-specific reset
//-------------------------------------------------