PebbleOS
Loading...
Searching...
No Matches
Functions
privilege.h File Reference
#include <stdbool.h>
#include <pbl/mcu/privilege_stubs.inl.h>

Functions

static bool mcu_state_is_thread_privileged (void)
 Check whether thread mode is privileged.
 
void mcu_state_set_thread_privilege (bool privilege)
 Set the thread-mode privilege bit in the CONTROL register.
 
bool mcu_state_is_privileged (void)
 Check whether the CPU currently runs privileged.
 
void mcu_call_unprivileged (void(*fn)(void *), void *ctx)
 Call a function in unprivileged thread mode while the caller stays privileged.