summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/hp3478a.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/hp3478a.h')
-rw-r--r--src/mame/includes/hp3478a.h103
1 files changed, 0 insertions, 103 deletions
diff --git a/src/mame/includes/hp3478a.h b/src/mame/includes/hp3478a.h
deleted file mode 100644
index e327d0a925b..00000000000
--- a/src/mame/includes/hp3478a.h
+++ /dev/null
@@ -1,103 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:fenugrec
-/***************************************************************************
- HP 3478A Digital Multimeter
-
- XXX Not sure why I need this file, can this all go in hp3478a.cpp ?
-****************************************************************************/
-
-#pragma once
-
-#ifndef MAME_INCLUDES_HP3478A_H
-#define MAME_INCLUDES_HP3478A_H
-
-#include "cpu/mcs48/mcs48.h"
-#include "machine/bankdev.h"
-#include "machine/nvram.h"
-#include "machine/watchdog.h"
-
-/* port pin/bit defs */
-#define P20 (1 << 0)
-#define P21 (1 << 1)
-#define P22 (1 << 2)
-#define P23 (1 << 3)
-#define P24 (1 << 4)
-#define P25 (1 << 5)
-#define P26 (1 << 6)
-#define P27 (1 << 7)
-
-#define VFD_TAG "vfd"
-
-class hp3478a_state : public driver_device
-{
-public:
- hp3478a_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_nvram(*this, "nvram")
- , m_nvram_raw(*this, "nvram")
- , m_watchdog(*this, "watchdog")
- , m_bank0(*this, "bank0")
- , m_iobank(*this, "iobank")
- , m_keypad(*this, "COL.%u", 0)
- , m_calenable(*this, "CAL_EN")
- {
- }
-
- void hp3478a(machine_config &config);
-
-protected:
- virtual void machine_start() override;
- //virtual void machine_reset() override; //not needed?
-
- DECLARE_READ8_MEMBER(p1read);
- DECLARE_WRITE8_MEMBER(p1write);
- DECLARE_WRITE8_MEMBER(p2write);
- DECLARE_WRITE8_MEMBER(nvwrite);
-
- void io_bank(address_map &map);
- void i8039_io(address_map &map);
- void i8039_map(address_map &map);
-
- required_device<i8039_device> m_maincpu;
- required_device<nvram_device> m_nvram;
- required_shared_ptr<uint8_t> m_nvram_raw;
- required_device<watchdog_timer_device> m_watchdog;
- required_memory_bank m_bank0;
- required_device<address_map_bank_device> m_iobank;
- required_ioport_array<4> m_keypad;
- required_ioport m_calenable;
-
- /////////////// stuff for internal LCD emulation
- // could be split to a separate driver ?
- std::unique_ptr<output_finder<16> > m_outputs;
-
- void lcd_interface(uint8_t p2new);
- void lcd_map_chars(void);
- uint8_t lcd_bitcount;
- uint8_t lcd_want;
- uint64_t lcd_bitbuf;
- enum class lcd_state : uint8_t {
- IDLE,
- SYNC_SKIP,
- SELECTED_ISA,
- SELECTED_IWA
- } m_lcdstate;
- enum class lcd_iwatype : uint8_t {
- ANNUNS,
- REG_A,
- REG_B,
- REG_C,
- DISCARD
- } m_lcdiwa;
- uint8_t lcd_chrbuf[12]; //raw digits (not ASCII)
- uint8_t lcd_text[13]; //mapped to ASCII
- uint32_t lcd_segdata[12];
-
- uint8_t p2_oldstate; //used to detect edges on Port2 IO pins. Should be saveable ?
- uint8_t p1_oldstate; //for P17 edge detection (WDT reset)
-
-};
-
-
-#endif // MAME_INCLUDES_HP3478A_H