Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

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.
 

Detailed Description

Function Documentation

◆ pm_cpu_off()

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

Return values
Thecall does not return when successful
-ENOTSUPIf the operation is not supported

◆ pm_cpu_on()

int pm_cpu_on ( unsigned long cpuid,
uintptr_t entry_point )

#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

Parameters
cpuidCPU id to power on
entry_pointAddress at which the core must commence execution
Return values
0on success, a negative errno otherwise
-ENOTSUPIf the operation is not supported

◆ pm_system_reset()

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.

Parameters
resetsystem reset type, cold or warm.
Return values
0on success, a negative errno otherwise