5.13.0.0R1
Software Development Kit
wwd_rtos.c File Reference

Functions

wwd_result_t host_rtos_create_configed_thread (host_thread_type_t *thread, void(*entry_function)(uint32_t), const char *name, void *stack, uint32_t stack_size, uint32_t priority, host_rtos_thread_config_type_t *config)
 
wwd_result_t host_rtos_create_thread (host_thread_type_t *thread, void(*entry_function)(uint32_t), const char *name, void *stack, uint32_t stack_size, uint32_t priority)
 
wwd_result_t host_rtos_deinit_semaphore (host_semaphore_type_t *semaphore)
 
wwd_result_t host_rtos_delay_milliseconds (uint32_t num_ms)
 
wwd_result_t host_rtos_delete_terminated_thread (host_thread_type_t *thread)
 
wwd_result_t host_rtos_finish_thread (host_thread_type_t *thread)
 
wwd_result_t host_rtos_get_semaphore (host_semaphore_type_t *semaphore, uint32_t timeout_ms, wiced_bool_t will_set_in_isr)
 
wwd_time_t host_rtos_get_time (void)
 
wwd_result_t host_rtos_init_semaphore (host_semaphore_type_t *semaphore)
 
wwd_result_t host_rtos_join_thread (host_thread_type_t *thread)
 
wwd_result_t host_rtos_set_semaphore (host_semaphore_type_t *semaphore, wiced_bool_t called_from_ISR)
 

Detailed Description

Implementation of wiced_rtos.c for ThreadX

This is the ThreadX implementation of the Wiced RTOS abstraction layer. It provides Wiced with standard ways of using threads, semaphores and time functions

Function Documentation

wwd_result_t host_rtos_create_thread ( host_thread_type_t *  thread,
void(*)(uint32_t)  entry_function,
const char *  name,
void *  stack,
uint32_t  stack_size,
uint32_t  priority 
)

Creates a new thread

Parameters
thread: pointer to variable which will receive handle of created thread
entry_function: main thread function
name: a string thread name used for a debugger
Returns
WWD_SUCCESS on success, WICED_ERROR otherwise