Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pm_cpu_ops.h
Go to the documentation of this file.
1/*
2 * Copyright 2021 Carlo Caione <ccaione@baylibre.com>
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
15
16#include <zephyr/types.h>
17#include <stddef.h>
18#include <zephyr/device.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
25#define SYS_WARM_RESET 0
26
28#define SYS_COLD_RESET 1
36
46int pm_cpu_off(void);
47
61int pm_cpu_on(unsigned long cpuid, uintptr_t entry_point);
62
72int pm_system_reset(unsigned char reset);
73
74#ifdef __cplusplus
75}
76#endif
77
81
82#endif /* ZEPHYR_INCLUDE_DRIVERS_PM_CPU_OPS_H_ */
int pm_system_reset(unsigned char reset)
System reset.
int pm_cpu_on(unsigned long cpuid, uintptr_t entry_point)
Power up a core.
int pm_cpu_off(void)
Power down the calling core.
__UINTPTR_TYPE__ uintptr_t
Definition stdint.h:105