Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
main.c File Reference
#include <stdlib.h>
#include <zephyr/ztest.h>
#include <zephyr/types.h>
#include <zephyr/irq_offload.h>
#include <zephyr/ztest_error_hook.h>

Macros

#define STACK_SIZE   (512 + CONFIG_TEST_EXTRA_STACK_SIZE)
 
#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_STACK_SIZE))
 
static void thread_timer_start_null (void *p1, void *p2, void *p3)
 
 ZTEST_USER (timer_api_error, test_timer_start_null)
 Test k_timer_start() API.
 
static void thread_timer_stop_null (void *p1, void *p2, void *p3)
 
 ZTEST_USER (timer_api_error, test_timer_stop_null)
 Test k_timer_stop() API.
 
static void thread_timer_status_get_null (void *p1, void *p2, void *p3)
 
 ZTEST_USER (timer_api_error, test_timer_status_get_null)
 Test k_timer_status_get() API.
 
static void thread_timer_status_sync_null (void *p1, void *p2, void *p3)
 
 ZTEST_USER (timer_api_error, test_timer_status_sync_null)
 Test k_timer_status_sync() API.
 
static void thread_timer_remaining_ticks_null (void *p1, void *p2, void *p3)
 
 ZTEST_USER (timer_api_error, test_timer_remaining_ticks_null)
 Test k_timer_remaining_ticks() API.
 
static void thread_timer_expires_ticks_null (void *p1, void *p2, void *p3)
 
 ZTEST_USER (timer_api_error, test_timer_expires_ticks_null)
 Test k_timer_expires_ticks() API.
 
static void thread_timer_user_data_get_null (void *p1, void *p2, void *p3)
 
 ZTEST_USER (timer_api_error, test_timer_user_data_get_null)
 Test k_timer_user_data_get() API.
 
static void thread_timer_user_data_set_null (void *p1, void *p2, void *p3)
 
 ZTEST_USER (timer_api_error, test_timer_user_data_set_null)
 Test k_timer_user_data_set() API.
 
static void test_timer_handle (struct _timeout *t)
 
 ZTEST_USER (timer_api_error, test_timer_add_timeout)
 
void * setup_timer_error_test (void)
 
 ZTEST_SUITE (timer_api_error, NULL, setup_timer_error_test, NULL, NULL, NULL)
 

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_STACK_SIZE)

◆ 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_STACK_SIZE)   
)
static

◆ setup_timer_error_test()

void * setup_timer_error_test ( 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

◆ ZTEST_SUITE()

ZTEST_SUITE ( timer_api_error  ,
NULL  ,
setup_timer_error_test  ,
NULL  ,
NULL  ,
NULL   
)

◆ ZTEST_USER()

ZTEST_USER ( timer_api_error  ,
test_timer_add_timeout   
)

Variable Documentation

◆ sync_timer

struct k_timer mytimer sync_timer
static

◆ tdata

struct k_thread tdata
static