qmk_firmware/platforms/suspend.h
Stefan Kerkmann 71521d71c5 suspend: update wake up matrix after wake up delay
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>
2024-10-12 19:44:59 +02:00

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