|
Nexus Embedded Platform 0.1.0
Statically assembled reusable embedded mechanisms
|
Reviewed single-CPU shallow sleep contracts. More...
#include "nexus/arch/features.h"Go to the source code of this file.
Functions | |
| nx_arch_result_t | nx_arch_wait_for_interrupt (void) |
| Wait once with configurable exceptions already masked. | |
| nx_arch_result_t | nx_arch_idle_if_unchanged (const uint32_t *sequence, uint32_t expected, bool *slept) |
| Atomically recheck a published sequence before WFI. | |
Reviewed single-CPU shallow sleep contracts.
Definition in file sleep.h.
| nx_arch_result_t nx_arch_idle_if_unchanged | ( | const uint32_t * | sequence, |
| uint32_t | expected, | ||
| bool * | slept ) |
Atomically recheck a published sequence before WFI.
| [in] | sequence | Naturally aligned, shared 32-bit wake sequence. |
| [in] | expected | Snapshot before the caller's readiness check. |
| [out] | slept | True only when WFI was executed. |
| nx_arch_result_t nx_arch_wait_for_interrupt | ( | void | ) |
Wait once with configurable exceptions already masked.