mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-29 06:30:17 +00:00
71521d71c5
If USB_SUSPEND_WAKEUP_DELAY is set, the keyboard sleeps during wake up - which can be up to multiple seconds. To not miss any key releases the wake up matrix is updated with the current state of the matrix - only resetting the keys that have been released. Signed-off-by: Stefan Kerkmann <karlk90@pm.me>
24 lines
624 B
C
24 lines
624 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
void suspend_power_down(void);
|
|
bool suspend_wakeup_condition(void);
|
|
void suspend_wakeup_init(void);
|
|
|
|
void suspend_wakeup_init_user(void);
|
|
void suspend_wakeup_init_kb(void);
|
|
void suspend_wakeup_init_quantum(void);
|
|
void suspend_power_down_user(void);
|
|
void suspend_power_down_kb(void);
|
|
void suspend_power_down_quantum(void);
|
|
|
|
bool keypress_is_wakeup_key(uint8_t row, uint8_t col);
|
|
void wakeup_matrix_update(void);
|
|
void wakeup_matrix_handle_key_event(uint8_t row, uint8_t col, bool pressed);
|
|
|
|
#ifndef USB_SUSPEND_WAKEUP_DELAY
|
|
# define USB_SUSPEND_WAKEUP_DELAY 0
|
|
#endif
|