mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-22 14:30:31 +00:00
athens: support ID reading & dot clock disabling.
This commit is contained in:
parent
56db0426a4
commit
b67644ba35
@ -85,8 +85,8 @@ bool AthensClocks::send_byte(uint8_t data)
|
||||
|
||||
bool AthensClocks::receive_byte(uint8_t* p_data)
|
||||
{
|
||||
LOG_F(INFO, "Athens: receive_byte called");
|
||||
return false; // return NACK for now
|
||||
*p_data = 0x41; // return my ID (value has been guessed)
|
||||
return true;
|
||||
}
|
||||
|
||||
int AthensClocks::get_sys_freq()
|
||||
@ -101,6 +101,11 @@ int AthensClocks::get_dot_freq()
|
||||
22, 27, 28, 31, 35, 37, 38, 42, 49, 55, 56, 78, 125
|
||||
};
|
||||
|
||||
if (this->regs[AthensRegs::P2_MUX2] & 0xC0) {
|
||||
LOG_F(INFO, "Athens: dot clock disabled");
|
||||
return 0;
|
||||
}
|
||||
|
||||
float out_freq = 0.0f;
|
||||
|
||||
int d2 = this->regs[AthensRegs::D2];
|
||||
|
Loading…
x
Reference in New Issue
Block a user