|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
#include <los_swtmr.h>#include <los_memory.h>#include <los_config.h>#include <time.h>#include <limits.h>#include <linux/hrtimer.h>#include "soc_osal.h"#include "osal_errno.h"#include "osal_inner.h"
宏定义 | |
| #define | US_TO_NSEC 1000 |
| #define | MS_TO_USEC 1000 |
函数 | |
| unsigned long | osal_timer_get_private_data (const void *sys_data) |
| get_private_data by timer. | |
| int | osal_timer_init (osal_timer *timer) |
| Initialize the timer. | |
| int | osal_timer_mod (osal_timer *timer, unsigned int interval) |
| modify a timer's timeout. | |
| int | osal_timer_start (osal_timer *timer) |
| start a timer. | |
| int | osal_timer_stop (osal_timer *timer) |
| Deactivate a timer. | |
| int | osal_timer_destroy (osal_timer *timer) |
| destroy the timer. | |
| unsigned long long | osal_sched_clock (void) |
| Obtain system time in nanoseconds. | |
| void | osal_gettimeofday (osal_timeval *tv) |
| Obtaining the Current System Kernel Time. | |
| unsigned long long | osal_get_jiffies (void) |
| Obtain the number of Ticks(in liteos) or jiffies(in linux). | |
| unsigned long | osal_msecs_to_jiffies (const unsigned int m) |
| Convert milliseconds to Ticks/jiffies. | |
| unsigned int | osal_jiffies_to_msecs (const unsigned int n) |
| Convert Ticks/jiffies to milliseconds. | |
| unsigned int | osal_get_cycle_per_tick (void) |
| Obtain the number of cycles in one tick. | |
| #define MS_TO_USEC 1000 |
| #define US_TO_NSEC 1000 |