ps2: keyboard+mouse passthru support (#171)

This commit is contained in:
No0ne
2024-07-19 14:05:57 +02:00
committed by GitHub
parent 13f23a19c3
commit 5bdc998922
4 changed files with 11 additions and 7 deletions

View File

@@ -32,6 +32,8 @@
#define _KBD_DATA_PIN 11 // CLK == 12
#define _MOUSE_DATA_PIN 14 // CLK == 15
#define _KBD_IN_DATA_PIN 26 // passthru, CLK == 27
#define _MOUSE_IN_DATA_PIN 16 // passthru, CLK == 17
u8 ph_g_ps2_kbd_leds = 0;
bool ph_g_ps2_kbd_online = 0;
@@ -57,13 +59,13 @@ void ph_ps2_init(void) {
}
if (PH_O_IS_KBD_PS2) {
kb_init(_KBD_DATA_PIN);
kb_init(_KBD_DATA_PIN, _KBD_IN_DATA_PIN);
} else {
INIT_STUB(_KBD_DATA_PIN);
}
if (PH_O_IS_MOUSE_PS2) {
ms_init(_MOUSE_DATA_PIN);
ms_init(_MOUSE_DATA_PIN, _MOUSE_IN_DATA_PIN);
} else {
INIT_STUB(_MOUSE_DATA_PIN);
}