diff --git a/components/drivers/include/ipc/condvar.h b/components/drivers/include/ipc/condvar.h index 1211df420d..dc5cd5cf08 100644 --- a/components/drivers/include/ipc/condvar.h +++ b/components/drivers/include/ipc/condvar.h @@ -25,7 +25,7 @@ typedef struct rt_condvar void rt_condvar_init(rt_condvar_t cv, char *name); int rt_condvar_timedwait(rt_condvar_t cv, rt_mutex_t mtx, int suspend_flag, - rt_tick_t timeout); + rt_int32_t timeout); int rt_condvar_signal(rt_condvar_t cv); int rt_condvar_broadcast(rt_condvar_t cv); diff --git a/components/drivers/ipc/condvar.c b/components/drivers/ipc/condvar.c index 1eb42dc9ad..e176ac502a 100644 --- a/components/drivers/ipc/condvar.c +++ b/components/drivers/ipc/condvar.c @@ -35,7 +35,7 @@ void rt_condvar_init(rt_condvar_t cv, char *name) } static int _waitq_inqueue(rt_wqueue_t *queue, struct rt_wqueue_node *node, - rt_tick_t timeout, int suspend_flag) + rt_int32_t timeout, int suspend_flag) { rt_thread_t tcb = node->polling_thread; rt_timer_t timer = &(tcb->thread_timer); @@ -71,7 +71,7 @@ static int _waitq_inqueue(rt_wqueue_t *queue, struct rt_wqueue_node *node, } int rt_condvar_timedwait(rt_condvar_t cv, rt_mutex_t mtx, int suspend_flag, - rt_tick_t timeout) + rt_int32_t timeout) { rt_err_t acq_mtx_succ, rc; rt_atomic_t waiting_mtx;