aboutsummaryrefslogtreecommitdiff
path: root/common/suspend.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-09-21 22:47:03 +0900
committertmk <nobody@nowhere>2013-09-21 22:47:03 +0900
commit7d692c492ca999edd827477b914ae38ce43bf519 (patch)
tree60c42dc9460c9f924c2274ccb7d2252bcea6e399 /common/suspend.c
parent6ccea742deb84451a5815e40ccfc3aaa74feb622 (diff)
downloadqmk_firmware-7d692c492ca999edd827477b914ae38ce43bf519.tar.gz
qmk_firmware-7d692c492ca999edd827477b914ae38ce43bf519.zip
Fix USB initilaize on LUFA
- Add print messages of USB intialize procesure. - call out sei() in earlier stage. LUFA API doc of USB_Init() says: interrupts must be enabled within 500ms ... to ensure that the host does not time out whilst enumerating the device - remove matrix_init() from suspend_wakeup_init(). It is not needed in fact and if matrix_init() takes long time to initialize it prevents host emnumerating the device.
Diffstat (limited to 'common/suspend.c')
-rw-r--r--common/suspend.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/suspend.c b/common/suspend.c
index 146b96d5c..5b378892f 100644
--- a/common/suspend.c
+++ b/common/suspend.c
@@ -51,8 +51,7 @@ bool suspend_wakeup_condition(void)
51// run immediately after wakeup 51// run immediately after wakeup
52void suspend_wakeup_init(void) 52void suspend_wakeup_init(void)
53{ 53{
54 // clear matrix and keyboard state 54 // clear keyboard state
55 matrix_init();
56 clear_keyboard(); 55 clear_keyboard();
57#ifdef BACKLIGHT_ENABLE 56#ifdef BACKLIGHT_ENABLE
58 backlight_init(); 57 backlight_init();