90 #define APP_RTOS_STATUS_SUCCESS (0) 92 #define APP_RTOS_STATUS_FAILURE (-(int32_t)1) 94 #define APP_RTOS_STATUS_TIMEOUT (-(int32_t)2) 107 #define APP_RTOS_SEMAPHORE_MODE_COUNTING (0x0U) 108 #define APP_RTOS_SEMAPHORE_MODE_BINARY (0x1U) 109 #define APP_RTOS_SEMAPHORE_MODE_MUTEX (0x2U) 115 #define APP_RTOS_SEMAPHORE_WAIT_FOREVER (~((uint32_t)0U)) 120 #define APP_RTOS_SEMAPHORE_NO_WAIT ((uint32_t)0U) 146 void (*taskfxn)(
void *,
void*);
Task parameters.
Definition: app_rtos.h:138
const char * name
Definition: app_rtos.h:140
uint32_t appRtosTaskIsTerminated(app_rtos_task_handle_t handle)
Check if task is terminated.
void * userData
Definition: app_rtos.h:147
app_rtos_semaphore_handle_t appRtosSemaphoreCreate(app_rtos_semaphore_params_t params)
Creates a semaphore instance.
app_rtos_status_t appRtosSemaphoreReset(app_rtos_semaphore_handle_t semhandle)
Function to clear a semaphore for reuse.
void * app_rtos_task_handle_t
Opaque client reference to an instance of a task.
Definition: app_rtos.h:158
void appRtosTaskYield(void)
Function for Task yield.
void * arg0
Definition: app_rtos.h:144
app_rtos_status_t appRtosTaskDelete(app_rtos_task_handle_t *handle)
Function to delete a task.
void * app_rtos_semaphore_handle_t
Opaque client reference to an instance of a semaphore.
Definition: app_rtos.h:153
uint32_t maxValue
Definition: app_rtos.h:131
app_rtos_status_t appRtosSemaphorePost(app_rtos_semaphore_handle_t semhandle)
Function to post (signal) a semaphore.
void appRtosSemaphoreParamsInit(app_rtos_semaphore_params_t *params)
Initialize params structure to default values.
void appRtosTaskSleepInMsecs(uint32_t timeoutInMsecs)
Function for Task sleep in units of msecs.
int32_t app_rtos_status_t
Status codes for App Rtos APIs.
Definition: app_rtos.h:89
void appRtosTaskParamsInit(app_rtos_task_params_t *params)
Initialize params structure to default values.
uint32_t priority
Definition: app_rtos.h:143
void appRtosTaskSleep(uint32_t timeout)
Function for Task sleep in units of OS tick.
app_rtos_status_t appRtosSemaphoreDelete(app_rtos_semaphore_handle_t *semhandle)
Function to delete a semaphore.
uint8_t * stack
Definition: app_rtos.h:142
app_rtos_status_t appRtosSemaphorePend(app_rtos_semaphore_handle_t semhandle, uint32_t timeout)
Function to pend (wait) on a semaphore.
uint32_t app_rtos_semaphore_mode_t
Mode of the semaphore.
Definition: app_rtos.h:106
uint32_t initValue
Definition: app_rtos.h:130
app_rtos_semaphore_mode_t mode
Definition: app_rtos.h:129
void * arg1
Definition: app_rtos.h:145
app_rtos_task_handle_t appRtosTaskCreate(const app_rtos_task_params_t *params)
Function to create a task.
Semaphore parameters.
Definition: app_rtos.h:127
uint32_t stacksize
Definition: app_rtos.h:141