#include "util.h"
#include "sendchar.h"
#include "bootmagic.h"
-#ifdef MOUSEKEY_ENABLE
-#include "mousekey.h"
-#endif
#include "eeconfig.h"
+#include "mousekey.h"
#ifdef MATRIX_HAS_GHOST
void keyboard_init(void)
{
// TODO: configuration of sendchar impl
- print_sendchar_func = sendchar;
+ print_set_sendchar(sendchar);
timer_init();
matrix_init();
ps2_mouse_init();
#endif
+#ifdef BOOTMAGIC_ENABLE
bootmagic();
if (eeconfig_is_enabled()) {
} else {
eeconfig_init();
}
+#endif
}
/*
void keyboard_set_leds(uint8_t leds)
{
+ if (debug_keyboard) { debug("keyboard_set_led: "); debug_hex8(leds); debug("\n"); }
led_set(leds);
}