aboutsummaryrefslogtreecommitdiff
path: root/common/suspend.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/suspend.c')
-rw-r--r--common/suspend.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/common/suspend.c b/common/suspend.c
index 397e0729a..6029fe7ff 100644
--- a/common/suspend.c
+++ b/common/suspend.c
@@ -44,8 +44,27 @@ bool suspend_wakeup_condition(void)
44 return false; 44 return false;
45} 45}
46 46
47// run immediately after wakeup
47void suspend_wakeup_init(void) 48void suspend_wakeup_init(void)
48{ 49{
50 // clear matrix and keyboard state
49 matrix_init(); 51 matrix_init();
50 clear_keyboard(); 52 clear_keyboard();
51} 53}
54
55#ifndef NO_SUSPEND_POWER_DOWN
56/* watchdog timeout */
57ISR(WDT_vect)
58{
59 /* wakeup from MCU sleep mode */
60/*
61 // blink LED
62 static uint8_t led_state = 0;
63 static uint8_t led_count = 0;
64 led_count++;
65 if ((led_count & 0x07) == 0) {
66 led_set((led_state ^= (1<<USB_LED_CAPS_LOCK)));
67 }
68*/
69}
70#endif