|
Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
|
Macros | |
| #define | SENTINEL_VALUE 0xDEADBEEF |
Functions | |
| K_THREAD_STACK_DEFINE (offload_stack, 384+CONFIG_TEST_EXTRA_STACK_SIZE) | |
| static void | offload_function (const void *param) |
| void | test_irq_offload (void) |
| Verify thread context. | |
| void | nestoff_offload (const void *parameter) |
| static void | nestoff_timer_fn (struct k_timer *timer) |
| static void | offload_thread_fn (void *p0, void *p1, void *p2) |
| void | test_nested_irq_offload (void) |
| Invoke irq_offload from an interrupt and verify that the resulting nested interrupt doesn't explode. | |
Variables | |
| volatile uint32_t | sentinel |
| struct k_thread | offload_thread |
| static struct k_timer | nestoff_timer |
| static bool | timer_executed |
| static bool | nested_executed |
| #define SENTINEL_VALUE 0xDEADBEEF |
| K_THREAD_STACK_DEFINE | ( | offload_stack | , |
| 384+ | CONFIG_TEST_EXTRA_STACK_SIZE ) |
| void nestoff_offload | ( | const void * | parameter | ) |
|
static |
|
static |
|
static |
| void test_irq_offload | ( | void | ) |
#include </home/runner/work/safety-doc/zephyr/tests/kernel/common/src/irq_offload.c>
Verify thread context.
Check whether offloaded running function is in interrupt context, on the IRQ stack or not.
TESTPOINT: Offload to IRQ context
| void test_nested_irq_offload | ( | void | ) |
#include </home/runner/work/safety-doc/zephyr/tests/kernel/common/src/irq_offload.c>
Invoke irq_offload from an interrupt and verify that the resulting nested interrupt doesn't explode.
|
static |
|
static |
| struct k_thread offload_thread |
| volatile uint32_t sentinel |
|
static |