diff options
author | 2018-05-28 12:58:19 +0200 | |
---|---|---|
committer | 2018-05-28 12:58:19 +0200 | |
commit | c4fac5bfdc7c43ef1090139f2911d369dfa26da6 (patch) | |
tree | 9ceb8ad4f2453ee4c26060df5d57425bb863a2b5 /src/devices/sound/c352.h | |
parent | 9d3ee528669a2389a1622f78bfaedd9756a794a1 (diff) |
wpc_shift, wpc_lamp, wpc_out, wpc_pic, wpc_dmd, ygv608, timekpr, at28c16, c352: Eliminated customized MCFG_DEVICE_ADD macros. (nw)
Diffstat (limited to 'src/devices/sound/c352.h')
-rw-r--r-- | src/devices/sound/c352.h | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/src/devices/sound/c352.h b/src/devices/sound/c352.h index 5715bf653cf..1900f58cbe2 100644 --- a/src/devices/sound/c352.h +++ b/src/devices/sound/c352.h @@ -7,18 +7,6 @@ //************************************************************************** -// INTERFACE CONFIGURATION MACROS -//************************************************************************** - -#define MCFG_C352_ADD(tag, clock, setting) \ - MCFG_DEVICE_ADD((tag), C352, (clock)) \ - MCFG_C352_DIVIDER(setting) - -#define MCFG_C352_DIVIDER(setting) \ - downcast<c352_device &>(*device).set_divider((setting)); - - -//************************************************************************** // TYPE DEFINITIONS //************************************************************************** @@ -30,10 +18,15 @@ class c352_device : public device_t, { public: // construction/destruction + c352_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, int divider) + : c352_device(mconfig, tag, owner, clock) + { + set_divider(divider); + } + c352_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - // inline configuration helpers - void set_divider(int setting) { m_divider = setting; } + void set_divider(int divider) { m_divider = divider; } DECLARE_READ16_MEMBER(read); DECLARE_WRITE16_MEMBER(write); |