Home
last modified time | relevance | path

Searched refs:sem_handle (Results 1 – 4 of 4) sorted by relevance

/AliOS-Things-master/components/osal_aos/example/
A Dsem_example.c39 static aos_sem_t sem_handle; variable
64 status = aos_sem_wait(&sem_handle, AOS_WAIT_FOREVER); in task_entry()
85 aos_sem_signal(&sem_handle); in task_entry()
101 status = aos_sem_create(&sem_handle, 0, 0); in aos_sem_example()
110 aos_sem_free(&sem_handle); in aos_sem_example()
117 aos_sem_free(&sem_handle); in aos_sem_example()
125 aos_sem_signal(&sem_handle); in aos_sem_example()
/AliOS-Things-master/hardware/board/c906/adapter/
A Dcsi_rhino.c915 ksem_t *sem_handle; in csi_kernel_sem_new() local
919 return sem_handle; in csi_kernel_sem_new()
929 k_status_t csi_kernel_sem_del(k_sem_handle_t sem_handle) in csi_kernel_sem_del() argument
931 if (sem_handle == NULL) { in csi_kernel_sem_del()
936 kstat_t ret = krhino_sem_dyn_del(sem_handle); in csi_kernel_sem_del()
951 if (sem_handle == NULL) { in csi_kernel_sem_wait()
963 kstat_t ret = krhino_sem_take(sem_handle, t); in csi_kernel_sem_wait()
974 k_status_t csi_kernel_sem_post(k_sem_handle_t sem_handle) in csi_kernel_sem_post() argument
976 if (sem_handle == NULL) { in csi_kernel_sem_post()
980 kstat_t ret = krhino_sem_give(sem_handle); in csi_kernel_sem_post()
[all …]
A Dcsi_kernel.h465 k_status_t csi_kernel_sem_del(k_sem_handle_t sem_handle);
471 k_status_t csi_kernel_sem_wait(k_sem_handle_t sem_handle, int64_t timeout);
476 k_status_t csi_kernel_sem_post(k_sem_handle_t sem_handle);
481 int32_t csi_kernel_sem_get_count(k_sem_handle_t sem_handle);
/AliOS-Things-master/components/csi/csi2/include/
A Dcsi_kernel.h460 k_status_t csi_kernel_sem_del(k_sem_handle_t sem_handle);
466 k_status_t csi_kernel_sem_wait(k_sem_handle_t sem_handle, int32_t timeout);
471 k_status_t csi_kernel_sem_post(k_sem_handle_t sem_handle);
476 int32_t csi_kernel_sem_get_count(k_sem_handle_t sem_handle);

Completed in 16 milliseconds