|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|

结构体 | |
| struct | osal_task |
宏定义 | |
| #define | OSAL_TASK_PRIORITY_ABOVE_HIGH 2 |
| #define | OSAL_TASK_PRIORITY_HIGH 3 |
| #define | OSAL_TASK_PRIORITY_BELOW_HIGH 4 |
| #define | OSAL_TASK_PRIORITY_ABOVE_MIDDLE 5 |
| #define | OSAL_TASK_PRIORITY_MIDDLE 6 |
| #define | OSAL_TASK_PRIORITY_BELOW_MIDDLE 7 |
| #define | OSAL_TASK_PRIORITY_ABOVE_LOW 8 |
| #define | OSAL_TASK_PRIORITY_LOW 10 |
| #define | OSAL_TASK_PRIORITY_BELOW_LOW 11 |
类型定义 | |
| typedef int(* | osal_kthread_handler) (void *data) |
函数 | |
| osal_task * | osal_kthread_create (osal_kthread_handler handler, void *data, const char *name, unsigned int stack_size) |
| Provides an interface for creating a thread and invokes kthread_run for creating a kernel thread. | |
| int | osal_kthread_set_priority (osal_task *task, unsigned int priority) |
| Setting the priority of a thread. | |
| void | osal_kthread_set_affinity (osal_task *task, int cpu_mask) |
| Setting the CPU Affinity of a Task. | |
| int | osal_kthread_should_stop (void) |
| Check whether the thread is running. | |
| int | osal_kthread_wakeup_process (osal_task *task) |
| This function is used to wake up a thread. | |
| void | osal_kthread_bind (osal_task *task, unsigned int cpu) |
| Bind the created thread to run on the execution CPU core. | |
| void | osal_kthread_lock (void) |
| Lock the task scheduling. | |
| void | osal_kthread_unlock (void) |
| Unlock the task scheduling. | |
| void | osal_kthread_destroy (osal_task *task, unsigned int stop_flag) |
| Used to destroy the threads you created. | |
| void | osal_kthread_schedule (unsigned int sleep_ns) |
| In this state, it cannot be woken up by an external signal and can only be woken up by the kernel itself. | |
| void | osal_kthread_set_uninterrupt (void) |
| Set the current thread to the Task_UNINTERRUPTIBLE state. | |
| void | osal_kthread_set_running (void) |
| Set the current thread status to TASK_RUNNING. | |
| void | osal_cond_resched (void) |
| Programs running in kernel mode can call osal_cond_resched to actively give up CPU resources. | |
| void | osal_schedule (void) |
| This function put the current task back to the ready queue and try to do the schedule. | |
| void | osal_kneon_begin (void) |
| Enabling NEON Algorithm Acceleration. | |
| void | osal_kneon_end (void) |
| Disable NEON Algorithm Acceleration. | |
| void | osal_yield (void) |
| Pause the current thread. | |
| long | osal_get_current_pid (void) |
| Obtains the pid of the current thread. | |
| long | osal_get_current_tid (void) |
| Obtains the tid of the current thread. | |
| int | osal_get_current_tgid (void) |
| Obtains the tgid of the current thread. | |
| char * | osal_get_current_taskname (void) |
| Obtains the name of a thread. | |
| unsigned long | osal_msleep (unsigned int msecs) |
| sleep. | |
| void | osal_msleep_uninterruptible (unsigned int msecs) |
| sleep safely even with waitqueue interruptions. | |
| void | osal_udelay (unsigned int usecs) |
| spinning-delay in microsecond (us). | |
| void | osal_mdelay (unsigned int msecs) |
| spinning-delay in millisecond (ms). | |
| void | osal_kthread_suspend (osal_task *task) |
| Suspend a task. | |
| void | osal_kthread_resume (osal_task *task) |
| Resume a task. | |
| #define OSAL_TASK_PRIORITY_ABOVE_HIGH 2 |
| #define OSAL_TASK_PRIORITY_ABOVE_LOW 8 |
| #define OSAL_TASK_PRIORITY_ABOVE_MIDDLE 5 |
| #define OSAL_TASK_PRIORITY_BELOW_HIGH 4 |
| #define OSAL_TASK_PRIORITY_BELOW_LOW 11 |
| #define OSAL_TASK_PRIORITY_BELOW_MIDDLE 7 |
| #define OSAL_TASK_PRIORITY_HIGH 3 |
| #define OSAL_TASK_PRIORITY_LOW 10 |
| #define OSAL_TASK_PRIORITY_MIDDLE 6 |
| typedef int(* osal_kthread_handler) (void *data) |