2
2
// copyright-holders:Aaron Giles
3
3
/* **************************************************************************
4
4
5
- eepromser.c
6
-
7
5
Serial EEPROM devices.
8
6
9
7
****************************************************************************
@@ -155,24 +153,24 @@ ALLOW_SAVE_TYPE(eeprom_serial_base_device::eeprom_state);
155
153
// eeprom_serial_base_device - constructor
156
154
// -------------------------------------------------
157
155
158
- eeprom_serial_base_device::eeprom_serial_base_device (const machine_config &mconfig, device_type devtype, const char *tag, device_t *owner, eeprom_serial_streaming enable_streaming)
159
- : eeprom_base_device(mconfig, devtype, tag, owner),
160
- m_command_address_bits(0 ),
161
- m_streaming_enabled(bool (enable_streaming)),
162
- m_output_on_falling_clock_enabled(false ),
163
- m_do_cb(*this ),
164
- m_state(STATE_IN_RESET),
165
- m_cs_state(CLEAR_LINE),
166
- m_last_cs_rising_edge_time(attotime::zero),
167
- m_oe_state(CLEAR_LINE),
168
- m_clk_state(CLEAR_LINE),
169
- m_di_state(CLEAR_LINE),
170
- m_locked(true ),
171
- m_bits_accum(0 ),
172
- m_command_address_accum(0 ),
173
- m_command(COMMAND_INVALID),
174
- m_address(0 ),
175
- m_shift_register(0 )
156
+ eeprom_serial_base_device::eeprom_serial_base_device (const machine_config &mconfig, device_type devtype, const char *tag, device_t *owner, eeprom_serial_streaming enable_streaming) :
157
+ eeprom_base_device(mconfig, devtype, tag, owner),
158
+ m_command_address_bits(0 ),
159
+ m_streaming_enabled(bool (enable_streaming)),
160
+ m_output_on_falling_clock_enabled(false ),
161
+ m_do_cb(*this ),
162
+ m_state(STATE_IN_RESET),
163
+ m_cs_state(CLEAR_LINE),
164
+ m_last_cs_rising_edge_time(attotime::zero),
165
+ m_oe_state(CLEAR_LINE),
166
+ m_clk_state(CLEAR_LINE),
167
+ m_di_state(CLEAR_LINE),
168
+ m_locked(true ),
169
+ m_bits_accum(0 ),
170
+ m_command_address_accum(0 ),
171
+ m_command(COMMAND_INVALID),
172
+ m_address(0 ),
173
+ m_shift_register(0 )
176
174
{
177
175
}
178
176
@@ -193,6 +191,7 @@ void eeprom_serial_base_device::device_start()
193
191
// save the current state
194
192
save_item (NAME (m_state));
195
193
save_item (NAME (m_cs_state));
194
+ save_item (NAME (m_last_cs_rising_edge_time));
196
195
save_item (NAME (m_oe_state));
197
196
save_item (NAME (m_clk_state));
198
197
save_item (NAME (m_di_state));
0 commit comments