From 1c98b515c5a10728d3d679ac7215440e55158f38 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Thu, 25 Aug 2016 21:34:42 +1000 Subject: * Doxyfy a significant chunk of devfind.h * Eliminate a lot of boilerplate code from devfind.h * Keep instantiation of templates in one place to improve build time * Remove some dangerous accessors --- src/devices/machine/rp5h01.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/devices/machine/rp5h01.h') diff --git a/src/devices/machine/rp5h01.h b/src/devices/machine/rp5h01.h index c33a80a998b..e1810b181ff 100644 --- a/src/devices/machine/rp5h01.h +++ b/src/devices/machine/rp5h01.h @@ -36,8 +36,6 @@ enum { class rp5h01_device : public device_t { - static UINT8 s_initial_data[0x10]; - public: rp5h01_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); @@ -56,13 +54,16 @@ protected: virtual void device_reset() override; private: + static UINT8 const s_initial_data[0x10]; + // internal state int m_counter; int m_counter_mode; /* test pin */ int m_enabled; /* chip enable */ int m_old_reset; /* reset pin state (level-triggered) */ int m_old_clock; /* clock pin state (level-triggered) */ - optional_region_ptr m_data; + UINT8 const *m_data; + optional_region_ptr m_rom; }; extern const device_type RP5H01; -- cgit v1.2.3-70-g09d2