From ddb290d5f615019c33c42b8d94e5a5254cabcf33 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 22 Oct 2016 13:13:17 +0200 Subject: 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 --- src/devices/video/hd44780.h | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'src/devices/video/hd44780.h') diff --git a/src/devices/video/hd44780.h b/src/devices/video/hd44780.h index d63a64e1023..bb62a27d1d8 100644 --- a/src/devices/video/hd44780.h +++ b/src/devices/video/hd44780.h @@ -28,8 +28,8 @@ // TYPE DEFINITIONS //************************************************************************** -typedef device_delegate hd44780_pixel_update_delegate; -#define HD44780_PIXEL_UPDATE(name) void name(bitmap_ind16 &bitmap, UINT8 line, UINT8 pos, UINT8 y, UINT8 x, int state) +typedef device_delegate hd44780_pixel_update_delegate; +#define HD44780_PIXEL_UPDATE(name) void name(bitmap_ind16 &bitmap, uint8_t line, uint8_t pos, uint8_t y, uint8_t x, int state) // ======================> hd44780_device @@ -38,8 +38,8 @@ class hd44780_device : public device_t { public: // construction/destruction - hd44780_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - hd44780_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); + hd44780_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + hd44780_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); // static configuration helpers static void static_set_lcd_size(device_t &device, int _lines, int _chars) { hd44780_device &dev=downcast(device); dev.m_lines = _lines; dev.m_chars = _chars; } @@ -53,8 +53,8 @@ public: virtual DECLARE_WRITE8_MEMBER(data_write); virtual DECLARE_READ8_MEMBER(data_read); - const UINT8 *render(); - virtual UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); + const uint8_t *render(); + virtual uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); protected: // device-level overrides @@ -84,12 +84,12 @@ protected: private: // internal helper - void set_busy_flag(UINT16 usec); + void set_busy_flag(uint16_t usec); void correct_ac(); void update_ac(int direction); void update_nibble(int rs, int rw); void shift_display(int direction); - void pixel_update(bitmap_ind16 &bitmap, UINT8 line, UINT8 pos, UINT8 y, UINT8 x, int state); + void pixel_update(bitmap_ind16 &bitmap, uint8_t line, uint8_t pos, uint8_t y, uint8_t x, int state); // internal state static const device_timer_id TIMER_BUSY = 0; @@ -98,35 +98,35 @@ private: emu_timer * m_blink_timer; emu_timer * m_busy_timer; - UINT8 m_lines; // number of lines - UINT8 m_chars; // chars for line + uint8_t m_lines; // number of lines + uint8_t m_chars; // chars for line hd44780_pixel_update_delegate m_pixel_update_cb; // pixel update callback bool m_busy_flag; // busy flag - UINT8 m_ddram[0x80]; // internal display data RAM - UINT8 m_cgram[0x40]; // internal chargen RAM - UINT8 const *m_cgrom; - optional_region_ptr m_cgrom_region; // internal chargen ROM + uint8_t m_ddram[0x80]; // internal display data RAM + uint8_t m_cgram[0x40]; // internal chargen RAM + uint8_t const *m_cgrom; + optional_region_ptr m_cgrom_region; // internal chargen ROM int m_ac; // address counter - UINT8 m_dr; // data register - UINT8 m_ir; // instruction register - UINT8 m_active_ram; // DDRAM or CGRAM + uint8_t m_dr; // data register + uint8_t m_ir; // instruction register + uint8_t m_active_ram; // DDRAM or CGRAM bool m_display_on; // display on/off bool m_cursor_on; // cursor on/off bool m_blink_on; // blink on/off bool m_shift_on; // shift on/off int m_disp_shift; // display shift int m_direction; // auto increment/decrement (-1 or +1) - UINT8 m_data_len; // interface data length 4 or 8 bit - UINT8 m_num_line; // number of lines - UINT8 m_char_size; // char size 5x8 or 5x10 + uint8_t m_data_len; // interface data length 4 or 8 bit + uint8_t m_num_line; // number of lines + uint8_t m_char_size; // char size 5x8 or 5x10 bool m_blink; bool m_first_cmd; int m_rs_state; int m_rw_state; bool m_nibble; int m_charset_type; - UINT8 m_render_buf[80 * 16]; + uint8_t m_render_buf[80 * 16]; enum { DDRAM, CGRAM }; }; @@ -137,7 +137,7 @@ class ks0066_f05_device : public hd44780_device { public: // construction/destruction - ks0066_f05_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + ks0066_f05_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); }; // device type definition -- cgit v1.2.3-70-g09d2