Nexus Embedded Platform
0.1.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
13
extern
"C"
{
14
#endif
26
nx_arch_result_t
nx_arch_wait_for_interrupt
(
void
);
42
nx_arch_result_t
nx_arch_idle_if_unchanged
(
const
uint32_t* sequence,
43
uint32_t expected,
bool
* slept);
44
#ifdef __cplusplus
45
}
46
#endif
47
#endif
/* NEXUS_ARCH_SLEEP_H */
features.h
Reviewed CPU mechanisms and allocation-free result types.
nx_arch_result_t
nx_arch_result_t
Result of a validated local CPU mechanism operation.
Definition
features.h:16
nx_arch_wait_for_interrupt
nx_arch_result_t nx_arch_wait_for_interrupt(void)
Wait once with configurable exceptions already masked.
nx_arch_idle_if_unchanged
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.
arch
include
nexus
arch
sleep.h
Generated by
1.14.0