Zephyr API Documentation  3.0.0
A Scalable Open Source RTOS
3.0.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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...
 

Variables

volatile uint32_t sentinel
 

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

◆ 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

Variable Documentation

◆ sentinel

volatile uint32_t sentinel