mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 10:31:54 +08:00
ps2: keyboard+mouse passthru support (#171)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user