#include <osal.h>
#include <kern.h>
#include <time.h>
#include <sys/time.h>
#include <config.h>
Go to the source code of this file.
◆ timeradd
#define timeradd |
( |
|
a, |
|
|
|
b, |
|
|
|
result |
|
) |
| |
Value:do { \
(result)->tv_sec = (a)->tv_sec + (b)->tv_sec; \
(result)->tv_usec = (a)->tv_usec + (b)->tv_usec; \
if ((result)->tv_usec >= 1000000) \
{ \
++(result)->tv_sec; \
(result)->tv_usec -= 1000000; \
} \
} while (0)
Definition at line 16 of file rtk/osal.c.
◆ timercmp
#define timercmp |
( |
|
a, |
|
|
|
b, |
|
|
|
CMP |
|
) |
| |
Value:(((a)->tv_sec == (b)->tv_sec) ? \
((a)->tv_usec CMP (b)->tv_usec) : \
((a)->tv_sec CMP (b)->tv_sec))
Definition at line 12 of file rtk/osal.c.
◆ timersub
#define timersub |
( |
|
a, |
|
|
|
b, |
|
|
|
result |
|
) |
| |
Value:do { \
(result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
(result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
if ((result)->tv_usec < 0) { \
--(result)->tv_sec; \
(result)->tv_usec += 1000000; \
} \
} while (0)
Definition at line 26 of file rtk/osal.c.
◆ USECS_PER_SEC
#define USECS_PER_SEC 1000000 |
◆ USECS_PER_TICK
◆ gettimeofday()
int gettimeofday |
( |
struct timeval * |
tp, |
|
|
void * |
tzp |
|
) |
| |
◆ osal_current_time()
◆ osal_free()
void osal_free |
( |
void * |
ptr | ) |
|
◆ osal_gettimeofday()
int osal_gettimeofday |
( |
struct timeval * |
tv, |
|
|
struct timezone * |
tz |
|
) |
| |
◆ osal_malloc()
void* osal_malloc |
( |
size_t |
size | ) |
|
◆ osal_thread_create()
int osal_thread_create |
( |
void * |
thandle, |
|
|
int |
stacksize, |
|
|
void * |
func, |
|
|
void * |
param |
|
) |
| |
◆ osal_thread_create_rt()
int osal_thread_create_rt |
( |
void * |
thandle, |
|
|
int |
stacksize, |
|
|
void * |
func, |
|
|
void * |
param |
|
) |
| |
◆ osal_timer_is_expired()
◆ osal_timer_start()
◆ osal_usleep()
int osal_usleep |
( |
uint32 |
usec | ) |
|
|
inline |
◆ udelay()