Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pm_s2ram.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022, Carlo Caione <ccaione@baylibre.com>
3 */
4
14#ifndef ZEPHYR_INCLUDE_ARCH_COMMON_PM_S2RAM_H_
15#define ZEPHYR_INCLUDE_ARCH_COMMON_PM_S2RAM_H_
16
17#ifdef _ASMLANGUAGE
19#else
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
39typedef int (*pm_s2ram_system_off_fn_t)(void);
40
59
70
88#ifdef __cplusplus
89}
90#endif
91
92#endif /* _ASMLANGUAGE */
93
94#endif /* ZEPHYR_INCLUDE_ARCH_COMMON_PM_S2RAM_H_ */
int(* pm_s2ram_system_off_fn_t)(void)
System off function.
Definition pm_s2ram.h:39
int arch_pm_s2ram_suspend(pm_s2ram_system_off_fn_t system_off)
Save CPU context on suspend.
void pm_s2ram_mark_set(void)
Mark that core is entering suspend-to-RAM state.
bool pm_s2ram_mark_check_and_clear(void)
Check suspend-to-RAM marking and clear its state.