Previous 15994 Revisions Next

r5670 Thursday 10th September, 2009 at 13:09:55 UTC by Curt Coder
[MC68901] Refactored interface to use devcb.
[src/mess/machine]68901mfp.c 68901mfp.h

src/mess/machine/68901mfp.c
r5669r5670
1/**********************************************************************
2
3    Motorola MC68901 Multi Function Peripheral emulation
4
5    Copyright MESS Team.
6    Visit http://mamedev.org for licensing and usage restrictions.
7
8**********************************************************************/
9
110/*
211
312   TODO:
r5669r5670
14811490    mc68901_tai_w - timer A input
14821491-------------------------------------------------*/
14831492
1484void mc68901_tai_w(const device_config *device, int value)
1493WRITE_LINE_DEVICE_HANDLER( mc68901_tai_w )
14851494{
1486   timer_input(device, MC68901_TIMER_A, value);
1495   timer_input(device, MC68901_TIMER_A, state);
14871496}
14881497
14891498/*-------------------------------------------------
14901499    mc68901_tbi_w - timer B input
14911500-------------------------------------------------*/
14921501
1493void mc68901_tbi_w(const device_config *device, int value)
1502WRITE_LINE_DEVICE_HANDLER( mc68901_tbi_w )
14941503{
1495   timer_input(device, MC68901_TIMER_B, value);
1504   timer_input(device, MC68901_TIMER_B, state);
14961505}
14971506
14981507/*-------------------------------------------------
14991508    mc68901_rx_clock_w - receiver clock input
15001509-------------------------------------------------*/
15011510
1502void mc68901_rx_clock_w(const device_config *device, int state)
1511WRITE_LINE_DEVICE_HANDLER( mc68901_rx_clock_w )
15031512{
15041513   if (state)
15051514   {
r5669r5670
15111520    mc68901_tx_clock_w - transmitter clock input
15121521-------------------------------------------------*/
15131522
1514void mc68901_tx_clock_w(const device_config *device, int state)
1523WRITE_LINE_DEVICE_HANDLER( mc68901_tx_clock_w )
15151524{
15161525   if (state)
15171526   {
src/mess/machine/68901mfp.h
r5669r5670
111111int mc68901_get_vector(const device_config *device) ATTR_NONNULL(1);
112112
113113/* write to Timer A input (pin 19) */
114void mc68901_tai_w(const device_config *device, int state) ATTR_NONNULL(1);
114WRITE_LINE_DEVICE_HANDLER( mc68901_tai_w ) ATTR_NONNULL(1);
115115
116116/* write to Timer B input (pin 20) */
117void mc68901_tbi_w(const device_config *device, int state) ATTR_NONNULL(1);
117WRITE_LINE_DEVICE_HANDLER( mc68901_tbi_w ) ATTR_NONNULL(1);
118118
119119/* receive clock */
120void mc68901_rx_clock_w(const device_config *device, int state) ATTR_NONNULL(1);
120WRITE_LINE_DEVICE_HANDLER( mc68901_rx_clock_w ) ATTR_NONNULL(1);
121121
122122/* transmit clock */
123void mc68901_tx_clock_w(const device_config *device, int state) ATTR_NONNULL(1);
123WRITE_LINE_DEVICE_HANDLER( mc68901_tx_clock_w ) ATTR_NONNULL(1);
124124
125125#endif

Previous 15994 Revisions Next


© 1998-2018 The MESS Team