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

Macros

#define STACKSIZE   (1024 + CONFIG_TEST_EXTRA_STACKSIZE)
 

Functions

 K_THREAD_STACK_DEFINE (kthread_stack,(1024+CONFIG_TEST_EXTRA_STACKSIZE))
 
 K_SEM_DEFINE (sync_sem, 0, 1)
 
static void thread_entry (void *p1, void *p2, void *p3)
 
void test_essential_thread_operation (void)
 Test to validate essential flag set/clear. More...
 
void k_sys_fatal_error_handler (unsigned int reason, const z_arch_esf_t *esf)
 Fatal error policy handler. More...
 
static void abort_thread_entry (void *p1, void *p2, void *p3)
 
void test_essential_thread_abort (void)
 Abort an essential thread. More...
 

Variables

struct k_thread kthread_thread
 

Macro Definition Documentation

◆ STACKSIZE

#define STACKSIZE   (1024 + CONFIG_TEST_EXTRA_STACKSIZE)

Function Documentation

◆ abort_thread_entry()

static void abort_thread_entry ( void p1,
void p2,
void p3 
)
static

◆ K_SEM_DEFINE()

K_SEM_DEFINE ( sync_sem  ,
,
 
)

◆ K_THREAD_STACK_DEFINE()

K_THREAD_STACK_DEFINE ( kthread_stack  ,
(1024+CONFIG_TEST_EXTRA_STACKSIZE)   
)

◆ thread_entry()

static void thread_entry ( void p1,
void p2,
void p3 
)
static

Variable Documentation

◆ kthread_thread

struct k_thread kthread_thread