Previous 199869 Revisions Next

r23649 Wednesday 12th June, 2013 at 11:43:35 UTC by Oliver Stöneberg
reverted r23642 (nw)
[src/emu/machine]upd1990a.c upd1990a.h

trunk/src/emu/machine/upd1990a.c
r23648r23649
4646//  upd1990a_device - constructor
4747//-------------------------------------------------
4848
49upd1990a_device::upd1990a_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
49upd1990a_device::upd1990a_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant)
5050   : device_t(mconfig, type, name, tag, owner, clock),
5151      device_rtc_interface(mconfig, *this),
5252      m_write_data(*this),
5353      m_write_tp(*this),
5454      m_data_out(0),
5555      m_c(0),
56      m_clk(0)
56      m_clk(0),
57      m_variant(variant)
5758{
5859}
5960
r23648r23649
6465      m_write_tp(*this),
6566      m_data_out(0),
6667      m_c(0),
67      m_clk(0)
68      m_clk(0),
69      m_variant(TYPE_1990A)
6870{
6971}
7072
7173upd4990a_device::upd4990a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
72   : upd1990a_device(mconfig, UPD4990A, "uPD4990A", tag, owner, clock) { }
74   : upd1990a_device(mconfig, UPD4990A, "uPD4990A", tag, owner, clock, TYPE_4990A) { }
7375
7476
7577//-------------------------------------------------
trunk/src/emu/machine/upd1990a.h
r23648r23649
5353{
5454public:
5555   // construction/destruction
56   upd1990a_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
56   upd1990a_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant);
5757   upd1990a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
5858
5959   template<class _data> void set_data_callback(_data data) { m_write_data.set_callback(data); }
r23648r23649
7979   // device_rtc_interface overrides
8080   virtual void rtc_clock_updated(int year, int month, int day, int day_of_week, int hour, int minute, int second);
8181
82   enum
83   {
84      TYPE_1990A = 0,
85      TYPE_4990A
86   };
87
8288private:
8389   enum
8490   {
r23648r23649
116122   int m_tp;                   // time pulse
117123   int m_c_unlatched;          // command waiting for STB
118124
125   int m_variant;
126
119127   // timers
120128   emu_timer *m_timer_clock;
121129   emu_timer *m_timer_tp;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team