Macros | Functions | Variables
intime/osal.c File Reference
#include <rt.h>
#include <sys/time.h>
#include <osal.h>
Include dependency graph for intime/osal.c:

Go to the source code of this file.

Macros

#define USECS_PER_SEC   1000000
 

Functions

ec_timet osal_current_time (void)
 
int osal_gettimeofday (struct timeval *tv, struct timezone *tz)
 
osal_mutex_t * osal_mtx_create (void)
 
void osal_mtx_lock (osal_mutex_t *mtx)
 
int osal_mtx_lock_timeout (osal_mutex_t *mtx, uint32_t time_ms)
 
void osal_mtx_unlock (osal_mutex_t *mtx)
 
boolean osal_timer_is_expired (osal_timert *self)
 
void osal_timer_start (osal_timert *self, uint32 timeout_usec)
 
int osal_usleep (uint32 usec)
 

Variables

static double qpc2usec
 
static int64_t sysfrequency
 

Macro Definition Documentation

◆ USECS_PER_SEC

#define USECS_PER_SEC   1000000

Definition at line 13 of file intime/osal.c.

Function Documentation

◆ osal_current_time()

ec_timet osal_current_time ( void  )

Definition at line 20 of file intime/osal.c.

◆ osal_gettimeofday()

int osal_gettimeofday ( struct timeval *  tv,
struct timezone *  tz 
)

Definition at line 15 of file intime/osal.c.

◆ osal_mtx_create()

osal_mutex_t* osal_mtx_create ( void  )

Definition at line 84 of file intime/osal.c.

◆ osal_mtx_lock()

void osal_mtx_lock ( osal_mutex_t *  mtx)

Definition at line 68 of file intime/osal.c.

◆ osal_mtx_lock_timeout()

int osal_mtx_lock_timeout ( osal_mutex_t *  mtx,
uint32_t  time_ms 
)

Definition at line 78 of file intime/osal.c.

◆ osal_mtx_unlock()

void osal_mtx_unlock ( osal_mutex_t *  mtx)

Definition at line 73 of file intime/osal.c.

◆ osal_timer_is_expired()

boolean osal_timer_is_expired ( osal_timert self)

Definition at line 46 of file intime/osal.c.

◆ osal_timer_start()

void osal_timer_start ( osal_timert self,
uint32  timeout_usec 
)

Definition at line 31 of file intime/osal.c.

◆ osal_usleep()

int osal_usleep ( uint32  usec)
inline

Definition at line 60 of file intime/osal.c.

Variable Documentation

◆ qpc2usec

double qpc2usec
static

Definition at line 11 of file intime/osal.c.

◆ sysfrequency

int64_t sysfrequency
static

Definition at line 10 of file intime/osal.c.



soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Mon Feb 28 2022 23:46:58