Zephyr Project API
3.3.0
A Scalable Open Source RTOS
pm_s2ram.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2022, Carlo Caione <ccaione@baylibre.com>
3
*/
4
13
#ifndef ZEPHYR_INCLUDE_ARCH_COMMON_PM_S2RAM_H_
14
#define ZEPHYR_INCLUDE_ARCH_COMMON_PM_S2RAM_H_
15
16
#ifdef _ASMLANGUAGE
17
GTEXT(
arch_pm_s2ram_suspend
);
18
#else
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
38
typedef
int (*
pm_s2ram_system_off_fn_t
)(void);
39
57
int
arch_pm_s2ram_suspend
(
pm_s2ram_system_off_fn_t
system_off);
58
63
#ifdef __cplusplus
64
}
65
#endif
66
67
#endif
/* _ASMLANGUAGE */
68
69
#endif
/* ZEPHYR_INCLUDE_ARCH_COMMON_PM_S2RAM_H_ */
pm_s2ram_system_off_fn_t
int(* pm_s2ram_system_off_fn_t)(void)
System off function.
Definition:
pm_s2ram.h:38
arch_pm_s2ram_suspend
int arch_pm_s2ram_suspend(pm_s2ram_system_off_fn_t system_off)
Save CPU context on suspend.
include
zephyr
arch
common
pm_s2ram.h
Generated on Fri Jun 9 2023 14:09:42 for Zephyr Project API by
1.9.2