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.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/devices/cpu/h8/h8_adc.h b/src/devices/cpu/h8/h8_adc.h
index ad87432517f..8dbbbc79e5b 100644
--- a/src/devices/cpu/h8/h8_adc.h
+++ b/src/devices/cpu/h8/h8_adc.h
@@ -9,8 +9,10 @@
***************************************************************************/
-#ifndef __H8_ADC_H__
-#define __H8_ADC_H__
+#ifndef MAME_CPU_H8_H8_ADC_H
+#define MAME_CPU_H8_H8_ADC_H
+
+#pragma once
#include "h8.h"
#include "h8_intc.h"
@@ -39,8 +41,6 @@
class h8_adc_device : public device_t {
public:
- h8_adc_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source);
-
void set_info(const char *intc_tag, int vect);
DECLARE_READ8_MEMBER(addr8_r);
@@ -55,6 +55,8 @@ public:
uint64_t internal_update(uint64_t current_time);
protected:
+ h8_adc_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
+
required_device<h8_device> cpu;
h8_intc_device *intc;
address_space *io;
@@ -167,11 +169,11 @@ protected:
virtual int get_channel_index(int count) override;
};
-extern const device_type H8_ADC_3337;
-extern const device_type H8_ADC_3006;
-extern const device_type H8_ADC_2245;
-extern const device_type H8_ADC_2320;
-extern const device_type H8_ADC_2357;
-extern const device_type H8_ADC_2655;
+DECLARE_DEVICE_TYPE(H8_ADC_3337, h8_adc_3337_device)
+DECLARE_DEVICE_TYPE(H8_ADC_3006, h8_adc_3006_device)
+DECLARE_DEVICE_TYPE(H8_ADC_2245, h8_adc_2245_device)
+DECLARE_DEVICE_TYPE(H8_ADC_2320, h8_adc_2320_device)
+DECLARE_DEVICE_TYPE(H8_ADC_2357, h8_adc_2357_device)
+DECLARE_DEVICE_TYPE(H8_ADC_2655, h8_adc_2655_device)
-#endif
+#endif // MAME_CPU_H8_H8_ADC_H