summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/ds128x.h
blob: f3fb9998d157f9af09e7c89de38a048e62bde551 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// license:BSD-3-Clause
// copyright-holders:smf
#ifndef MAME_MACHINE_DS128X_H
#define MAME_MACHINE_DS128X_H

#include "mc146818.h"

#define MCFG_DS12885_ADD(_tag) \
	MCFG_DEVICE_ADD(_tag, DS12885, XTAL(32'768))

// ======================> mc146818_device

class ds12885_device : public mc146818_device
{
public:
	// construction/destruction
	ds12885_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);

protected:
	virtual int data_size() override { return 128; }
	virtual int get_timer_bypass() override;
};

// device type definition
DECLARE_DEVICE_TYPE(DS12885, ds12885_device)

#endif // MAME_MACHINE_DS128X_H