You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It only looks like it's considered for the I2C bits, not the joystick data.
In via.c:
case1: // PAcase15:
i2c_step();
if (!debug) via_clear_pra_irqs(&via[0]);
if (via[0].registers[11] &1) {
// CA1 is currently not connected to anything (?)return0;
} else {
return (~via[0].registers[3] &i2c_port.data_out) | //I2C Data: PA0=1 if DDR bit is 0 (input) and data_out is 1; usage of data_out and data_in is a bit confusing...
(via[0].registers[3] &i2c_port.data_in) | //I2C Data: PA0=1 if DDR bit is 1 (output) and data_in is 1
(~via[0].registers[3] &I2C_CLK_MASK ) | //I2C Clock: PA1=1 if DDR bit is 0 (input), simulating an input pull-up
(via[0].registers[3] &i2c_port.clk_in) | //I2C Clock: PA1=1 if DDR bit is 1 (output) and clk_in is 1, simulating a pin driven by the VIA Joystick_data;
}
The text was updated successfully, but these errors were encountered:
It only looks like it's considered for the I2C bits, not the joystick data.
In via.c:
The text was updated successfully, but these errors were encountered: