VSF Documented
Data Structures | Macros | Typedefs | Functions | Variables
rtos_al.c File Reference
#include "vsf.h"
#include "rtos.h"
#include "rtos_al.h"

Data Structures

struct  rtos_timer_t
 
struct  rtos_task_cfg_st
 

Macros

#define __VSF_EDA_CLASS_INHERIT__
 
#define AIC8800_OSAL_CFG_TIMER_TASK_STACK_DEPTH   512
 
#define AIC8800_OSAL_CFG_TIMER_TASK_STACK_PRIORITY   2
 
#define rtos_trace(...)
 
#define rtos_trace_buffer(...)
 
#define rtos_trace_task(...)
 
#define rtos_trace_queue(...)
 
#define rtos_trace_queue_buffer(...)
 
#define rtos_trace_notify(...)
 
#define rtos_trace_timer(...)
 

Typedefs

typedef struct rtos_timer_t rtos_timer_t
 

Functions

 dcl_vsf_thread_ex (def_vsf_thread_ex(vsf_rtos_thread_t)
 
void * rtos_malloc (uint32_t size)
 
void rtos_free (void *ptr)
 
uint32_t rtos_now (bool isr)
 
TimerHandle_t rtos_timer_create (const char *const pcTimerName, const TickType_t xTimerPeriodInTicks, const UBaseType_t uxAutoReload, void *const pvTimerID, TimerCallbackFunction_t pxCallbackFunction)
 
int rtos_timer_delete (TimerHandle_t xTimer, TickType_t xTicksToWait)
 
int rtos_timer_start (TimerHandle_t xTimer, TickType_t xTicksToWait, bool isr)
 
int rtos_timer_restart (TimerHandle_t xTimer, TickType_t xTicksToWait, bool isr)
 
int rtos_timer_stop (TimerHandle_t xTimer, TickType_t xTicksToWait)
 
void * rtos_timer_get_pvTimerID (TimerHandle_t xTimer)
 
 implement_vsf_thread_ex (vsf_rtos_thread_t)
 
int rtos_task_create (rtos_task_fct func, const char *const name, enum rtos_task_id task_id, const uint16_t stack_depth, void *const param, rtos_prio prio, rtos_task_handle *const task_handle)
 
rtos_task_handle rtos_get_task_handle (void)
 
char * rtos_get_task_name (void)
 
void rtos_task_delete (rtos_task_handle task_handle)
 
void rtos_task_suspend (int duration)
 
uint32_t rtos_protect (void)
 
void rtos_unprotect (uint32_t protect)
 
int rtos_task_init_notification (rtos_task_handle task)
 
uint32_t rtos_task_wait_notification (int timeout)
 
void rtos_task_notify (rtos_task_handle task_handle, uint32_t value, bool isr)
 
void rtos_task_notify_setbits (rtos_task_handle task_handle, uint32_t value, bool isr)
 
int rtos_semaphore_create (rtos_semaphore *semaphore, int max_count, int init_count)
 
void rtos_semaphore_delete (rtos_semaphore semaphore)
 
int rtos_semaphore_get_count (rtos_semaphore semaphore)
 
int rtos_semaphore_wait (rtos_semaphore semaphore, int timeout)
 
int rtos_semaphore_signal (rtos_semaphore semaphore, bool isr)
 
int rtos_mutex_create (rtos_mutex *mutex)
 
void rtos_mutex_delete (rtos_mutex mutex)
 
int rtos_mutex_lock (rtos_mutex mutex, int timeout)
 
int rtos_mutex_unlock (rtos_mutex mutex)
 
int rtos_queue_create (int elt_size, int nb_elt, rtos_queue *queue)
 
void rtos_queue_delete (rtos_queue queue)
 
int rtos_queue_write (rtos_queue queue, void *msg, int timeout, bool isr)
 
int rtos_queue_read (rtos_queue queue, void *msg, int timeout, bool isr)
 
bool rtos_queue_is_empty (rtos_queue queue)
 
int rtos_init (void)
 
void rtos_data_save (void)
 
void vTaskStepTick (TickType_t xTicksToJump)
 
rtos_task_cfg_st get_task_cfg (uint8_t task_id)
 

Variables

 vsf_rtos_queue_t
 

Macro Definition Documentation

◆ __VSF_EDA_CLASS_INHERIT__

#define __VSF_EDA_CLASS_INHERIT__

◆ AIC8800_OSAL_CFG_TIMER_TASK_STACK_DEPTH

#define AIC8800_OSAL_CFG_TIMER_TASK_STACK_DEPTH   512

◆ AIC8800_OSAL_CFG_TIMER_TASK_STACK_PRIORITY

#define AIC8800_OSAL_CFG_TIMER_TASK_STACK_PRIORITY   2

◆ rtos_trace

#define rtos_trace (   ...)

◆ rtos_trace_buffer

#define rtos_trace_buffer (   ...)

◆ rtos_trace_task

#define rtos_trace_task (   ...)

◆ rtos_trace_queue

#define rtos_trace_queue (   ...)

◆ rtos_trace_queue_buffer

#define rtos_trace_queue_buffer (   ...)

◆ rtos_trace_notify

#define rtos_trace_notify (   ...)

◆ rtos_trace_timer

#define rtos_trace_timer (   ...)

Typedef Documentation

◆ rtos_timer_t

typedef struct rtos_timer_t rtos_timer_t

Function Documentation

◆ dcl_vsf_thread_ex()

dcl_vsf_thread_ex ( def_vsf_thread_ex vsf_rtos_thread_t)

◆ rtos_malloc()

void * rtos_malloc ( uint32_t  size)

◆ rtos_free()

void rtos_free ( void *  ptr)

◆ rtos_now()

uint32_t rtos_now ( bool  isr)

◆ rtos_timer_create()

TimerHandle_t rtos_timer_create ( const char *const  pcTimerName,
const TickType_t  xTimerPeriodInTicks,
const UBaseType_t  uxAutoReload,
void *const  pvTimerID,
TimerCallbackFunction_t  pxCallbackFunction 
)

◆ rtos_timer_delete()

int rtos_timer_delete ( TimerHandle_t  xTimer,
TickType_t  xTicksToWait 
)

◆ rtos_timer_start()

int rtos_timer_start ( TimerHandle_t  xTimer,
TickType_t  xTicksToWait,
bool  isr 
)

◆ rtos_timer_restart()

int rtos_timer_restart ( TimerHandle_t  xTimer,
TickType_t  xTicksToWait,
bool  isr 
)

◆ rtos_timer_stop()

int rtos_timer_stop ( TimerHandle_t  xTimer,
TickType_t  xTicksToWait 
)

◆ rtos_timer_get_pvTimerID()

void * rtos_timer_get_pvTimerID ( TimerHandle_t  xTimer)

◆ implement_vsf_thread_ex()

implement_vsf_thread_ex ( vsf_rtos_thread_t  )

◆ rtos_task_create()

int rtos_task_create ( rtos_task_fct  func,
const char *const  name,
enum rtos_task_id  task_id,
const uint16_t  stack_depth,
void *const  param,
rtos_prio  prio,
rtos_task_handle *const  task_handle 
)

◆ rtos_get_task_handle()

rtos_task_handle rtos_get_task_handle ( void  )

◆ rtos_get_task_name()

char * rtos_get_task_name ( void  )

◆ rtos_task_delete()

void rtos_task_delete ( rtos_task_handle  task_handle)

◆ rtos_task_suspend()

void rtos_task_suspend ( int  duration)

◆ rtos_protect()

uint32_t rtos_protect ( void  )

◆ rtos_unprotect()

void rtos_unprotect ( uint32_t  protect)

◆ rtos_task_init_notification()

int rtos_task_init_notification ( rtos_task_handle  task)

◆ rtos_task_wait_notification()

uint32_t rtos_task_wait_notification ( int  timeout)

◆ rtos_task_notify()

void rtos_task_notify ( rtos_task_handle  task_handle,
uint32_t  value,
bool  isr 
)

◆ rtos_task_notify_setbits()

void rtos_task_notify_setbits ( rtos_task_handle  task_handle,
uint32_t  value,
bool  isr 
)

◆ rtos_semaphore_create()

int rtos_semaphore_create ( rtos_semaphore semaphore,
int  max_count,
int  init_count 
)

◆ rtos_semaphore_delete()

void rtos_semaphore_delete ( rtos_semaphore  semaphore)

◆ rtos_semaphore_get_count()

int rtos_semaphore_get_count ( rtos_semaphore  semaphore)

◆ rtos_semaphore_wait()

int rtos_semaphore_wait ( rtos_semaphore  semaphore,
int  timeout 
)

◆ rtos_semaphore_signal()

int rtos_semaphore_signal ( rtos_semaphore  semaphore,
bool  isr 
)

◆ rtos_mutex_create()

int rtos_mutex_create ( rtos_mutex mutex)

◆ rtos_mutex_delete()

void rtos_mutex_delete ( rtos_mutex  mutex)

◆ rtos_mutex_lock()

int rtos_mutex_lock ( rtos_mutex  mutex,
int  timeout 
)

◆ rtos_mutex_unlock()

int rtos_mutex_unlock ( rtos_mutex  mutex)

◆ rtos_queue_create()

int rtos_queue_create ( int  elt_size,
int  nb_elt,
rtos_queue queue 
)

◆ rtos_queue_delete()

void rtos_queue_delete ( rtos_queue  queue)

◆ rtos_queue_write()

int rtos_queue_write ( rtos_queue  queue,
void *  msg,
int  timeout,
bool  isr 
)

◆ rtos_queue_read()

int rtos_queue_read ( rtos_queue  queue,
void *  msg,
int  timeout,
bool  isr 
)

◆ rtos_queue_is_empty()

bool rtos_queue_is_empty ( rtos_queue  queue)

◆ rtos_init()

int rtos_init ( void  )

◆ rtos_data_save()

void rtos_data_save ( void  )

◆ vTaskStepTick()

void vTaskStepTick ( TickType_t  xTicksToJump)

◆ get_task_cfg()

rtos_task_cfg_st get_task_cfg ( uint8_t  task_id)

Variable Documentation

◆ vsf_rtos_queue_t

vsf_rtos_queue_t