8 #include "action_util.h"
11 #include "backlight.h"
15 void suspend_idle(uint8_t time) {
16 // TODO: this is not used anywhere - what units is 'time' in?
20 void suspend_power_down(void) {
21 // TODO: figure out what to power down and how
22 // shouldn't power down TPM/FTM if we want a breathing LED
23 // also shouldn't power down USB
25 // on AVR, this enables the watchdog for 15ms (max), and goes to
26 // SLEEP_MODE_PWR_DOWN
31 __attribute__ ((weak)) void matrix_power_up(void) {}
32 __attribute__ ((weak)) void matrix_power_down(void) {}
33 bool suspend_wakeup_condition(void)
38 for (uint8_t r = 0; r < MATRIX_ROWS; r++) {
39 if (matrix_get_row(r)) return true;
44 // run immediately after wakeup
45 void suspend_wakeup_init(void)
47 // clear keyboard state
48 // need to do it manually, because we're running from ISR
49 // and clear_keyboard() calls print
50 // so only clear the variables in memory
51 // the reports will be sent from main.c afterwards
52 // or if the PC asks for GET_REPORT
56 #ifdef MOUSEKEY_ENABLE
58 #endif /* MOUSEKEY_ENABLE */
59 #ifdef EXTRAKEY_ENABLE
61 host_consumer_send(0);
62 #endif /* EXTRAKEY_ENABLE */
63 #ifdef BACKLIGHT_ENABLE
65 #endif /* BACKLIGHT_ENABLE */