Zephyr API
4.4.99
A Scalable Open Source RTOS
Toggle main menu visibility
Loading...
Searching...
No Matches
pm_cpu_ops.h
Go to the documentation of this file.
1
/*
2
* Copyright 2021 Carlo Caione <
[email protected]
>
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_INCLUDE_DRIVERS_PM_CPU_OPS_H_
8
#define ZEPHYR_INCLUDE_DRIVERS_PM_CPU_OPS_H_
9
14
15
#include <
zephyr/types.h
>
16
#include <stddef.h>
17
#include <
zephyr/device.h
>
18
19
#ifdef __cplusplus
20
extern
"C"
{
21
#endif
22
23
/* System reset types. */
24
#define SYS_WARM_RESET 0
25
#define SYS_COLD_RESET 1
31
41
int
pm_cpu_off
(
void
);
42
56
int
pm_cpu_on
(
unsigned
long
cpuid,
uintptr_t
entry_point);
57
67
int
pm_system_reset
(
unsigned
char
reset);
68
69
#ifdef __cplusplus
70
}
71
#endif
72
76
77
#endif
/* ZEPHYR_INCLUDE_DRIVERS_PM_CPU_OPS_H_ */
device.h
pm_system_reset
int pm_system_reset(unsigned char reset)
System reset.
pm_cpu_on
int pm_cpu_on(unsigned long cpuid, uintptr_t entry_point)
Power up a core.
pm_cpu_off
int pm_cpu_off(void)
Power down the calling core.
types.h
uintptr_t
__UINTPTR_TYPE__ uintptr_t
Definition
stdint.h:105
zephyr
drivers
pm_cpu_ops.h
Generated on
for Zephyr API by
1.17.0