zephyr/subsys/pm/pm_stats.h
Gerard Marull-Paretas e6b884982f pm: stats: pm_(start|stop)_timer -> pm_stats_(start|stop)
Improve the naming of the start/stop functions.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2021-11-23 18:12:15 +01:00

23 lines
577 B
C

/*
* Copyright (c) 2018 Intel Corporation.
* Copyright (c) 2021 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_SUBSYS_PM_PM_STATS_H_
#define ZEPHYR_SUBSYS_PM_PM_STATS_H_
#include <pm/state.h>
#ifdef CONFIG_PM_STATS
void pm_stats_start(void);
void pm_stats_stop(void);
void pm_stats_update(enum pm_state state);
#else
static inline void pm_stats_start(void) {}
static inline void pm_stats_stop(void) {}
static inline void pm_stats_update(enum pm_state state) {}
#endif /* CONFIG_PM_STATS */
#endif /* ZEPHYR_SUBSYS_PM_PM_STATS_H_ */