summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/ds128x.h
blob: feb10b84ecd8de5729efebe1a5b0ffec8f5c414c (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
// license:BSD-3-Clause
// copyright-holders:smf
#ifndef __DS128X_H__
#define __DS128X_H__

#include "mc146818.h"

#define MCFG_DS12885_ADD(_tag) \
	MCFG_DEVICE_ADD(_tag, DS12885, XTAL_32_768kHz)

// ======================> 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; }
};

// device type definition
extern const device_type DS12885;

#endif