Skip to main content

Module system

Module system 

Source
Expand description

§System Control

Structs§

AppCoreGuardunstable
Stops the APP (second) core when dropped.
CpuControlunstable
Control CPU Cores
ParkGuardunstable
Keeps a core parked. The core runs again when the last guard for the core drops.
SchedulerSuspendGuardunstable
Suspends the scheduler of the current core until the guard drops.
Stackunstable
Data type for a properly aligned stack of N bytes

Enums§

Cpu
Available CPU cores
Errorunstable
Represents errors that can occur while working with the core.

Functions§

is_runningunstable
Returns whether core runs code of this program.
reset_reasonunstable
Retrieves the reason for the last reset as a SocResetReason enum value. Returns None if the reset reason cannot be determined.
software_reset
Performs a software reset on the chip.
software_reset_cpuunstable
Resets the given CPU, leaving peripherals unchanged.
wakeup_causeunstable
Retrieves the cause(s) of the last wakeup event.