context.h¶
Typedefs
-
typedef uint8_t emb_context_t¶
Enums
Functions
-
emb_context_t emb_context(void)¶
emb_context() - The current execution context.
Context: thread isr prekernel Blocking: no Timing: O(1) Ownership: none Configuration: Requirements: API-014 KRN-IRQ-034 Since: 0.2 Stability: yes
Return: EMB_CONTEXT_THREAD, EMB_CONTEXT_ISR, or EMB_CONTEXT_PREKERNEL. Not meaningful inside a kernel-independent interrupt (SPEC-002 §3.2).
-
bool emb_in_isr(void)¶
emb_in_isr() - Is the caller in interrupt context?
Context: thread isr prekernel Blocking: no Timing: O(1) Ownership: none Configuration: Requirements: API-014 KRN-IRQ-002 Since: 0.2 Stability: yes