Zephyr API 3.6.99
|
Functions | |
int | pm_cpu_off (void) |
Power down the calling core. | |
int | pm_cpu_on (unsigned long cpuid, uintptr_t entry_point) |
Power up a core. | |
int | pm_system_reset (unsigned char reset) |
System reset. | |
int pm_cpu_off | ( | void | ) |
#include <zephyr/drivers/pm_cpu_ops.h>
Power down the calling core.
This call is intended for use in hotplug. A core that is powered down by cpu_off can only be powered up again in response to a cpu_on
The | call does not return when successful |
-ENOTSUP | If the operation is not supported |
#include <zephyr/drivers/pm_cpu_ops.h>
Power up a core.
This call is used to power up cores that either have not yet been booted into the calling supervisory software or have been previously powered down with a cpu_off call
cpuid | CPU id to power on |
entry_point | Address at which the core must commence execution |
0 | on success, a negative errno otherwise |
-ENOTSUP | If the operation is not supported |
int pm_system_reset | ( | unsigned char | reset | ) |
#include <zephyr/drivers/pm_cpu_ops.h>
System reset.
This function provides a method for performing a system cold or warm reset.
reset | system reset type, cold or warm. |
0 | on success, a negative errno otherwise |