summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/h8/h8_adc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/h8/h8_adc.h')
-rw-r--r--src/devices/cpu/h8/h8_adc.h52
1 files changed, 30 insertions, 22 deletions
diff --git a/src/devices/cpu/h8/h8_adc.h b/src/devices/cpu/h8/h8_adc.h
index 8dbbbc79e5b..f0feb82f213 100644
--- a/src/devices/cpu/h8/h8_adc.h
+++ b/src/devices/cpu/h8/h8_adc.h
@@ -17,28 +17,6 @@
#include "h8.h"
#include "h8_intc.h"
-#define MCFG_H8_ADC_GENERIC_ADD( _tag, _type, intc, vect ) \
- MCFG_DEVICE_ADD( _tag, _type, 0 ) \
- downcast<h8_adc_device *>(device)->set_info(intc, vect);
-
-#define MCFG_H8_ADC_3337_ADD( _tag, intc, vect ) \
- MCFG_H8_ADC_GENERIC_ADD( _tag, H8_ADC_3337, intc, vect )
-
-#define MCFG_H8_ADC_3006_ADD( _tag, intc, vect ) \
- MCFG_H8_ADC_GENERIC_ADD( _tag, H8_ADC_3006, intc, vect )
-
-#define MCFG_H8_ADC_2245_ADD( _tag, intc, vect ) \
- MCFG_H8_ADC_GENERIC_ADD( _tag, H8_ADC_2245, intc, vect )
-
-#define MCFG_H8_ADC_2320_ADD( _tag, intc, vect ) \
- MCFG_H8_ADC_GENERIC_ADD( _tag, H8_ADC_2320, intc, vect )
-
-#define MCFG_H8_ADC_2357_ADD( _tag, intc, vect ) \
- MCFG_H8_ADC_GENERIC_ADD( _tag, H8_ADC_2357, intc, vect )
-
-#define MCFG_H8_ADC_2655_ADD( _tag, intc, vect ) \
- MCFG_H8_ADC_GENERIC_ADD( _tag, H8_ADC_2655, intc, vect )
-
class h8_adc_device : public device_t {
public:
void set_info(const char *intc_tag, int vect);
@@ -116,6 +94,11 @@ protected:
class h8_adc_3337_device : public h8_adc_device {
public:
h8_adc_3337_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ h8_adc_3337_device(const machine_config &mconfig, const char *tag, device_t *owner, const char *intc_tag, int vect)
+ : h8_adc_3337_device(mconfig, tag, owner, 0)
+ {
+ set_info(intc_tag, vect);
+ }
protected:
virtual int conversion_time(bool first, bool poweron) override;
@@ -125,6 +108,11 @@ protected:
class h8_adc_3006_device : public h8_adc_device {
public:
h8_adc_3006_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ h8_adc_3006_device(const machine_config &mconfig, const char *tag, device_t *owner, const char *intc_tag, int vect)
+ : h8_adc_3006_device(mconfig, tag, owner, 0)
+ {
+ set_info(intc_tag, vect);
+ }
protected:
virtual int conversion_time(bool first, bool poweron) override;
@@ -134,6 +122,11 @@ protected:
class h8_adc_2245_device : public h8_adc_device {
public:
h8_adc_2245_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ h8_adc_2245_device(const machine_config &mconfig, const char *tag, device_t *owner, const char *intc_tag, int vect)
+ : h8_adc_2245_device(mconfig, tag, owner, 0)
+ {
+ set_info(intc_tag, vect);
+ }
protected:
virtual int conversion_time(bool first, bool poweron) override;
@@ -143,6 +136,11 @@ protected:
class h8_adc_2320_device : public h8_adc_device {
public:
h8_adc_2320_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ h8_adc_2320_device(const machine_config &mconfig, const char *tag, device_t *owner, const char *intc_tag, int vect)
+ : h8_adc_2320_device(mconfig, tag, owner, 0)
+ {
+ set_info(intc_tag, vect);
+ }
protected:
virtual int conversion_time(bool first, bool poweron) override;
@@ -152,6 +150,11 @@ protected:
class h8_adc_2357_device : public h8_adc_device {
public:
h8_adc_2357_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ h8_adc_2357_device(const machine_config &mconfig, const char *tag, device_t *owner, const char *intc_tag, int vect)
+ : h8_adc_2357_device(mconfig, tag, owner, 0)
+ {
+ set_info(intc_tag, vect);
+ }
protected:
virtual int conversion_time(bool first, bool poweron) override;
@@ -161,6 +164,11 @@ protected:
class h8_adc_2655_device : public h8_adc_device {
public:
h8_adc_2655_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ h8_adc_2655_device(const machine_config &mconfig, const char *tag, device_t *owner, const char *intc_tag, int vect)
+ : h8_adc_2655_device(mconfig, tag, owner, 0)
+ {
+ set_info(intc_tag, vect);
+ }
protected:
virtual int conversion_time(bool first, bool poweron) override;