blob: 467a6d2bd144ea69fc86745c60ddc3ea140e0b78 (
plain) (
tree)
|
|
// license:BSD-3-Clause
// copyright-holders:Olivier Galibert
#ifndef MAME_MACHINE_LPC_PIT_H
#define MAME_MACHINE_LPC_PIT_H
#pragma once
#include "lpc.h"
class lpc_pit_device : public lpc_device {
public:
lpc_pit_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
virtual void map_device(uint64_t memory_window_start, uint64_t memory_window_end, uint64_t memory_offset, address_space *memory_space,
uint64_t io_window_start, uint64_t io_window_end, uint64_t io_offset, address_space *io_space) override;
protected:
void device_start() override;
void device_reset() override;
private:
void map(address_map &map);
DECLARE_READ8_MEMBER( status_r);
DECLARE_WRITE8_MEMBER(access_w);
DECLARE_WRITE8_MEMBER(control_w);
};
DECLARE_DEVICE_TYPE(LPC_PIT, lpc_pit_device)
#endif // MAME_MACHINE_LPC_PIT_H
|