diff options
Diffstat (limited to 'src/devices/sound/okim6295.h')
-rw-r--r-- | src/devices/sound/okim6295.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/devices/sound/okim6295.h b/src/devices/sound/okim6295.h index 0a467fe190a..40690932b86 100644 --- a/src/devices/sound/okim6295.h +++ b/src/devices/sound/okim6295.h @@ -21,10 +21,6 @@ // INTERFACE CONFIGURATION MACROS //************************************************************************** -#define MCFG_OKIM6295_ADD(tag, clock, pin7) \ - MCFG_DEVICE_ADD((tag), OKIM6295, (clock)) \ - MCFG_OKIM6295_PIN7(pin7) - #define MCFG_OKIM6295_REPLACE(tag, clock, pin7) \ MCFG_DEVICE_REPLACE((tag), OKIM6295, (clock)) \ MCFG_OKIM6295_PIN7(pin7) @@ -45,17 +41,22 @@ class okim6295_device : public device_t, public device_rom_interface { public: - enum + enum pin7_state { PIN7_LOW = 0, PIN7_HIGH = 1 }; // construction/destruction + okim6295_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, pin7_state pin7) + : okim6295_device(mconfig, tag, owner, clock) + { + config_pin7(pin7); + } okim6295_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // inline configuration helpers - void config_pin7(int pin7) { m_pin7_state = pin7; } + void config_pin7(pin7_state pin7) { m_pin7_state = pin7; } // runtime configuration void set_pin7(int pin7); @@ -68,6 +69,7 @@ public: protected: // device-level overrides + virtual void device_validity_check(validity_checker &valid) const override; virtual void device_start() override; virtual void device_reset() override; virtual void device_post_load() override; |