Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
irq_offload.c File Reference
#include <zephyr.h>
#include <ztest.h>
#include <kernel_structs.h>
#include <irq_offload.h>

Macros

#define SENTINEL_VALUE   0xDEADBEEF
 

Functions

static void offload_function (const void *param)
 
void test_irq_offload (void)
 Verify thread context. More...
 
__no_optimization void test_nop (void)
 Test the arch_nop() by invoking and measure it. More...
 
void nestoff_offload (const void *parameter)
 
static void nestoff_timer_fn (struct k_timer *timer)
 
void test_nested_irq_offload (void)
 

Variables

volatile uint32_t sentinel
 
static struct k_timer nestoff_timer
 
static bool timer_executed
 
static bool nested_executed
 

Detailed Description

This test case verifies the correctness of irq_offload(), an important routine used in many other test cases for running a function in interrupt context, on the IRQ stack.

Macro Definition Documentation

◆ SENTINEL_VALUE

#define SENTINEL_VALUE   0xDEADBEEF

Function Documentation

◆ 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

◆ test_irq_offload()

void test_irq_offload ( void  )

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  )

Variable Documentation

◆ nested_executed

bool nested_executed
static

◆ nestoff_timer

struct k_timer nestoff_timer
static

◆ sentinel

volatile uint32_t sentinel

◆ timer_executed

bool timer_executed
static