Browse Source

Add PS2 mouse support for gh60

core
Kai Ryu 10 years ago
parent
commit
5977267388
2 changed files with 8 additions and 3 deletions
  1. 7
    3
      common/keyboard.c
  2. 1
    0
      protocol/ps2.h

+ 7
- 3
common/keyboard.c View File

#endif #endif


#ifdef PS2_MOUSE_ENABLE #ifdef PS2_MOUSE_ENABLE
ps2_mouse_init();
if (ps2_enabled()) {
ps2_mouse_init();
}
#endif #endif


#ifdef BOOTMAGIC_ENABLE #ifdef BOOTMAGIC_ENABLE
#endif #endif


#ifdef KEYMAP_EX_ENABLE #ifdef KEYMAP_EX_ENABLE
keymap_init();
keymap_ex_init();
#endif #endif
} }


#endif #endif


#ifdef PS2_MOUSE_ENABLE #ifdef PS2_MOUSE_ENABLE
ps2_mouse_task();
if (ps2_enabled()) {
ps2_mouse_task();
}
#endif #endif


// update LED // update LED

+ 1
- 0
protocol/ps2.h View File

uint8_t ps2_host_recv_response(void); uint8_t ps2_host_recv_response(void);
uint8_t ps2_host_recv(void); uint8_t ps2_host_recv(void);
void ps2_host_set_led(uint8_t usb_led); void ps2_host_set_led(uint8_t usb_led);
uint8_t ps2_enabled(void);




/* Check port settings for clock and data line */ /* Check port settings for clock and data line */