refactor(power): Extract activity/idle detection.
* Refactor power to extract more general purpose activity detection/events. * Use activity state to implement PM callback.
This commit is contained in:
parent
8a529163fc
commit
f7c16dfe69
7 changed files with 136 additions and 29 deletions
10
app/src/events/activity_state_changed.c
Normal file
10
app/src/events/activity_state_changed.c
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
/*
|
||||
* Copyright (c) 2020 The ZMK Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include <kernel.h>
|
||||
#include <zmk/events/activity-state-changed.h>
|
||||
|
||||
ZMK_EVENT_IMPL(activity_state_changed);
|
||||
Loading…
Add table
Add a link
Reference in a new issue