Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
main.c File Reference
#include <stdlib.h>
#include <ztest.h>
#include <zephyr/types.h>
#include <irq_offload.h>
#include <ztest_error_hook.h>

Macros

#define STACK_SIZE   (512 + CONFIG_TEST_EXTRA_STACKSIZE)
 
#define THREAD_TEST_PRIORITY   0
 
#define TEST_TIMEOUT   -20
 
#define PERIOD   50
 
#define DURATION   100
 

Functions

static K_THREAD_STACK_DEFINE (tstack,(512+CONFIG_TEST_EXTRA_STACKSIZE))
 
static void thread_timer_start_null (void *p1, void *p2, void *p3)
 
void test_timer_start_null (void)
 Test k_timer_start() API. More...
 
static void thread_timer_stop_null (void *p1, void *p2, void *p3)
 
void test_timer_stop_null (void)
 Test k_timer_stop() API. More...
 
static void thread_timer_status_get_null (void *p1, void *p2, void *p3)
 
void test_timer_status_get_null (void)
 Test k_timer_status_get() API. More...
 
static void thread_timer_status_sync_null (void *p1, void *p2, void *p3)
 
void test_timer_status_sync_null (void)
 Test k_timer_status_sync() API. More...
 
static void thread_timer_remaining_ticks_null (void *p1, void *p2, void *p3)
 
void test_timer_remaining_ticks_null (void)
 Test k_timer_remaining_ticks() API. More...
 
static void thread_timer_expires_ticks_null (void *p1, void *p2, void *p3)
 
void test_timer_expires_ticks_null (void)
 Test k_timer_expires_ticks() API. More...
 
static void thread_timer_user_data_get_null (void *p1, void *p2, void *p3)
 
void test_timer_user_data_get_null (void)
 Test k_timer_user_data_get() API. More...
 
static void thread_timer_user_data_set_null (void *p1, void *p2, void *p3)
 
void test_timer_user_data_set_null (void)
 Test k_timer_user_data_set() API. More...
 
static void test_timer_handle (struct _timeout *t)
 
void test_timer_add_timeout (void)
 
uint64_t sys_clock_timeout_end_calc (k_timeout_t timeout)
 
void sys_clock_announce (int32_t ticks)
 
void test_timeout_end_calc (void)
 
void test_main (void)
 

Variables

static struct k_timer mytimer sync_timer
 
static struct k_thread tdata
 

Macro Definition Documentation

◆ DURATION

#define DURATION   100

◆ PERIOD

#define PERIOD   50

◆ STACK_SIZE

#define STACK_SIZE   (512 + CONFIG_TEST_EXTRA_STACKSIZE)

◆ TEST_TIMEOUT

#define TEST_TIMEOUT   -20

◆ THREAD_TEST_PRIORITY

#define THREAD_TEST_PRIORITY   0

Function Documentation

◆ K_THREAD_STACK_DEFINE()

static K_THREAD_STACK_DEFINE ( tstack  ,
(512+CONFIG_TEST_EXTRA_STACKSIZE)   
)
static

◆ sys_clock_announce()

void sys_clock_announce ( int32_t  ticks)

◆ sys_clock_timeout_end_calc()

uint64_t sys_clock_timeout_end_calc ( k_timeout_t  timeout)

◆ test_main()

void test_main ( void  )

test case main entry

◆ test_timeout_end_calc()

void test_timeout_end_calc ( void  )

◆ test_timer_add_timeout()

void test_timer_add_timeout ( void  )

◆ test_timer_handle()

static void test_timer_handle ( struct _timeout *  t)
static

do nothing here

◆ thread_timer_expires_ticks_null()

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

◆ thread_timer_remaining_ticks_null()

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

◆ thread_timer_start_null()

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

◆ thread_timer_status_get_null()

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

◆ thread_timer_status_sync_null()

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

◆ thread_timer_stop_null()

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

◆ thread_timer_user_data_get_null()

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

◆ thread_timer_user_data_set_null()

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

Variable Documentation

◆ sync_timer

struct k_timer mytimer sync_timer
static

◆ tdata

struct k_thread tdata
static