f7c16dfe69
* Refactor power to extract more general purpose activity detection/events. * Use activity state to implement PM callback.
11 lines
No EOL
238 B
C
11 lines
No EOL
238 B
C
/*
|
|
* Copyright (c) 2020 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
enum zmk_activity_state { ZMK_ACTIVITY_ACTIVE, ZMK_ACTIVITY_IDLE, ZMK_ACTIVITY_SLEEP };
|
|
|
|
enum zmk_activity_state zmk_activity_get_state(); |