858 |
|
|
859 |
PITChannelState pit_channels[3]; |
PITChannelState pit_channels[3]; |
860 |
int speaker_data_on; |
int speaker_data_on; |
861 |
|
int dummy_refresh_clock; |
862 |
int pit_min_timer_count = 0; |
int pit_min_timer_count = 0; |
863 |
|
|
864 |
int64_t ticks_per_sec; |
int64_t ticks_per_sec; |
1116 |
{ |
{ |
1117 |
int out; |
int out; |
1118 |
out = pit_get_out(&pit_channels[2]); |
out = pit_get_out(&pit_channels[2]); |
1119 |
return (speaker_data_on << 1) | pit_channels[2].gate | (out << 5); |
dummy_refresh_clock ^= 1; |
1120 |
|
return (speaker_data_on << 1) | pit_channels[2].gate | (out << 5) | |
1121 |
|
(dummy_refresh_clock << 4); |
1122 |
} |
} |
1123 |
|
|
1124 |
void pit_init(void) |
void pit_init(void) |