summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/apollo_kbd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/apollo_kbd.cpp')
-rw-r--r--src/mame/machine/apollo_kbd.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mame/machine/apollo_kbd.cpp b/src/mame/machine/apollo_kbd.cpp
index 67244a77f24..e8b9510fc7e 100644
--- a/src/mame/machine/apollo_kbd.cpp
+++ b/src/mame/machine/apollo_kbd.cpp
@@ -10,11 +10,12 @@
*
*/
+#include "emu.h"
+
#define VERBOSE 0
-#include "emu.h"
#include "machine/apollo_kbd.h"
-#include "sound/beep.h"
+
#define LOG(x) { m_device->logerror ("%s apollo_kbd: ", m_device->cpu_context()); m_device->logerror x; m_device->logerror ("\n"); }
#define LOG1(x) { if (VERBOSE > 0) LOG(x)}
@@ -26,8 +27,6 @@
// DEVICE DEFINITIONS
//**************************************************************************
-//const device_type APOLLO_KBD = apollo_kbd_device_config::static_alloc_device_config;
-
//**************************************************************************
// CONSTANTS
//**************************************************************************
@@ -56,14 +55,14 @@
***************************************************************************/
// device type definition
-const device_type APOLLO_KBD = device_creator<apollo_kbd_device>;
+DEFINE_DEVICE_TYPE(APOLLO_KBD, apollo_kbd_device, "apollo_kbd", "Apollo Keyboard")
//-------------------------------------------------
// apollo_kbd_device - constructor
//-------------------------------------------------
apollo_kbd_device::apollo_kbd_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : device_t(mconfig, APOLLO_KBD, "Apollo Keyboard", tag, owner, clock, "apollo_kbd", __FILE__),
+ : device_t(mconfig, APOLLO_KBD, tag, owner, clock),
device_serial_interface(mconfig, *this),
m_tx_w(*this),
m_german_r(*this)