From b0240641c0dc941ebdfc991bebf94fef34f60b50 Mon Sep 17 00:00:00 2001 From: hap Date: Mon, 9 Sep 2024 17:18:28 +0200 Subject: ticket: remove motor/status_active setters --- src/devices/machine/ticket.cpp | 38 ++++++++++++------------------------- src/devices/machine/ticket.h | 29 ++-------------------------- src/mame/acorn/aristmk5.cpp | 2 +- src/mame/astrocorp/astrcorp.cpp | 8 ++++---- src/mame/barcrest/mpu4.cpp | 2 +- src/mame/bmc/bmcpokr.cpp | 4 +--- src/mame/edevices/pzletime.cpp | 2 +- src/mame/excellent/d9final.cpp | 2 +- src/mame/excellent/dblcrown.cpp | 2 +- src/mame/excellent/witch.cpp | 2 +- src/mame/f32/f-32.cpp | 2 +- src/mame/ice/lethalj.cpp | 2 +- src/mame/igs/funtech.cpp | 2 +- src/mame/igs/goldstar.cpp | 2 +- src/mame/igs/igs017.cpp | 26 ++++++++++++------------- src/mame/igs/igs_fear.cpp | 2 +- src/mame/igs/igs_m027.cpp | 10 +++++----- src/mame/itech/capbowl.cpp | 2 +- src/mame/itech/itech32.cpp | 2 +- src/mame/itech/itech8.cpp | 2 +- src/mame/jaleco/cischeat.cpp | 2 +- src/mame/konami/konamigs.cpp | 2 +- src/mame/konami/konmedal.cpp | 6 +++--- src/mame/konami/konmedal68k.cpp | 2 +- src/mame/konami/piratesh.cpp | 4 ++-- src/mame/konami/quickpick5.cpp | 2 +- src/mame/midway/williams.cpp | 2 +- src/mame/misc/amusco.cpp | 2 +- src/mame/misc/babysuprem.cpp | 6 +++--- src/mame/misc/calomega.cpp | 4 ++-- src/mame/misc/clpoker.cpp | 2 +- src/mame/misc/dcheese.cpp | 2 +- src/mame/misc/gei.cpp | 2 +- src/mame/misc/gi6809.cpp | 2 +- src/mame/misc/interflip8035.cpp | 2 +- src/mame/misc/jackhouse.cpp | 2 +- src/mame/misc/kingpin.cpp | 2 +- src/mame/misc/kurukuru.cpp | 7 ++----- src/mame/misc/magic10.cpp | 6 +++--- src/mame/misc/mgavegas.cpp | 2 +- src/mame/misc/mjsenpu.cpp | 2 +- src/mame/misc/mpu12wbk.cpp | 2 +- src/mame/misc/multfish.cpp | 2 +- src/mame/misc/piggypas.cpp | 2 +- src/mame/misc/skylncr.cpp | 5 +---- src/mame/misc/tapatune.cpp | 2 +- src/mame/misc/tickee.cpp | 10 +++++----- src/mame/misc/tvg01.cpp | 7 ++----- src/mame/msx/big10.cpp | 2 +- src/mame/namco/cgang.cpp | 2 +- src/mame/namco/namcos10.cpp | 6 +++--- src/mame/namco/wacky_gator.cpp | 2 +- src/mame/neogeo/midas.cpp | 14 +++----------- src/mame/playmark/playmark.cpp | 8 ++++---- src/mame/playmark/powerbal.cpp | 4 ++-- src/mame/rare/xtheball.cpp | 2 +- src/mame/recfranco/rfslots8085.cpp | 4 ++-- src/mame/recfranco/rfslotsmcs48.cpp | 2 +- src/mame/sega/stv.cpp | 2 +- src/mame/seibu/banprestoms.cpp | 2 +- src/mame/seibu/feversoc.cpp | 2 +- src/mame/seta/albazc.cpp | 2 +- src/mame/seta/champbwl.cpp | 2 +- src/mame/seta/jclub2.cpp | 12 ++++++------ src/mame/seta/seta.cpp | 6 +++--- src/mame/seta/seta2.cpp | 4 ++-- src/mame/sigma/sigmab98.cpp | 10 +++++----- src/mame/subsino/subsino.cpp | 10 +++++----- src/mame/subsino/subsino2.cpp | 6 +++--- src/mame/sunelectronics/tonton.cpp | 2 +- src/mame/taito/cchance.cpp | 2 +- src/mame/taito/taito_o.cpp | 2 +- src/mame/toaplan/toaplan2.cpp | 4 +--- src/mame/ussr/special_gambl.cpp | 2 +- 74 files changed, 146 insertions(+), 206 deletions(-) diff --git a/src/devices/machine/ticket.cpp b/src/devices/machine/ticket.cpp index a8d9b119f07..97d837eb7a7 100644 --- a/src/devices/machine/ticket.cpp +++ b/src/devices/machine/ticket.cpp @@ -11,18 +11,10 @@ #include "emu.h" #include "ticket.h" - -//************************************************************************** -// DEBUGGING -//************************************************************************** - -#define DEBUG_TICKET 0 - -#define VERBOSE (DEBUG_TICKET) +#define VERBOSE (0) #include "logmacro.h" - //************************************************************************** // GLOBAL VARIABLES //************************************************************************** @@ -43,15 +35,10 @@ DEFINE_DEVICE_TYPE(HOPPER, hopper_device, "coin_hopper", "Coin Hopper") ticket_dispenser_device::ticket_dispenser_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, type, tag, owner, clock) - , m_motor_sense(MOTOR_ACTIVE_LOW) - , m_status_sense(STATUS_ACTIVE_LOW) , m_period(attotime::from_msec(100)) , m_hopper_type(false) - , m_motoron(0) - , m_ticketdispensed(0) - , m_ticketnotdispensed(0) - , m_status(0) - , m_power(0) + , m_status(false) + , m_power(false) , m_timer(nullptr) , m_output(*this, tag) // TODO: change to "tag:status" , m_dispense_handler(*this) @@ -61,11 +48,13 @@ ticket_dispenser_device::ticket_dispenser_device(const machine_config &mconfig, ticket_dispenser_device::ticket_dispenser_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : ticket_dispenser_device(mconfig, TICKET_DISPENSER, tag, owner, clock) { + m_hopper_type = false; } hopper_device::hopper_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : ticket_dispenser_device(mconfig, HOPPER, tag, owner, clock) { + m_hopper_type = true; } //------------------------------------------------- @@ -98,21 +87,21 @@ int ticket_dispenser_device::line_r() void ticket_dispenser_device::motor_w(int state) { // On an activate signal, start dispensing! - if (bool(state) == m_motoron) + if (state) { if (!m_power) { LOG("%s: Ticket Power On\n", machine().describe_context()); m_timer->adjust(m_period); m_power = true; - m_status = m_ticketnotdispensed; + m_status = false; } } else { if (m_power) { - if (m_hopper_type == false || m_status == m_ticketnotdispensed) + if (!m_hopper_type || !m_status) { LOG("%s: Ticket Power Off\n", machine().describe_context()); m_timer->adjust(attotime::never); @@ -134,10 +123,6 @@ void ticket_dispenser_device::motor_w(int state) void ticket_dispenser_device::device_start() { - m_motoron = (m_motor_sense == MOTOR_ACTIVE_HIGH); - m_ticketdispensed = (m_status_sense == STATUS_ACTIVE_HIGH); - m_ticketnotdispensed = !m_ticketdispensed; - m_timer = timer_alloc(FUNC(ticket_dispenser_device::update_output_state), this); m_output.resolve(); @@ -153,7 +138,7 @@ void ticket_dispenser_device::device_start() void ticket_dispenser_device::device_reset() { - m_status = m_ticketnotdispensed; + m_status = false; m_power = false; } @@ -180,14 +165,15 @@ TIMER_CALLBACK_MEMBER(ticket_dispenser_device::update_output_state) } // update output status - m_output = m_status == m_ticketdispensed; + m_output = m_status; if (m_hopper_type) { m_dispense_handler(m_status); } + // if we just dispensed, increment global count - if (m_status == m_ticketdispensed) + if (m_status) { machine().bookkeeping().increment_dispensed_tickets(1); LOG("Ticket Dispensed\n"); diff --git a/src/devices/machine/ticket.h b/src/devices/machine/ticket.h index 67c6ef04e10..350baf7c4be 100644 --- a/src/devices/machine/ticket.h +++ b/src/devices/machine/ticket.h @@ -30,31 +30,17 @@ DECLARE_DEVICE_TYPE(HOPPER, hopper_device) class ticket_dispenser_device : public device_t { public: - static inline constexpr uint8_t MOTOR_ACTIVE_LOW = 0; // activated by state = 0 - static inline constexpr uint8_t MOTOR_ACTIVE_HIGH = 1; // activated by state = 1 - - static inline constexpr uint8_t STATUS_ACTIVE_LOW = 0; // output 0 when dispensing is done - static inline constexpr uint8_t STATUS_ACTIVE_HIGH = 1; // output 1 when dispensing is done - // construction/destruction - ticket_dispenser_device(const machine_config &mconfig, const char *tag, device_t *owner, const attotime &period, uint8_t motor_sense, uint8_t status_sense) + ticket_dispenser_device(const machine_config &mconfig, const char *tag, device_t *owner, const attotime &period) : ticket_dispenser_device(mconfig, tag, owner) { set_period(period); - set_senses(motor_sense, status_sense, false); } ticket_dispenser_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); virtual ~ticket_dispenser_device(); // inline configuration helpers void set_period(const attotime &period) { m_period = period; } - void set_senses(uint8_t motor_sense, uint8_t status_sense, bool hopper_type) - { - m_motor_sense = motor_sense; - m_status_sense = status_sense; - m_hopper_type = hopper_type; - } - auto dispense_handler() { return m_dispense_handler.bind(); } // read/write handlers @@ -71,16 +57,9 @@ protected: TIMER_CALLBACK_MEMBER(update_output_state); // configuration state - uint8_t m_motor_sense; - uint8_t m_status_sense; attotime m_period; bool m_hopper_type; - // active state - bool m_motoron; - bool m_ticketdispensed; - bool m_ticketnotdispensed; - bool m_status; bool m_power; emu_timer *m_timer; @@ -92,16 +71,12 @@ class hopper_device : public ticket_dispenser_device { public: // construction/destruction - hopper_device(const machine_config &mconfig, const char *tag, device_t *owner, const attotime &period, uint8_t motor_sense, uint8_t status_sense) + hopper_device(const machine_config &mconfig, const char *tag, device_t *owner, const attotime &period) : hopper_device(mconfig, tag, owner) { set_period(period); - set_senses(motor_sense, status_sense, true); } hopper_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); - -private: - }; #endif // MAME_MACHINE_TICKET_H diff --git a/src/mame/acorn/aristmk5.cpp b/src/mame/acorn/aristmk5.cpp index 521a4a91928..21471f13b18 100644 --- a/src/mame/acorn/aristmk5.cpp +++ b/src/mame/acorn/aristmk5.cpp @@ -2422,7 +2422,7 @@ void aristmk5_state::aristmk5(machine_config &config) DS1302(config, m_rtc, 32.768_kHz_XTAL); - HOPPER(config, m_hopper, attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(100)); // some games (jungjuic, penpir2) use the IOC KART interface for debug rs232_port_device &rs232(RS232_PORT(config, "kart", default_rs232_devices, nullptr)); diff --git a/src/mame/astrocorp/astrcorp.cpp b/src/mame/astrocorp/astrcorp.cpp index f5ad1b8565b..9098ec71780 100644 --- a/src/mame/astrocorp/astrcorp.cpp +++ b/src/mame/astrocorp/astrcorp.cpp @@ -1263,8 +1263,8 @@ void astrocorp_state::showhand(machine_config &config) NVRAM(config, "nvram"); EEPROM_93C46_16BIT(config, "eeprom"); - HOPPER(config, m_ticket, attotime::from_msec(200), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); - HOPPER(config, m_hopper, attotime::from_msec(200), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_ticket, attotime::from_msec(200)); + HOPPER(config, m_hopper, attotime::from_msec(200)); // video hardware SCREEN(config, m_screen, SCREEN_TYPE_RASTER); @@ -1308,8 +1308,8 @@ void astrocorp_state::skilldrp(machine_config &config) NVRAM(config, "nvram"); EEPROM_93C46_16BIT(config, "eeprom"); - HOPPER(config, m_ticket, attotime::from_msec(200), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); - HOPPER(config, m_hopper, attotime::from_msec(200), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_ticket, attotime::from_msec(200)); + HOPPER(config, m_hopper, attotime::from_msec(200)); // video hardware SCREEN(config, m_screen, SCREEN_TYPE_RASTER); diff --git a/src/mame/barcrest/mpu4.cpp b/src/mame/barcrest/mpu4.cpp index 1e1ca8feaf7..283975abe40 100644 --- a/src/mame/barcrest/mpu4.cpp +++ b/src/mame/barcrest/mpu4.cpp @@ -2321,7 +2321,7 @@ void mpu4_state::mpu4_common(machine_config &config) BACTA_DATALOGGER(config, m_dataport, 0); m_dataport->rxd_handler().set(FUNC(mpu4_state::dataport_rxd)); - HOPPER(config, m_hopper1, attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper1, attotime::from_msec(100)); SPEAKER(config, "mono").front_center(); diff --git a/src/mame/bmc/bmcpokr.cpp b/src/mame/bmc/bmcpokr.cpp index 43cda8bc29e..2be8ed1aeac 100644 --- a/src/mame/bmc/bmcpokr.cpp +++ b/src/mame/bmc/bmcpokr.cpp @@ -1165,9 +1165,7 @@ void bmcpokr_state::bmcpokr(machine_config &config) NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); - TICKET_DISPENSER(config, m_hopper, 0); - m_hopper->set_period(attotime::from_msec(10)); - m_hopper->set_senses(ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH, false); // hopper stuck low if too slow + TICKET_DISPENSER(config, m_hopper, attotime::from_msec(10)); // hopper stuck low if too slow SPEAKER(config, "mono").front_center(); diff --git a/src/mame/edevices/pzletime.cpp b/src/mame/edevices/pzletime.cpp index 96461f4824e..741e580d215 100644 --- a/src/mame/edevices/pzletime.cpp +++ b/src/mame/edevices/pzletime.cpp @@ -298,7 +298,7 @@ void pzletime_state::pzletime(machine_config &config) PALETTE(config, m_palette[1], palette_device::RGB_555); EEPROM_93C46_16BIT(config, "eeprom"); - TICKET_DISPENSER(config, m_ticket, attotime::from_msec(2000), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_ticket, attotime::from_msec(2000)); SPEAKER(config, "mono").front_center(); OKIM6295(config, m_oki, 937500, okim6295_device::PIN7_HIGH); //freq & pin7 taken from stlforce diff --git a/src/mame/excellent/d9final.cpp b/src/mame/excellent/d9final.cpp index 7c4fb678aac..940710ad430 100644 --- a/src/mame/excellent/d9final.cpp +++ b/src/mame/excellent/d9final.cpp @@ -335,7 +335,7 @@ void d9final_state::d9final(machine_config &config) NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); // Sharp LH5116D-10 + battery - HOPPER(config, m_hopper, attotime::from_msec(20), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(20)); screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); screen.set_refresh_hz(60); diff --git a/src/mame/excellent/dblcrown.cpp b/src/mame/excellent/dblcrown.cpp index 6032ee0839f..be6527fd1af 100644 --- a/src/mame/excellent/dblcrown.cpp +++ b/src/mame/excellent/dblcrown.cpp @@ -588,7 +588,7 @@ void dblcrown_state::dblcrown(machine_config &config) // 1000 ms. (minimal of MAX693A watchdog long timeout period with internal oscillator) WATCHDOG_TIMER(config, m_watchdog).set_time(attotime::from_msec(1000)); - HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(50)); NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); diff --git a/src/mame/excellent/witch.cpp b/src/mame/excellent/witch.cpp index 9932dbbac5f..cd2aa6cafd0 100644 --- a/src/mame/excellent/witch.cpp +++ b/src/mame/excellent/witch.cpp @@ -1080,7 +1080,7 @@ void base_state::base(machine_config &config) NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); - TICKET_DISPENSER(config, m_hopper, attotime::from_msec(50), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); // time between hopper pulses in milliseconds (not right for attendant pay) + TICKET_DISPENSER(config, m_hopper, attotime::from_msec(50)); // time between hopper pulses in milliseconds (not right for attendant pay) // 82C255 (actual chip on PCB) is equivalent to two 8255s I8255(config, m_ppi[0]); diff --git a/src/mame/f32/f-32.cpp b/src/mame/f32/f-32.cpp index 15a1b1bdfe3..94a1cbb4793 100644 --- a/src/mame/f32/f-32.cpp +++ b/src/mame/f32/f-32.cpp @@ -470,7 +470,7 @@ void royalpk2_state::royalpk2(machine_config &config) NVRAM(config, m_nvram, nvram_device::DEFAULT_ALL_0); - HOPPER(config, m_hopper, attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(100)); /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); diff --git a/src/mame/ice/lethalj.cpp b/src/mame/ice/lethalj.cpp index f014255e957..92edfd4c0f9 100644 --- a/src/mame/ice/lethalj.cpp +++ b/src/mame/ice/lethalj.cpp @@ -755,7 +755,7 @@ void lethalj_state::gameroom(machine_config &config) m_maincpu->set_pixels_per_clock(1); m_maincpu->set_scanline_ind16_callback(FUNC(lethalj_state::scanline_update)); - TICKET_DISPENSER(config, m_ticket, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_ticket, attotime::from_msec(200)); /* video hardware */ SCREEN(config, m_screen, SCREEN_TYPE_RASTER); diff --git a/src/mame/igs/funtech.cpp b/src/mame/igs/funtech.cpp index 2d4f986a48e..704dc57de4a 100644 --- a/src/mame/igs/funtech.cpp +++ b/src/mame/igs/funtech.cpp @@ -670,7 +670,7 @@ void fun_tech_corp_state::base(machine_config &config) NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_1); - TICKET_DISPENSER(config, m_hopper, attotime::from_msec(50), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_hopper, attotime::from_msec(50)); // sound hardware SPEAKER(config, "mono").front_center(); diff --git a/src/mame/igs/goldstar.cpp b/src/mame/igs/goldstar.cpp index 753f031eab3..496e346815e 100644 --- a/src/mame/igs/goldstar.cpp +++ b/src/mame/igs/goldstar.cpp @@ -11225,7 +11225,7 @@ void unkch_state::unkch(machine_config &config) aysnd.add_route(ALL_OUTPUTS, "mono", 0.50); /* payout hardware */ - TICKET_DISPENSER(config, m_ticket_dispenser, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_ticket_dispenser, attotime::from_msec(200)); } void unkch_state::rolling(machine_config &config) diff --git a/src/mame/igs/igs017.cpp b/src/mame/igs/igs017.cpp index 069fe7df638..b84ee29890f 100644 --- a/src/mame/igs/igs017.cpp +++ b/src/mame/igs/igs017.cpp @@ -4436,7 +4436,7 @@ void igs017_state::tarzan(machine_config &config) m_igs017_igs031->in_pa_callback().set_ioport("COINS"); m_igs017_igs031->in_pb_callback().set(FUNC(igs017_state::tarzan_keys_joy_r)); - HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(50)); // protection IGS_STRING(config, m_igs_string, 0); @@ -4470,7 +4470,7 @@ void igs017_state::starzan(machine_config &config) m_igs017_igs031->in_pb_callback().set_ioport("PLAYER1"); m_igs017_igs031->in_pc_callback().set(FUNC(igs017_state::dsw_r)); - HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(50)); // protection IGS_STRING(config, m_igs_string, 0); @@ -4504,7 +4504,7 @@ void igs017_state::happyskl(machine_config &config) m_igs017_igs031->in_pb_callback().set_ioport("PLAYER1"); m_igs017_igs031->in_pc_callback().set(FUNC(igs017_state::dsw_r)); - HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(50)); // video m_igs017_igs031->set_palette_scramble_cb(FUNC(igs017_state::tarzan_palette_bitswap)); @@ -4529,7 +4529,7 @@ void igs017_state::cpoker2(machine_config &config) m_igs017_igs031->in_pb_callback().set_ioport("PLAYER1"); m_igs017_igs031->in_pc_callback().set(FUNC(igs017_state::dsw_r)); - HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(50)); // protection IGS_INCDEC(config, m_igs_incdec, 0); @@ -4559,7 +4559,7 @@ void igs017_state::tjsb(machine_config &config) m_igs017_igs031->in_pb_callback().set_ioport("DSW2"); m_igs017_igs031->in_pc_callback().set_ioport("DSW3"); - HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(50)); // protection IGS_STRING(config, m_igs_string, 0); @@ -4590,7 +4590,7 @@ void igs017_state::spkrform(machine_config &config) m_igs017_igs031->in_pb_callback().set_ioport("DSW2"); m_igs017_igs031->in_pc_callback().set_ioport("DSW3"); - HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(50)); // protection IGS_STRING(config, m_igs_string, 0); @@ -4630,7 +4630,7 @@ void igs017_state::mgcs(machine_config &config) m_igs017_igs031->in_pb_callback().set(FUNC(igs017_state::mgcs_keys_joy_r)); m_igs017_igs031->in_pc_callback().set_ioport("JOY"); - HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(50)); // protection IGS_STRING(config, m_igs_string, 0); @@ -4664,7 +4664,7 @@ void igs017_state::lhzb2(machine_config &config) m_igs017_igs031->in_pb_callback().set_ioport("DSW1"); m_igs017_igs031->in_pc_callback().set_ioport("DSW2"); - HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(50)); // protection IGS_STRING(config, m_igs_string, 0); @@ -4699,7 +4699,7 @@ void igs017_state::lhzb2a(machine_config &config) // ppi8255 not used for i/o (just video enable)? - HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(50)); // protection IGS_STRING(config, m_igs_string, 0); @@ -4736,7 +4736,7 @@ void igs017_state::slqz2(machine_config &config) m_igs017_igs031->in_pb_callback().set_ioport("DSW1"); m_igs017_igs031->in_pc_callback().set_ioport("DSW2"); - HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(50)); // protection IGS_STRING(config, m_igs_string, 0); @@ -4765,7 +4765,7 @@ void igs017_state::sdmg2(machine_config &config) m_igs017_igs031->in_pb_callback().set_ioport("DSW2"); // DSW3 is read but unused (it's not populated on the PCB) - HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(50)); // protection IGS_INCDEC(config, m_igs_incdec, 0); @@ -4798,7 +4798,7 @@ void igs017_state::mgdha(machine_config &config) m_igs017_igs031->in_pa_callback().set_ioport("DSW1"); - HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(50)); } void igs017_state::mgdh(machine_config &config) @@ -4826,7 +4826,7 @@ void igs017_state::sdmg2p(machine_config &config) m_igs017_igs031->in_pb_callback().set_ioport("DSW2"); m_igs017_igs031->in_pc_callback().set_ioport("DSW3"); // there are 3 DIP banks on PCB but only two are shown in test mode - HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(50)); IGS_STRING(config, m_igs_string, 0); } diff --git a/src/mame/igs/igs_fear.cpp b/src/mame/igs/igs_fear.cpp index 327477fd959..00b81b770ad 100644 --- a/src/mame/igs/igs_fear.cpp +++ b/src/mame/igs/igs_fear.cpp @@ -783,7 +783,7 @@ void igs_fear_state::igs_fear(machine_config &config) V3021(config, "rtc"); - TICKET_DISPENSER(config, m_ticket, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_ticket, attotime::from_msec(200)); /* sound hardware */ SPEAKER(config, "mono").front_center(); diff --git a/src/mame/igs/igs_m027.cpp b/src/mame/igs/igs_m027.cpp index 6fc112ccca1..3044ba608bb 100644 --- a/src/mame/igs/igs_m027.cpp +++ b/src/mame/igs/igs_m027.cpp @@ -1100,7 +1100,7 @@ void igs_m027_state::lhdmg_xor(machine_config &config) m_igs017_igs031->in_pb_callback().set_ioport("DSW2"); m_igs017_igs031->in_pc_callback().set(NAME((&igs_m027_state::kbd_r<0, 3, 0>))); - HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(50)); } void igs_m027_state::lhzb4_xor(machine_config &config) @@ -1133,7 +1133,7 @@ void igs_m027_state::zhongguo_xor(machine_config &config) { lthy_xor(config); - HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(50)); } void igs_m027_state::mgzz_xor(machine_config &config) @@ -1148,7 +1148,7 @@ void igs_m027_state::mgzz_xor(machine_config &config) m_igs017_igs031->in_pb_callback().set_ioport("DSW2"); m_igs017_igs031->in_pc_callback().set_ioport("JOY"); - HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(50)); } void igs_m027_state::oceanpar_xor(machine_config &config) @@ -1161,8 +1161,8 @@ void igs_m027_state::oceanpar_xor(machine_config &config) m_ppi->out_pb_callback().set(FUNC(igs_m027_state::oceanpar_output_w)); m_ppi->out_pc_callback().set(FUNC(igs_m027_state::lamps_w)); - HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); - TICKET_DISPENSER(config, m_ticket, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(50)); + TICKET_DISPENSER(config, m_ticket, attotime::from_msec(200)); } void igs_m027_state::extradraw(machine_config &config) diff --git a/src/mame/itech/capbowl.cpp b/src/mame/itech/capbowl.cpp index abd5a0bf55e..31b2718ab23 100644 --- a/src/mame/itech/capbowl.cpp +++ b/src/mame/itech/capbowl.cpp @@ -584,7 +584,7 @@ void capbowl_base_state::base(machine_config &config) NVRAM(config, "nvram", nvram_device::DEFAULT_RANDOM); - TICKET_DISPENSER(config, "ticket", attotime::from_msec(100), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, "ticket", attotime::from_msec(100)); // video hardware SCREEN(config, m_screen, SCREEN_TYPE_RASTER); diff --git a/src/mame/itech/itech32.cpp b/src/mame/itech/itech32.cpp index 1d18c37df65..7e9f78e0d55 100644 --- a/src/mame/itech/itech32.cpp +++ b/src/mame/itech/itech32.cpp @@ -1775,7 +1775,7 @@ void itech32_state::base_devices(machine_config &config) GENERIC_LATCH_8(config, m_soundlatch).data_pending_callback().set_inputline(m_soundcpu, INPUT_LINE_IRQ0); - TICKET_DISPENSER(config, m_ticket, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_ticket, attotime::from_msec(200)); WATCHDOG_TIMER(config, "watchdog"); diff --git a/src/mame/itech/itech8.cpp b/src/mame/itech/itech8.cpp index 9bcfdb01452..9522701bdaa 100644 --- a/src/mame/itech/itech8.cpp +++ b/src/mame/itech/itech8.cpp @@ -1721,7 +1721,7 @@ void itech8_state::itech8_core_devices(machine_config &config) { NVRAM(config, m_nvram, nvram_device::DEFAULT_RANDOM); - TICKET_DISPENSER(config, m_ticket, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_ticket, attotime::from_msec(200)); TLC34076(config, m_tlc34076, tlc34076_device::TLC34076_6_BIT); diff --git a/src/mame/jaleco/cischeat.cpp b/src/mame/jaleco/cischeat.cpp index 25a283be41c..49801edfd7b 100644 --- a/src/mame/jaleco/cischeat.cpp +++ b/src/mame/jaleco/cischeat.cpp @@ -2369,7 +2369,7 @@ void captflag_state::captflag(machine_config &config) m_maincpu->set_addrmap(AS_PROGRAM, &captflag_state::captflag_map); TIMER(config, "scantimer").configure_scanline(FUNC(captflag_state::captflag_scanline), "screen", 0, 1); - TICKET_DISPENSER(config, m_hopper, attotime::from_msec(2000), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_hopper, attotime::from_msec(2000)); WATCHDOG_TIMER(config, m_watchdog); NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); diff --git a/src/mame/konami/konamigs.cpp b/src/mame/konami/konamigs.cpp index b24088e94e4..acc77078d70 100644 --- a/src/mame/konami/konamigs.cpp +++ b/src/mame/konami/konamigs.cpp @@ -1081,7 +1081,7 @@ void gsan_state::gs_medal(machine_config &config) m_screen->set_raw(XTAL(36'000'000) / 5, 457, 0, 320, 262, 0, 240); - HOPPER(config, "hopper", attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, "hopper", attotime::from_msec(100)); } void gsan_state::init_gsan() diff --git a/src/mame/konami/konmedal.cpp b/src/mame/konami/konmedal.cpp index 9aeba082b0d..1f2b2a84d11 100644 --- a/src/mame/konami/konmedal.cpp +++ b/src/mame/konami/konmedal.cpp @@ -832,7 +832,7 @@ void konmedal_state::tsukande(machine_config &config) NVRAM(config, m_nvram, nvram_device::DEFAULT_ALL_0); m_nvram->set_custom_handler(FUNC(konmedal_state::medal_nvram_init)); - HOPPER(config, "hopper", attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, "hopper", attotime::from_msec(100)); K053252(config, m_k053252, XTAL(14'318'181) / 2); // not verified m_k053252->int1_ack().set(FUNC(konmedal_state::vbl_ack_w)); @@ -875,7 +875,7 @@ void konmedal_state::ddboy(machine_config &config) NVRAM(config, m_nvram, nvram_device::DEFAULT_ALL_0); m_nvram->set_custom_handler(FUNC(konmedal_state::medal_nvram_init)); - HOPPER(config, "hopper", attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, "hopper", attotime::from_msec(100)); K053252(config, m_k053252, XTAL(14'318'181) / 2); // not verified m_k053252->int1_ack().set(FUNC(konmedal_state::vbl_ack_w)); @@ -1019,7 +1019,7 @@ void konmedal_state::shuriboy(machine_config &config) NVRAM(config, m_nvram, nvram_device::DEFAULT_ALL_0); m_nvram->set_custom_handler(FUNC(konmedal_state::shuriboy_nvram_init)); - HOPPER(config, "hopper", attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, "hopper", attotime::from_msec(100)); /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); // everything not verified, just a placeholder diff --git a/src/mame/konami/konmedal68k.cpp b/src/mame/konami/konmedal68k.cpp index 75e315f9676..86a307a6d2a 100644 --- a/src/mame/konami/konmedal68k.cpp +++ b/src/mame/konami/konmedal68k.cpp @@ -642,7 +642,7 @@ void konmedal68k_state::kzaurus(machine_config &config) m_maincpu->set_addrmap(AS_PROGRAM, &konmedal68k_state::kzaurus_main); TIMER(config, "scantimer").configure_scanline(FUNC(konmedal68k_state::scanline), "screen", 0, 1); NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); - HOPPER(config, "hopper", attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, "hopper", attotime::from_msec(100)); /* video hardware */ SCREEN(config, m_screen, SCREEN_TYPE_RASTER); diff --git a/src/mame/konami/piratesh.cpp b/src/mame/konami/piratesh.cpp index 848afa44c12..34c88249028 100644 --- a/src/mame/konami/piratesh.cpp +++ b/src/mame/konami/piratesh.cpp @@ -610,8 +610,8 @@ void piratesh_state::piratesh(machine_config &config) K053252(config, m_k053252, XTAL(32'000'000)/4); m_k053252->set_offsets(40, 16); // TODO - TICKET_DISPENSER(config, "ticket", attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); - HOPPER(config, "hopper", attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, "ticket", attotime::from_msec(200)); + HOPPER(config, "hopper", attotime::from_msec(200)); /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); diff --git a/src/mame/konami/quickpick5.cpp b/src/mame/konami/quickpick5.cpp index 7f8b966be5d..fa2f174723b 100644 --- a/src/mame/konami/quickpick5.cpp +++ b/src/mame/konami/quickpick5.cpp @@ -589,7 +589,7 @@ void quickpick5_state::quickpick5(machine_config &config) Z80(config, m_maincpu, XTAL(32'000'000)/4); // z84c0008pec 8mhz part, 32Mhz xtal verified on PCB, divisor unknown m_maincpu->set_addrmap(AS_PROGRAM, &quickpick5_state::quickpick5_main); TIMER(config, "scantimer").configure_scanline(FUNC(quickpick5_state::scanline), "screen", 0, 1); - HOPPER(config, "hopper", attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, "hopper", attotime::from_msec(100)); K053252(config, m_k053252, XTAL(32'000'000)/4); /* K053252, xtal verified, divider not verified */ m_k053252->int1_ack().set(FUNC(quickpick5_state::vbl_ack_w)); diff --git a/src/mame/midway/williams.cpp b/src/mame/midway/williams.cpp index e7eddb36f04..4af46e955db 100644 --- a/src/mame/midway/williams.cpp +++ b/src/mame/midway/williams.cpp @@ -1780,7 +1780,7 @@ void williams_state::lottofun(machine_config &config) m_pia[0]->writepb_handler().set("ticket", FUNC(ticket_dispenser_device::motor_w)).bit(7).invert(); m_pia[0]->ca2_handler().set([this](int state) { machine().bookkeeping().coin_lockout_global_w(state); }); - TICKET_DISPENSER(config, "ticket", attotime::from_msec(70), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, "ticket", attotime::from_msec(70)); } diff --git a/src/mame/misc/amusco.cpp b/src/mame/misc/amusco.cpp index badeeb5f40a..e63b7af6beb 100644 --- a/src/mame/misc/amusco.cpp +++ b/src/mame/misc/amusco.cpp @@ -574,7 +574,7 @@ void amusco_state::amusco(machine_config &config) i8155b.in_pc_callback().set(m_rtc, FUNC(msm5832_device::data_r)); i8155b.out_pc_callback().set(m_rtc, FUNC(msm5832_device::data_w)); - TICKET_DISPENSER(config, m_hopper, attotime::from_msec(30), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_hopper, attotime::from_msec(30)); /* video hardware */ SCREEN(config, m_screen, SCREEN_TYPE_RASTER); diff --git a/src/mame/misc/babysuprem.cpp b/src/mame/misc/babysuprem.cpp index 24f750ebf96..04924ffaa51 100644 --- a/src/mame/misc/babysuprem.cpp +++ b/src/mame/misc/babysuprem.cpp @@ -183,9 +183,9 @@ void bsuprem_state::bsuprem(machine_config &config) NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); - HOPPER(config, m_hopper_5, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); - HOPPER(config, m_hopper_25, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); - HOPPER(config, m_hopper_100, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper_5, attotime::from_msec(50)); + HOPPER(config, m_hopper_25, attotime::from_msec(50)); + HOPPER(config, m_hopper_100, attotime::from_msec(50)); // Sound hardware SPEAKER(config, "mono").front_center(); diff --git a/src/mame/misc/calomega.cpp b/src/mame/misc/calomega.cpp index 4974f857a05..77c99dcf019 100644 --- a/src/mame/misc/calomega.cpp +++ b/src/mame/misc/calomega.cpp @@ -4648,7 +4648,7 @@ void calomega_state::sys903(machine_config &config) TIMER(config, "timer_0").configure_periodic(FUNC(calomega_state::timer_0), attotime::from_hz(550*2)); // (time*2) - Each timer pulse -> half period - HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH ); + HOPPER(config, m_hopper, attotime::from_msec(50)); } @@ -4726,7 +4726,7 @@ void calomega_state::sys903kb(machine_config &config) TIMER(config, "timer_0").configure_periodic(FUNC(calomega_state::timer_0), attotime::from_hz(550*2)); // (time*2) - Each timer pulse -> half period - HOPPER(config, m_hopper, attotime::from_msec(50), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH ); + HOPPER(config, m_hopper, attotime::from_msec(50)); } diff --git a/src/mame/misc/clpoker.cpp b/src/mame/misc/clpoker.cpp index 2440d0dabfe..3ed3421ad95 100644 --- a/src/mame/misc/clpoker.cpp +++ b/src/mame/misc/clpoker.cpp @@ -268,7 +268,7 @@ void clpoker_state::clpoker(machine_config &config) ppi_inputs.in_pb_callback().set_ioport("INB"); ppi_inputs.in_pc_callback().set_ioport("INC"); - TICKET_DISPENSER(config, m_hopper, attotime::from_msec(60), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_hopper, attotime::from_msec(60)); screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); screen.set_refresh_hz(60); // wrong diff --git a/src/mame/misc/dcheese.cpp b/src/mame/misc/dcheese.cpp index 4dd7603e503..8981ac991ec 100644 --- a/src/mame/misc/dcheese.cpp +++ b/src/mame/misc/dcheese.cpp @@ -388,7 +388,7 @@ void dcheese_state::dcheese(machine_config &config) EEPROM_93C46_16BIT(config, "eeprom"); - TICKET_DISPENSER(config, "ticket", attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, "ticket", attotime::from_msec(200)); WATCHDOG_TIMER(config, "watchdog"); diff --git a/src/mame/misc/gei.cpp b/src/mame/misc/gei.cpp index d80debf2c04..964851f5b5f 100644 --- a/src/mame/misc/gei.cpp +++ b/src/mame/misc/gei.cpp @@ -1059,7 +1059,7 @@ void gei_state::getrivia(machine_config &config) m_ppi[1]->out_pb_callback().set(FUNC(gei_state::lamps_w)); m_ppi[1]->out_pc_callback().set(FUNC(gei_state::lamps2_w)); - TICKET_DISPENSER(config, m_ticket, attotime::from_msec(100), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_ticket, attotime::from_msec(100)); // sound hardware SPEAKER(config, "speaker").front_center(); diff --git a/src/mame/misc/gi6809.cpp b/src/mame/misc/gi6809.cpp index e3fe9e80c77..7fab0573163 100644 --- a/src/mame/misc/gi6809.cpp +++ b/src/mame/misc/gi6809.cpp @@ -635,7 +635,7 @@ void gi6809_state::gi6809_base(machine_config &config) NETLIST_LOGIC_INPUT(config, "sound_nl:bit3", "PA3.IN", 0); NETLIST_STREAM_OUTPUT(config, "sound_nl:cout0", 0, "OUTPUT").set_mult_offset(1.0, 0.0); - TICKET_DISPENSER(config, m_hopper, attotime::from_msec(50), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_hopper, attotime::from_msec(50)); } diff --git a/src/mame/misc/interflip8035.cpp b/src/mame/misc/interflip8035.cpp index b008fdf5d07..fb38dbf4ea1 100644 --- a/src/mame/misc/interflip8035.cpp +++ b/src/mame/misc/interflip8035.cpp @@ -1237,7 +1237,7 @@ void interflip8035_state::interflip(machine_config &config) add_em_reels(config, 20, attotime::from_double(2)); // hopper device - HOPPER(config, m_hopper, attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(100)); // sound stuff SPEAKER(config, "mono").front_center(); diff --git a/src/mame/misc/jackhouse.cpp b/src/mame/misc/jackhouse.cpp index 917d50fe9fb..7a93eb6b913 100644 --- a/src/mame/misc/jackhouse.cpp +++ b/src/mame/misc/jackhouse.cpp @@ -707,7 +707,7 @@ void jackhouse_state::jackhouse(machine_config &config) GFXDECODE(config, m_gfxdecode, m_palette, gfx_jackhouse); config.set_default_layout(layout_jackhouse); - HOPPER(config, m_hopper, attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(100)); SPEAKER(config, "speaker").front_center(); diff --git a/src/mame/misc/kingpin.cpp b/src/mame/misc/kingpin.cpp index b618e5bd835..21760e2de58 100644 --- a/src/mame/misc/kingpin.cpp +++ b/src/mame/misc/kingpin.cpp @@ -240,7 +240,7 @@ void kingpin_state::kingpin(machine_config &config) AY8912(config, "aysnd", XTAL(3'579'545)).add_route(ALL_OUTPUTS, "mono", 0.50); - HOPPER(config, "hopper", attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, "hopper", attotime::from_msec(100)); config.set_default_layout(layout_kingpin); } diff --git a/src/mame/misc/kurukuru.cpp b/src/mame/misc/kurukuru.cpp index ec59b63195d..809506d5f19 100644 --- a/src/mame/misc/kurukuru.cpp +++ b/src/mame/misc/kurukuru.cpp @@ -450,9 +450,6 @@ private: #define YM2149_CLOCK MAIN_CLOCK/6/2 // '/SEL' pin tied to GND, so internal divisor x2 is active #define M5205_CLOCK XTAL(384'000) -#define HOPPER_PULSE 50 // time between hopper pulses in milliseconds -#define VDP_MEM 0x30000 - /************************************************* * Interrupts * @@ -861,11 +858,11 @@ void kurukuru_state::kurukuru(machine_config &config) // video hardware v9938_device &v9938(V9938(config, "v9938", MAIN_CLOCK)); v9938.set_screen_ntsc("screen"); - v9938.set_vram_size(VDP_MEM); + v9938.set_vram_size(0x30000); v9938.int_cb().set_inputline("maincpu", 0); SCREEN(config, "screen", SCREEN_TYPE_RASTER); - TICKET_DISPENSER(config, "hopper", attotime::from_msec(HOPPER_PULSE), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, "hopper", attotime::from_msec(50)); // sound hardware SPEAKER(config, "mono").front_center(); diff --git a/src/mame/misc/magic10.cpp b/src/mame/misc/magic10.cpp index 3c6b50a7850..7d6959c3951 100644 --- a/src/mame/misc/magic10.cpp +++ b/src/mame/misc/magic10.cpp @@ -984,8 +984,8 @@ void magic10_state::magic10(machine_config &config) // basic machine hardware m_maincpu->set_addrmap(AS_PROGRAM, &magic10_state::magic10_map); - TICKET_DISPENSER(config, m_ticket, attotime::from_msec(6), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); - HOPPER(config, m_hopper, attotime::from_msec(20), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_ticket, attotime::from_msec(6)); + HOPPER(config, m_hopper, attotime::from_msec(20)); } @@ -1044,7 +1044,7 @@ void spetrix_state::spetrix(machine_config &config) { base(config); - TICKET_DISPENSER(config, m_ticket, attotime::from_msec(6), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_ticket, attotime::from_msec(6)); m_maincpu->set_addrmap(AS_PROGRAM, &spetrix_state::spetrix_map); m_maincpu->set_vblank_int("screen", FUNC(spetrix_state::irq2_line_hold)); // L1 interrupts diff --git a/src/mame/misc/mgavegas.cpp b/src/mame/misc/mgavegas.cpp index 94382caed85..90b5e3e00e1 100644 --- a/src/mame/misc/mgavegas.cpp +++ b/src/mame/misc/mgavegas.cpp @@ -510,7 +510,7 @@ void mgavegas_state::mgavegas(machine_config &config) NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_1); - TICKET_DISPENSER(config, "hopper", attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, "hopper", attotime::from_msec(200)); // sound hardware SPEAKER(config, "mono").front_center(); diff --git a/src/mame/misc/mjsenpu.cpp b/src/mame/misc/mjsenpu.cpp index 890a3023174..14714516cc9 100644 --- a/src/mame/misc/mjsenpu.cpp +++ b/src/mame/misc/mjsenpu.cpp @@ -475,7 +475,7 @@ void mjsenpu_state::mjsenpu(machine_config &config) NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_1); // more likely coins out? - TICKET_DISPENSER(config, m_hopper, attotime::from_msec(50), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_hopper, attotime::from_msec(50)); /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); diff --git a/src/mame/misc/mpu12wbk.cpp b/src/mame/misc/mpu12wbk.cpp index 84047288c27..1c9875b17a2 100644 --- a/src/mame/misc/mpu12wbk.cpp +++ b/src/mame/misc/mpu12wbk.cpp @@ -962,7 +962,7 @@ void mpu12wbk_state::mpu12wbk(machine_config &config) NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); NVRAM(config, "nvram2", nvram_device::DEFAULT_ALL_0); - HOPPER(config, m_hopper, attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(100)); // video hardware screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); diff --git a/src/mame/misc/multfish.cpp b/src/mame/misc/multfish.cpp index 0a7c3e4a1ea..1e1b9a9ab8d 100644 --- a/src/mame/misc/multfish.cpp +++ b/src/mame/misc/multfish.cpp @@ -1080,7 +1080,7 @@ void igrosoft_gamble_state::igrosoft_gamble(machine_config &config) AY8910(config, "aysnd", 6000000/4).add_route(ALL_OUTPUTS, "mono", 0.30); M48T35(config, m_m48t35, 0); - HOPPER(config, m_hopper, attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(100)); } void igrosoft_gamble_state::rollfr(machine_config &config) diff --git a/src/mame/misc/piggypas.cpp b/src/mame/misc/piggypas.cpp index a733f8c372d..8e420e7861c 100644 --- a/src/mame/misc/piggypas.cpp +++ b/src/mame/misc/piggypas.cpp @@ -235,7 +235,7 @@ void piggypas_state::piggypas(machine_config &config) ppi.out_pb_callback().set(FUNC(piggypas_state::ctrl_w)); ppi.in_pc_callback().set_ioport("IN0"); - TICKET_DISPENSER(config, "ticket", attotime::from_msec(100), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, "ticket", attotime::from_msec(100)); } void piggypas_state::fidlstix(machine_config &config) diff --git a/src/mame/misc/skylncr.cpp b/src/mame/misc/skylncr.cpp index 91a4451fde6..adb00ceb027 100644 --- a/src/mame/misc/skylncr.cpp +++ b/src/mame/misc/skylncr.cpp @@ -134,9 +134,6 @@ namespace { -#define HOPPER_PULSE 50 // guessed - - class skylncr_state : public driver_device { public: @@ -1689,7 +1686,7 @@ void skylncr_state::skylncr(machine_config &config) ppi1.in_pb_callback().set_ioport("IN3"); ppi1.in_pc_callback().set_ioport("IN4"); - TICKET_DISPENSER(config, m_hopper, attotime::from_msec(HOPPER_PULSE), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_hopper, attotime::from_msec(50)); // duration guessed // video hardware screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); diff --git a/src/mame/misc/tapatune.cpp b/src/mame/misc/tapatune.cpp index ddb94e47d08..113879c45af 100644 --- a/src/mame/misc/tapatune.cpp +++ b/src/mame/misc/tapatune.cpp @@ -539,7 +539,7 @@ void tapatune_state::tapatune_base(machine_config &config) NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); - TICKET_DISPENSER(config, "ticket", attotime::from_msec(100), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, "ticket", attotime::from_msec(100)); /* sound hardware */ SPEAKER(config, "lspeaker").front_left(); diff --git a/src/mame/misc/tickee.cpp b/src/mame/misc/tickee.cpp index 3106fe037dc..7320d2481b2 100644 --- a/src/mame/misc/tickee.cpp +++ b/src/mame/misc/tickee.cpp @@ -806,8 +806,8 @@ void tickee_gun_state::tickee(machine_config &config) set_beamadd(50, 0); NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_1); - TICKET_DISPENSER(config, m_ticket[0], attotime::from_msec(100), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); - TICKET_DISPENSER(config, m_ticket[1], attotime::from_msec(100), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_ticket[0], attotime::from_msec(100)); + TICKET_DISPENSER(config, m_ticket[1], attotime::from_msec(100)); // video hardware TLC34076(config, m_tlc34076, tlc34076_device::TLC34076_6_BIT); @@ -850,8 +850,8 @@ void tickee_state::mouseatk(machine_config &config) NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_1); - TICKET_DISPENSER(config, m_ticket[0], attotime::from_msec(100), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); - TICKET_DISPENSER(config, m_ticket[1], attotime::from_msec(100), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_ticket[0], attotime::from_msec(100)); + TICKET_DISPENSER(config, m_ticket[1], attotime::from_msec(100)); // video hardware TLC34076(config, m_tlc34076, tlc34076_device::TLC34076_6_BIT); @@ -908,7 +908,7 @@ void tickee_gun_state::maletmad(machine_config &config) { rapidfir(config); - TICKET_DISPENSER(config, m_ticket[0], attotime::from_msec(100), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_ticket[0], attotime::from_msec(100)); } diff --git a/src/mame/misc/tvg01.cpp b/src/mame/misc/tvg01.cpp index 7221a76d6de..06509067896 100644 --- a/src/mame/misc/tvg01.cpp +++ b/src/mame/misc/tvg01.cpp @@ -103,9 +103,6 @@ private: #define CPU_CLOCK MAIN_CLOCK / 6 #define PSG_CLOCK MAIN_CLOCK / 12 -#define VDP_MEM 0x20000 // 4x MB81464-15 -#define HOPPER_PULSE 50 // time between hopper pulses in milliseconds - void tvg01_state::machine_start() { @@ -305,10 +302,10 @@ void tvg01_state::theboat(machine_config &config) v9938_device &vdp(V9938(config, "vdp", VDP_CLOCK)); // unknown type (surface-scratched 64-pin SDIP) vdp.set_screen_ntsc("screen"); - vdp.set_vram_size(VDP_MEM); // 4x MB81464-15 + vdp.set_vram_size(0x20000); // 4x MB81464-15 vdp.int_cb().set_inputline("maincpu", INPUT_LINE_IRQ0); - TICKET_DISPENSER(config, "hopper", attotime::from_msec(HOPPER_PULSE), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, "hopper", attotime::from_msec(50)); SPEAKER(config, "mono").front_center(); diff --git a/src/mame/msx/big10.cpp b/src/mame/msx/big10.cpp index bbd63717c51..1cad47601fc 100644 --- a/src/mame/msx/big10.cpp +++ b/src/mame/msx/big10.cpp @@ -235,7 +235,7 @@ void big10_state::big10(machine_config &config) NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); - TICKET_DISPENSER(config, m_hopper, attotime::from_msec(40), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_hopper, attotime::from_msec(40)); // video hardware v9938_device &v9938(V9938(config, "v9938", MASTER_CLOCK)); diff --git a/src/mame/namco/cgang.cpp b/src/mame/namco/cgang.cpp index 52cf7407b4b..fc73e87c59e 100644 --- a/src/mame/namco/cgang.cpp +++ b/src/mame/namco/cgang.cpp @@ -809,7 +809,7 @@ void cgang_state::cgang(machine_config &config) WATCHDOG_TIMER(config, m_watchdog); // HA1835P m_watchdog->set_time(attotime::from_msec(100)); // approximation - TICKET_DISPENSER(config, m_ticket, attotime::from_msec(3000), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_ticket, attotime::from_msec(3000)); // video hardware PWM_DISPLAY(config, m_digits).set_size(10, 7); diff --git a/src/mame/namco/namcos10.cpp b/src/mame/namco/namcos10.cpp index 3fdfdb09f5a..ac934de1cf5 100644 --- a/src/mame/namco/namcos10.cpp +++ b/src/mame/namco/namcos10.cpp @@ -1383,9 +1383,9 @@ void namcos10_state::namcos10_mgexio(machine_config &config) namcos10_mgexio_device &mgexio(NAMCOS10_MGEXIO(config, m_exio, 0)); - HOPPER(config, m_mgexio_hopper[0], attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); - HOPPER(config, m_mgexio_hopper[1], attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); - HOPPER(config, m_mgexio_hopper[2], attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_mgexio_hopper[0], attotime::from_msec(100)); + HOPPER(config, m_mgexio_hopper[1], attotime::from_msec(100)); + HOPPER(config, m_mgexio_hopper[2], attotime::from_msec(100)); mgexio.port4_read_callback().set([this] (offs_t offset) { uint8_t r = 0; diff --git a/src/mame/namco/wacky_gator.cpp b/src/mame/namco/wacky_gator.cpp index 73e14c6e0b2..a7b5a7d8f37 100644 --- a/src/mame/namco/wacky_gator.cpp +++ b/src/mame/namco/wacky_gator.cpp @@ -337,7 +337,7 @@ void wackygtr_state::wackygtr(machine_config &config) m_pit8253[1]->set_clk<2>(XTAL(3'579'545)/16); // this is a guess m_pit8253[1]->out_handler<2>().set(FUNC(wackygtr_state::alligator_ck<4>)); - TICKET_DISPENSER(config, "ticket", attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, "ticket", attotime::from_msec(200)); } diff --git a/src/mame/neogeo/midas.cpp b/src/mame/neogeo/midas.cpp index a0f700a9e74..c68983ed45b 100644 --- a/src/mame/neogeo/midas.cpp +++ b/src/mame/neogeo/midas.cpp @@ -671,17 +671,9 @@ void midas_state::hammer(machine_config &config) EEPROM_93C46_16BIT(config, m_eeprom); - TICKET_DISPENSER(config, m_prize[0], 0); - m_prize[0]->set_period(attotime::from_msec(1000*5)); - m_prize[0]->set_senses(ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH, false); - - TICKET_DISPENSER(config, m_prize[1], 0); - m_prize[1]->set_period(attotime::from_msec(1000*5)); - m_prize[1]->set_senses(ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH, false); - - TICKET_DISPENSER(config, m_ticket, 0); - m_ticket->set_period(attotime::from_msec(200)); - m_ticket->set_senses(ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH, false); + TICKET_DISPENSER(config, m_prize[0], attotime::from_msec(1000*5)); + TICKET_DISPENSER(config, m_prize[1], attotime::from_msec(1000*5)); + TICKET_DISPENSER(config, m_ticket, attotime::from_msec(200)); /* video hardware */ SCREEN(config, m_screen, SCREEN_TYPE_RASTER); diff --git a/src/mame/playmark/playmark.cpp b/src/mame/playmark/playmark.cpp index 166bc306998..53c5cb49c64 100644 --- a/src/mame/playmark/playmark.cpp +++ b/src/mame/playmark/playmark.cpp @@ -1315,8 +1315,8 @@ void playmark_state::hotmind(machine_config &config) MCFG_VIDEO_START_OVERRIDE(playmark_state,hotmind) - TICKET_DISPENSER(config, m_ticket, attotime::from_msec(350), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); - TICKET_DISPENSER(config, m_token, attotime::from_msec(350), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_ticket, attotime::from_msec(350)); + TICKET_DISPENSER(config, m_token, attotime::from_msec(350)); // sound hardware SPEAKER(config, "mono").front_center(); @@ -1356,8 +1356,8 @@ void playmark_state::luckboomh(machine_config &config) MCFG_VIDEO_START_OVERRIDE(playmark_state,luckboomh) - TICKET_DISPENSER(config, m_ticket, attotime::from_msec(350), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); - TICKET_DISPENSER(config, m_token, attotime::from_msec(350), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_ticket, attotime::from_msec(350)); + TICKET_DISPENSER(config, m_token, attotime::from_msec(350)); // sound hardware SPEAKER(config, "mono").front_center(); diff --git a/src/mame/playmark/powerbal.cpp b/src/mame/playmark/powerbal.cpp index f29e0505e87..51caf7d412a 100644 --- a/src/mame/playmark/powerbal.cpp +++ b/src/mame/playmark/powerbal.cpp @@ -699,8 +699,8 @@ void magicstk_state::magicstk(machine_config &config) GFXDECODE(config, m_gfxdecode, m_palette, gfx_powerbal); PALETTE(config, m_palette).set_format(palette_device::RRRRGGGGBBBBRGBx, 512); - TICKET_DISPENSER(config, m_ticket, attotime::from_msec(350), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); - TICKET_DISPENSER(config, m_token, attotime::from_msec(350), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_ticket, attotime::from_msec(350)); + TICKET_DISPENSER(config, m_token, attotime::from_msec(350)); // sound hardware SPEAKER(config, "mono").front_center(); diff --git a/src/mame/rare/xtheball.cpp b/src/mame/rare/xtheball.cpp index 713cb1696fd..8c1312e3ed0 100644 --- a/src/mame/rare/xtheball.cpp +++ b/src/mame/rare/xtheball.cpp @@ -320,7 +320,7 @@ void xtheball_state::xtheball(machine_config &config) latch3.q_out_cb<3>().set(FUNC(xtheball_state::foreground_mode_w)); // Q3 = video foreground control? - TICKET_DISPENSER(config, m_ticket, attotime::from_msec(100), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_ticket, attotime::from_msec(100)); WATCHDOG_TIMER(config, m_watchdog); diff --git a/src/mame/recfranco/rfslots8085.cpp b/src/mame/recfranco/rfslots8085.cpp index a42a290b4fc..25729c8fa5e 100644 --- a/src/mame/recfranco/rfslots8085.cpp +++ b/src/mame/recfranco/rfslots8085.cpp @@ -845,8 +845,8 @@ void rfslots8085_state::rf53_3297(machine_config &config) NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); - HOPPER(config, m_hopper[0], attotime::from_msec(150), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); // hopper motor 25 Pts. - HOPPER(config, m_hopper[1], attotime::from_msec(150), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); // hopper motor 100 Pts. + HOPPER(config, m_hopper[0], attotime::from_msec(150)); // hopper motor 25 Pts. + HOPPER(config, m_hopper[1], attotime::from_msec(150)); // hopper motor 100 Pts. add_em_reels(config, 100, attotime::from_double(2)); diff --git a/src/mame/recfranco/rfslotsmcs48.cpp b/src/mame/recfranco/rfslotsmcs48.cpp index 5e6785b8c91..40dcd01aa67 100644 --- a/src/mame/recfranco/rfslotsmcs48.cpp +++ b/src/mame/recfranco/rfslotsmcs48.cpp @@ -728,7 +728,7 @@ void rfslotsmcs48_state::rf_3115_base(machine_config &config) NVRAM(config, "data_ram", nvram_device::DEFAULT_ALL_0); // Hopper device - HOPPER(config, m_hopper, attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(100)); SPEAKER(config, "mono").front_center(); } diff --git a/src/mame/sega/stv.cpp b/src/mame/sega/stv.cpp index 4d20921a82e..1cd47ce126a 100644 --- a/src/mame/sega/stv.cpp +++ b/src/mame/sega/stv.cpp @@ -1284,7 +1284,7 @@ void stv_state::stv_slot(machine_config &config) void stv_state::hopper(machine_config &config) { stv(config); - HOPPER(config, m_hopper, attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(100)); m_maincpu->set_addrmap(AS_PROGRAM, &stv_state::hopper_mem); m_slave->set_addrmap(AS_PROGRAM, &stv_state::hopper_mem); diff --git a/src/mame/seibu/banprestoms.cpp b/src/mame/seibu/banprestoms.cpp index 8c8421bf116..f32d5eff5b4 100644 --- a/src/mame/seibu/banprestoms.cpp +++ b/src/mame/seibu/banprestoms.cpp @@ -413,7 +413,7 @@ void banprestoms_state::banprestoms(machine_config &config) NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); - TICKET_DISPENSER(config, m_ticket, attotime::from_msec(100), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); // TODO: period is guessed + TICKET_DISPENSER(config, m_ticket, attotime::from_msec(100)); // TODO: period is guessed // video hardware screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); // TODO: copied from other drivers using the same CRTC diff --git a/src/mame/seibu/feversoc.cpp b/src/mame/seibu/feversoc.cpp index db6aea51908..0355b31e4d4 100644 --- a/src/mame/seibu/feversoc.cpp +++ b/src/mame/seibu/feversoc.cpp @@ -323,7 +323,7 @@ void feversoc_state::feversoc(machine_config &config) NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); - TICKET_DISPENSER(config, m_hopper, attotime::from_msec(60), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_hopper, attotime::from_msec(60)); } /*************************************************************************** diff --git a/src/mame/seta/albazc.cpp b/src/mame/seta/albazc.cpp index a5484e08070..254b48002c0 100644 --- a/src/mame/seta/albazc.cpp +++ b/src/mame/seta/albazc.cpp @@ -227,7 +227,7 @@ void albazc_state::hanaroku(machine_config &config) NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); - TICKET_DISPENSER(config, m_hopper, attotime::from_msec(50), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_hopper, attotime::from_msec(50)); // video hardware screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); diff --git a/src/mame/seta/champbwl.cpp b/src/mame/seta/champbwl.cpp index 3809931d0b0..36193f67410 100644 --- a/src/mame/seta/champbwl.cpp +++ b/src/mame/seta/champbwl.cpp @@ -601,7 +601,7 @@ void doraemon_state::doraemon(machine_config &config) m_spritegen->set_bg_yoffsets(0x00, 0x01); m_spritegen->set_fg_yoffsets(0x00, 0x10); - TICKET_DISPENSER(config, m_hopper, attotime::from_msec(2000), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_hopper, attotime::from_msec(2000)); // video hardware screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); diff --git a/src/mame/seta/jclub2.cpp b/src/mame/seta/jclub2.cpp index 9cf0a0656e2..4d1f7dca0af 100644 --- a/src/mame/seta/jclub2.cpp +++ b/src/mame/seta/jclub2.cpp @@ -1168,8 +1168,8 @@ void jclub2o_state::jclub2o(machine_config &config) EEPROM_S29290_16BIT(config, "eeprom"); WATCHDOG_TIMER(config, "watchdog"); - TICKET_DISPENSER(config, m_hopper1, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); - TICKET_DISPENSER(config, m_hopper2, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_hopper1, attotime::from_msec(200)); + TICKET_DISPENSER(config, m_hopper2, attotime::from_msec(200)); // video hardware screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); @@ -1209,8 +1209,8 @@ void jclub2_state::jclub2(machine_config &config) EEPROM_93C46_8BIT(config, "eeprom"); WATCHDOG_TIMER(config, "watchdog"); - TICKET_DISPENSER(config, m_hopper1, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); - TICKET_DISPENSER(config, m_hopper2, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_hopper1, attotime::from_msec(200)); + TICKET_DISPENSER(config, m_hopper2, attotime::from_msec(200)); // video hardware screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); @@ -1253,8 +1253,8 @@ void darkhors_state::darkhors(machine_config &config) EEPROM_93C46_8BIT(config, "eeprom"); WATCHDOG_TIMER(config, "watchdog"); - TICKET_DISPENSER(config, m_hopper1, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); - TICKET_DISPENSER(config, m_hopper2, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_hopper1, attotime::from_msec(200)); + TICKET_DISPENSER(config, m_hopper2, attotime::from_msec(200)); // video hardware screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); diff --git a/src/mame/seta/seta.cpp b/src/mame/seta/seta.cpp index d45576ef27f..2f721c52294 100644 --- a/src/mame/seta/seta.cpp +++ b/src/mame/seta/seta.cpp @@ -7799,7 +7799,7 @@ void setaroul_state::setaroul(machine_config &config) // devices UPD4992(config, m_rtc, 32'768); // ! Actually D4911C ! ACIA6850(config, "acia0", 0); - TICKET_DISPENSER(config, "hopper", attotime::from_msec(150), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, "hopper", attotime::from_msec(150)); // video hardware screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); @@ -9091,8 +9091,8 @@ void jockeyc_state::jockeyc(machine_config &config) // devices UPD4992(config, m_rtc, 32'768); // ! Actually D4911C ! ACIA6850(config, "acia0", 0); - TICKET_DISPENSER(config, "hopper1", attotime::from_msec(150), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); - TICKET_DISPENSER(config, "hopper2", attotime::from_msec(150), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, "hopper1", attotime::from_msec(150)); + TICKET_DISPENSER(config, "hopper2", attotime::from_msec(150)); // video hardware screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); diff --git a/src/mame/seta/seta2.cpp b/src/mame/seta/seta2.cpp index ad80ace43cb..d720e290a9a 100644 --- a/src/mame/seta/seta2.cpp +++ b/src/mame/seta/seta2.cpp @@ -2371,7 +2371,7 @@ void seta2_state::reelquak(machine_config &config) downcast(*m_maincpu).parallel_w_cb().set(FUNC(seta2_state::reelquak_leds_w)); NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); - TICKET_DISPENSER(config, m_dispenser, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_dispenser, attotime::from_msec(200)); m_screen->set_visarea(0x00, 0x140-1, 0x000, 0x0f0-1); } @@ -2417,7 +2417,7 @@ void seta2_state::telpacfl(machine_config &config) EEPROM_93C46_16BIT(config, "eeprom"); // not hooked up, seems unused NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); - HOPPER(config, m_dispenser, attotime::from_msec(200), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_dispenser, attotime::from_msec(200)); // video hardware m_screen->set_visarea(0x0, 0x180-1, 0x00, 0xf0-1); // still off by 1 because of different CRTC regs? diff --git a/src/mame/sigma/sigmab98.cpp b/src/mame/sigma/sigmab98.cpp index cec0eaab53d..c81ef9c5d78 100644 --- a/src/mame/sigma/sigmab98.cpp +++ b/src/mame/sigma/sigmab98.cpp @@ -1446,7 +1446,7 @@ void sigmab98_state::sigmab98(machine_config &config) NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); EEPROM_93C46_16BIT(config, "eeprom"); - TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH ); + TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200)); // video hardware SCREEN(config, m_screen, SCREEN_TYPE_RASTER); @@ -1518,7 +1518,7 @@ void lufykzku_state::lufykzku(machine_config &config) // No EEPROM MB3773(config, m_watchdog, 0); - TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH ); + TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200)); // 2 x 8-bit parallel/serial converters TTL165(config, m_dsw_shifter[0]); @@ -1595,7 +1595,7 @@ void sammymdl_state::sammymdl(machine_config &config) NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); // battery backed RAM EEPROM_93C46_8BIT(config, "eeprom"); - TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH ); + TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200)); WATCHDOG_TIMER(config, "watchdog"); @@ -1642,8 +1642,8 @@ void sammymdl_state::gocowboy(machine_config &config) TIMER(config, "scantimer").configure_scanline(FUNC(sammymdl_state::gocowboy_int), "screen", 0, 1); config.device_remove("hopper"); - TICKET_DISPENSER(config, m_hopper_small, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH ); - TICKET_DISPENSER(config, m_hopper_large, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH ); + TICKET_DISPENSER(config, m_hopper_small, attotime::from_msec(200)); + TICKET_DISPENSER(config, m_hopper_large, attotime::from_msec(200)); m_screen->screen_vblank().set_nop(); } diff --git a/src/mame/subsino/subsino.cpp b/src/mame/subsino/subsino.cpp index ef5d7152958..ceade12bfa8 100644 --- a/src/mame/subsino/subsino.cpp +++ b/src/mame/subsino/subsino.cpp @@ -2808,7 +2808,7 @@ void subsino_state::victor21(machine_config &config) ppi.tri_pb_callback().set_constant(0); ppi.in_pc_callback().set_ioport("INC"); - TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200)); // video hardware screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); @@ -2850,7 +2850,7 @@ void subsino_state::crsbingo(machine_config &config) m_maincpu->set_addrmap(AS_PROGRAM, &subsino_state::crsbingo_map); m_maincpu->set_addrmap(AS_IO, &subsino_state::subsino_iomap); - TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200)); // video hardware screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); @@ -2891,7 +2891,7 @@ void subsino_state::srider(machine_config &config) ppi2.in_pb_callback().set_ioport("INA"); ppi2.in_pc_callback().set_ioport("INB"); - TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200)); // video hardware screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); @@ -2954,7 +2954,7 @@ void subsino_state::tisub(machine_config &config) ppi2.in_pb_callback().set_ioport("INA"); ppi2.in_pc_callback().set_ioport("INB"); - TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200)); // video hardware screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); @@ -3009,7 +3009,7 @@ void subsino_state::stbsub(machine_config &config) ppi2.in_pc_callback().set_ioport("INA"); NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); - TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200)); // video hardware screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); diff --git a/src/mame/subsino/subsino2.cpp b/src/mame/subsino/subsino2.cpp index 0bac83c68d1..f9ce368e3f0 100644 --- a/src/mame/subsino/subsino2.cpp +++ b/src/mame/subsino/subsino2.cpp @@ -2787,7 +2787,7 @@ void subsino2_state::bishjan(machine_config &config) io.in_port_callback<9>().set_ioport("RESET"); io.out_port_callback<9>().set(FUNC(subsino2_state::bishjan_outputs_w)); - TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_hopper, attotime::from_msec(200)); DS2430A(config, m_eeprom).set_timing_scale(0.24); @@ -3028,14 +3028,14 @@ void subsino2_state::xtrain(machine_config &config) io.out_port_callback<8>().set(FUNC(subsino2_state::xtrain_out_b_w)); // B io.out_port_callback<9>().set(FUNC(subsino2_state::xtrain_out_a_w)); // A - HOPPER(config, m_hopper, attotime::from_msec(200), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(200)); } void subsino2_state::ptrain(machine_config &config) { xtrain(config); - TICKET_DISPENSER(config, m_ticket, attotime::from_msec(200), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_ticket, attotime::from_msec(200)); } void subsino2_state::expcard(machine_config &config) diff --git a/src/mame/sunelectronics/tonton.cpp b/src/mame/sunelectronics/tonton.cpp index ee2fef21b10..2536cdc9b70 100644 --- a/src/mame/sunelectronics/tonton.cpp +++ b/src/mame/sunelectronics/tonton.cpp @@ -226,7 +226,7 @@ void tonton_state::tonton(machine_config &config) m_v9938->int_cb().set_inputline(m_maincpu, 0); SCREEN(config, "screen", SCREEN_TYPE_RASTER); - TICKET_DISPENSER(config, m_hopper, attotime::from_msec(HOPPER_PULSE), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_hopper, attotime::from_msec(HOPPER_PULSE)); // sound hardware SPEAKER(config, "mono").front_center(); diff --git a/src/mame/taito/cchance.cpp b/src/mame/taito/cchance.cpp index e73e120cafd..4d20a3f4ee4 100644 --- a/src/mame/taito/cchance.cpp +++ b/src/mame/taito/cchance.cpp @@ -285,7 +285,7 @@ void cchance_state::cchance(machine_config &config) TIMER(config, "scantimer").configure_scanline(FUNC(cchance_state::scanline_cb), "screen", 0, 1); TAITOIO_OPTO(config, "opto", 0); - HOPPER(config, m_hopper, attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(100)); X1_001(config, m_spritegen, 12_MHz_XTAL, m_palette, gfx_cchance); m_spritegen->set_fg_yoffsets(-0x12, 0x0e); diff --git a/src/mame/taito/taito_o.cpp b/src/mame/taito/taito_o.cpp index 8818790a324..81b34fce472 100644 --- a/src/mame/taito/taito_o.cpp +++ b/src/mame/taito/taito_o.cpp @@ -455,7 +455,7 @@ void taitoo_state::taitoo(machine_config &config) m_tc0080vco->set_bgflip_yoffs(-2); m_tc0080vco->set_palette(m_palette); - HOPPER(config, m_hopper, attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(100)); m_hopper->dispense_handler().set(FUNC(taitoo_state::hopper_int_cb)); SPEAKER(config, "mono").front_center(); diff --git a/src/mame/toaplan/toaplan2.cpp b/src/mame/toaplan/toaplan2.cpp index a15922fd981..440de4c31f5 100644 --- a/src/mame/toaplan/toaplan2.cpp +++ b/src/mame/toaplan/toaplan2.cpp @@ -404,8 +404,6 @@ To reset the NVRAM in Othello Derby, hold P1 Button 1 down while booting. #include "speaker.h" -#define PWRKICK_HOPPER_PULSE 50 // time between hopper pulses in milliseconds (probably wrong) - //#define TRUXTON2_STEREO /* Uncomment to hear truxton2 music in stereo */ constexpr unsigned toaplan2_state::T2PALETTE_LENGTH; @@ -4188,7 +4186,7 @@ void pwrkick_state::pwrkick(machine_config &config) // Sunwise SW931201-1 PCB (2 NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); - TICKET_DISPENSER(config, m_hopper, attotime::from_msec(PWRKICK_HOPPER_PULSE), ticket_dispenser_device::MOTOR_ACTIVE_HIGH, ticket_dispenser_device::STATUS_ACTIVE_HIGH); + TICKET_DISPENSER(config, m_hopper, attotime::from_msec(50)); // duration is probably wrong /* video hardware */ SCREEN(config, m_screen, SCREEN_TYPE_RASTER); diff --git a/src/mame/ussr/special_gambl.cpp b/src/mame/ussr/special_gambl.cpp index 802d4cf1a7d..ab9049ecd2e 100644 --- a/src/mame/ussr/special_gambl.cpp +++ b/src/mame/ussr/special_gambl.cpp @@ -274,7 +274,7 @@ void dinaris_state::dice(machine_config &config) m_ppi2->out_pc_callback().set(FUNC(dinaris_state::ppi2c_w)); NVRAM(config, m_nvram, nvram_device::DEFAULT_ALL_0); - HOPPER(config, m_hopper, attotime::from_msec(100), hopper_device::MOTOR_ACTIVE_HIGH, hopper_device::STATUS_ACTIVE_HIGH); + HOPPER(config, m_hopper, attotime::from_msec(100)); } ROM_START(dindice) -- cgit v1.2.3