Add PS2 mouse support for gh60
This commit is contained in:
parent
1c80d8d41c
commit
5977267388
@ -68,7 +68,9 @@ void keyboard_init(void)
|
||||
#endif
|
||||
|
||||
#ifdef PS2_MOUSE_ENABLE
|
||||
if (ps2_enabled()) {
|
||||
ps2_mouse_init();
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef BOOTMAGIC_ENABLE
|
||||
@ -80,7 +82,7 @@ void keyboard_init(void)
|
||||
#endif
|
||||
|
||||
#ifdef KEYMAP_EX_ENABLE
|
||||
keymap_init();
|
||||
keymap_ex_init();
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -133,7 +135,9 @@ MATRIX_LOOP_END:
|
||||
#endif
|
||||
|
||||
#ifdef PS2_MOUSE_ENABLE
|
||||
if (ps2_enabled()) {
|
||||
ps2_mouse_task();
|
||||
}
|
||||
#endif
|
||||
|
||||
// update LED
|
||||
|
@ -90,6 +90,7 @@ uint8_t ps2_host_send(uint8_t data);
|
||||
uint8_t ps2_host_recv_response(void);
|
||||
uint8_t ps2_host_recv(void);
|
||||
void ps2_host_set_led(uint8_t usb_led);
|
||||
uint8_t ps2_enabled(void);
|
||||
|
||||
|
||||
/* Check port settings for clock and data line */
|
||||
|
Reference in New Issue
Block a user