Macros | Functions
linux/osal.c File Reference
#include <time.h>
#include <sys/time.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <osal.h>
Include dependency graph for linux/osal.c:

Go to the source code of this file.

Macros

#define USECS_PER_SEC   1000000
 

Functions

ec_timet osal_current_time (void)
 
void osal_free (void *ptr)
 
int osal_gettimeofday (struct timeval *tv, struct timezone *tz)
 
void * osal_malloc (size_t size)
 
int osal_thread_create (void *thandle, int stacksize, void *func, void *param)
 
int osal_thread_create_rt (void *thandle, int stacksize, void *func, void *param)
 
void osal_time_diff (ec_timet *start, ec_timet *end, ec_timet *diff)
 
boolean osal_timer_is_expired (osal_timert *self)
 
void osal_timer_start (osal_timert *self, uint32 timeout_usec)
 
int osal_usleep (uint32 usec)
 

Macro Definition Documentation

◆ USECS_PER_SEC

#define USECS_PER_SEC   1000000

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

Function Documentation

◆ osal_current_time()

ec_timet osal_current_time ( void  )

Definition at line 40 of file linux/osal.c.

◆ osal_free()

void osal_free ( void *  ptr)

Definition at line 97 of file linux/osal.c.

◆ osal_gettimeofday()

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

Definition at line 24 of file linux/osal.c.

◆ osal_malloc()

void* osal_malloc ( size_t  size)

Definition at line 92 of file linux/osal.c.

◆ osal_thread_create()

int osal_thread_create ( void *  thandle,
int  stacksize,
void *  func,
void *  param 
)

Definition at line 102 of file linux/osal.c.

◆ osal_thread_create_rt()

int osal_thread_create_rt ( void *  thandle,
int  stacksize,
void *  func,
void *  param 
)

Definition at line 119 of file linux/osal.c.

◆ osal_time_diff()

void osal_time_diff ( ec_timet start,
ec_timet end,
ec_timet diff 
)

Definition at line 51 of file linux/osal.c.

◆ osal_timer_is_expired()

boolean osal_timer_is_expired ( osal_timert self)

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

◆ osal_timer_start()

void osal_timer_start ( osal_timert self,
uint32  timeout_usec 
)

Definition at line 63 of file linux/osal.c.

◆ osal_usleep()

int osal_usleep ( uint32  usec)
inline

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



soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Wed Mar 2 2022 01:01:49