mirror of
https://github.com/holub/mame
synced 2025-04-26 10:13:37 +03:00
pic8259.c: Get rid of anonymous timer. (nw)
This commit is contained in:
parent
c1fe38f4ca
commit
d22ff429b6
@ -21,7 +21,7 @@
|
||||
#define LOG_GENERAL 0
|
||||
|
||||
|
||||
TIMER_CALLBACK_MEMBER( pic8259_device::timerproc )
|
||||
void pic8259_device::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr)
|
||||
{
|
||||
int irq;
|
||||
UINT8 mask;
|
||||
@ -381,8 +381,6 @@ void pic8259_device::device_start()
|
||||
|
||||
assert(intf != NULL);
|
||||
|
||||
m_timer = machine().scheduler().timer_alloc( timer_expired_delegate( FUNC(pic8259_device::timerproc), this) );
|
||||
|
||||
/* resolve callbacks */
|
||||
m_out_int_func.resolve(intf->out_int_func, *this);
|
||||
m_sp_en_func.resolve(intf->sp_en_func, *this);
|
||||
|
@ -48,16 +48,17 @@ public:
|
||||
|
||||
UINT8 inta_r();
|
||||
|
||||
TIMER_CALLBACK_MEMBER( timerproc );
|
||||
|
||||
protected:
|
||||
// device-level overrides
|
||||
virtual void device_config_complete();
|
||||
virtual void device_start();
|
||||
virtual void device_reset();
|
||||
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
|
||||
|
||||
private:
|
||||
inline void set_timer() { m_timer->adjust(attotime::zero); }
|
||||
static const device_timer_id TIMER_CHECK_IRQ = 0;
|
||||
|
||||
inline void set_timer() { timer_set(attotime::zero, TIMER_CHECK_IRQ); }
|
||||
void set_irq_line(int irq, int state);
|
||||
|
||||
|
||||
@ -74,8 +75,6 @@ private:
|
||||
devcb_resolved_read_line m_sp_en_func;
|
||||
devcb_resolved_read8 m_read_slave_ack_func;
|
||||
|
||||
emu_timer *m_timer;
|
||||
|
||||
pic8259_state_t m_state;
|
||||
|
||||
UINT8 m_isr;
|
||||
|
Loading…
Reference in New Issue
Block a user