Zephyr API Documentation 3.7.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#include <zephyr/types.h>
16#include <stddef.h>
17#include <zephyr/device.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23/* System reset types. */
24#define SYS_WARM_RESET 0
25#define SYS_COLD_RESET 1
41int pm_cpu_off(void);
42
56int pm_cpu_on(unsigned long cpuid, uintptr_t entry_point);
57
67int pm_system_reset(unsigned char reset);
68
69#ifdef __cplusplus
70}
71#endif
72
77#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