Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
IRQ Offload

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
 

Detailed Description

Macro Definition Documentation

◆ SENTINEL_VALUE

#define SENTINEL_VALUE   0xDEADBEEF

Function Documentation

◆ K_THREAD_STACK_DEFINE()

K_THREAD_STACK_DEFINE ( offload_stack ,
384+ CONFIG_TEST_EXTRA_STACK_SIZE )

◆ nestoff_offload()

void nestoff_offload ( const void * parameter)

◆ nestoff_timer_fn()

static void nestoff_timer_fn ( struct k_timer * timer)
static

◆ offload_function()

static void offload_function ( const void * param)
static

◆ offload_thread_fn()

static void offload_thread_fn ( void * p0,
void * p1,
void * p2 )
static

◆ test_irq_offload()

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

◆ test_nested_irq_offload()

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.

Variable Documentation

◆ nested_executed

◆ nestoff_timer

struct k_timer nestoff_timer
static

◆ offload_thread

◆ sentinel

◆ timer_executed