|
|
@ -148,6 +148,11 @@ bool is_keyboard_master(void) {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void keyboard_init(void) {
|
|
|
|
void keyboard_init(void) {
|
|
|
|
timer_init();
|
|
|
|
timer_init();
|
|
|
|
|
|
|
|
// To use PORTF disable JTAG with writing JTD bit twice within four cycles.
|
|
|
|
|
|
|
|
#if (defined(__AVR_AT90USB1286__) || defined(__AVR_AT90USB1287__) || defined(__AVR_ATmega32U4__))
|
|
|
|
|
|
|
|
MCUCR |= _BV(JTD);
|
|
|
|
|
|
|
|
MCUCR |= _BV(JTD);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
matrix_init();
|
|
|
|
matrix_init();
|
|
|
|
#ifdef PS2_MOUSE_ENABLE
|
|
|
|
#ifdef PS2_MOUSE_ENABLE
|
|
|
|
ps2_mouse_init();
|
|
|
|
ps2_mouse_init();
|
|
|
@ -185,7 +190,7 @@ void keyboard_init(void) {
|
|
|
|
|
|
|
|
|
|
|
|
/** \brief Keyboard task: Do keyboard routine jobs
|
|
|
|
/** \brief Keyboard task: Do keyboard routine jobs
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Do routine keyboard jobs:
|
|
|
|
* Do routine keyboard jobs:
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* * scan matrix
|
|
|
|
* * scan matrix
|
|
|
|
* * handle mouse movements
|
|
|
|
* * handle mouse movements
|
|
|
|