diff options
author | 2016-10-22 13:13:17 +0200 | |
---|---|---|
committer | 2016-10-22 13:13:17 +0200 | |
commit | ddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch) | |
tree | a70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/devices/bus/gamegear | |
parent | 333bff8de64dfaeb98134000412796b4fdef970b (diff) |
NOTICE (TYPE NAME CONSOLIDATION)
Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8
also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
Diffstat (limited to 'src/devices/bus/gamegear')
-rw-r--r-- | src/devices/bus/gamegear/ggext.cpp | 10 | ||||
-rw-r--r-- | src/devices/bus/gamegear/ggext.h | 12 | ||||
-rw-r--r-- | src/devices/bus/gamegear/smsctrladp.cpp | 6 | ||||
-rw-r--r-- | src/devices/bus/gamegear/smsctrladp.h | 6 |
4 files changed, 17 insertions, 17 deletions
diff --git a/src/devices/bus/gamegear/ggext.cpp b/src/devices/bus/gamegear/ggext.cpp index fa09f4272a1..5aad987a7a7 100644 --- a/src/devices/bus/gamegear/ggext.cpp +++ b/src/devices/bus/gamegear/ggext.cpp @@ -54,7 +54,7 @@ device_gg_ext_port_interface::~device_gg_ext_port_interface() // gg_ext_port_device - constructor //------------------------------------------------- -gg_ext_port_device::gg_ext_port_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : +gg_ext_port_device::gg_ext_port_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, GG_EXT_PORT, "EXT Port", tag, owner, clock, "gg_ext_port", __FILE__), device_slot_interface(mconfig, *this), m_device(nullptr), m_th_pin_handler(*this), @@ -85,15 +85,15 @@ void gg_ext_port_device::device_start() } -UINT8 gg_ext_port_device::port_r() +uint8_t gg_ext_port_device::port_r() { - UINT8 data = 0xff; + uint8_t data = 0xff; if (m_device) data = m_device->peripheral_r(); return data; } -void gg_ext_port_device::port_w( UINT8 data ) +void gg_ext_port_device::port_w( uint8_t data ) { if (m_device) m_device->peripheral_w(data); @@ -105,7 +105,7 @@ void gg_ext_port_device::th_pin_w(int state) m_th_pin_handler(state); } -UINT32 gg_ext_port_device::pixel_r() +uint32_t gg_ext_port_device::pixel_r() { return m_pixel_handler(); } diff --git a/src/devices/bus/gamegear/ggext.h b/src/devices/bus/gamegear/ggext.h index 0388838daaa..322de4812a4 100644 --- a/src/devices/bus/gamegear/ggext.h +++ b/src/devices/bus/gamegear/ggext.h @@ -52,7 +52,7 @@ class gg_ext_port_device : public device_t, { public: // construction/destruction - gg_ext_port_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + gg_ext_port_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); virtual ~gg_ext_port_device(); // static configuration helpers @@ -76,11 +76,11 @@ public: // bit 7 - pin 9 - TR (Button 2) // pin 10 - Not connected // - UINT8 port_r(); - void port_w( UINT8 data ); + uint8_t port_r(); + void port_w( uint8_t data ); void th_pin_w(int state); - UINT32 pixel_r(); + uint32_t pixel_r(); //protected: // device-level overrides @@ -104,8 +104,8 @@ public: device_gg_ext_port_interface(const machine_config &mconfig, device_t &device); virtual ~device_gg_ext_port_interface(); - virtual UINT8 peripheral_r() { return 0xff; }; - virtual void peripheral_w(UINT8 data) { }; + virtual uint8_t peripheral_r() { return 0xff; }; + virtual void peripheral_w(uint8_t data) { }; protected: gg_ext_port_device *m_port; diff --git a/src/devices/bus/gamegear/smsctrladp.cpp b/src/devices/bus/gamegear/smsctrladp.cpp index 2aec892b279..065c9d7ca24 100644 --- a/src/devices/bus/gamegear/smsctrladp.cpp +++ b/src/devices/bus/gamegear/smsctrladp.cpp @@ -26,7 +26,7 @@ const device_type SMS_CTRL_ADAPTOR = &device_creator<sms_ctrl_adaptor_device>; // sms_ctrl_adaptor_device - constructor //------------------------------------------------- -sms_ctrl_adaptor_device::sms_ctrl_adaptor_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : +sms_ctrl_adaptor_device::sms_ctrl_adaptor_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, SMS_CTRL_ADAPTOR, "SMS Controller Adaptor", tag, owner, clock, "sms_ctrl_adaptor", __FILE__), device_gg_ext_port_interface(mconfig, *this), m_subctrl_port(*this, "ctrl") @@ -48,7 +48,7 @@ void sms_ctrl_adaptor_device::device_start() // sms_peripheral_r - sms_ctrl_adaptor read //------------------------------------------------- -UINT8 sms_ctrl_adaptor_device::peripheral_r() +uint8_t sms_ctrl_adaptor_device::peripheral_r() { return m_subctrl_port->port_r(); } @@ -58,7 +58,7 @@ UINT8 sms_ctrl_adaptor_device::peripheral_r() // sms_peripheral_w - sms_ctrl_adaptor write //------------------------------------------------- -void sms_ctrl_adaptor_device::peripheral_w(UINT8 data) +void sms_ctrl_adaptor_device::peripheral_w(uint8_t data) { m_subctrl_port->port_w(data); } diff --git a/src/devices/bus/gamegear/smsctrladp.h b/src/devices/bus/gamegear/smsctrladp.h index e06dc76163f..a4e85b4d50c 100644 --- a/src/devices/bus/gamegear/smsctrladp.h +++ b/src/devices/bus/gamegear/smsctrladp.h @@ -30,7 +30,7 @@ class sms_ctrl_adaptor_device : public device_t, { public: // construction/destruction - sms_ctrl_adaptor_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + sms_ctrl_adaptor_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); DECLARE_WRITE_LINE_MEMBER(th_pin_w); DECLARE_READ32_MEMBER(pixel_r); @@ -41,8 +41,8 @@ protected: virtual machine_config_constructor device_mconfig_additions() const override; // device_gg_ext_port_interface overrides - virtual UINT8 peripheral_r() override; - virtual void peripheral_w(UINT8 data) override; + virtual uint8_t peripheral_r() override; + virtual void peripheral_w(uint8_t data) override; private: required_device<sms_control_port_device> m_subctrl_port; |