Exemplo n.º 1
0
/*-------------------------------------------------
    ay31015_set_transmitter_clock - set transmit clock
-------------------------------------------------*/
void ay31015_set_transmitter_clock( device_t *device, double new_clock )
{
	ay31015_t	*ay31015 = get_safe_token(device);

	ay31015->tx_clock = new_clock;
	ay31015_update_tx_timer( device );
}
Exemplo n.º 2
0
static DEVICE_START(ay31015)
{
	ay31015_t	*ay31015 = get_safe_token(device);

	ay31015->config = (const ay31015_config*)device->static_config();

	ay31015->tx_clock = ay31015->config->transmitter_clock;
	ay31015->rx_clock = ay31015->config->receiver_clock;

	ay31015->rx_timer = device->machine().scheduler().timer_alloc(FUNC(ay31015_rx_process), (void *)device );
	ay31015->tx_timer = device->machine().scheduler().timer_alloc(FUNC(ay31015_tx_process), (void *)device );

	ay31015_update_rx_timer( device );
	ay31015_update_tx_timer( device );
}