Nexus Embedded Platform 1.0.0
Statically assembled reusable embedded mechanisms
Loading...
Searching...
No Matches
sleep.h
Go to the documentation of this file.
1
9#ifndef NEXUS_ARCH_SLEEP_H
10#define NEXUS_ARCH_SLEEP_H
11#include "nexus/arch/features.h"
12#ifdef __cplusplus
13extern "C" {
14#endif
43 uint32_t expected, bool* slept);
44#ifdef __cplusplus
45}
46#endif
47#endif /* NEXUS_ARCH_SLEEP_H */
Reviewed CPU mechanisms and allocation-free result types.
nx_arch_result_t
Result of a validated local CPU mechanism operation.
Definition features.h:16
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.