diff --git a/components/drivers/ipc/dataqueue.c b/components/drivers/ipc/dataqueue.c index b62730617c..337c5114bf 100644 --- a/components/drivers/ipc/dataqueue.c +++ b/components/drivers/ipc/dataqueue.c @@ -165,7 +165,7 @@ rt_err_t rt_data_queue_push(struct rt_data_queue *queue, } /* there is at least one thread in suspended list */ - if (rt_susp_list_dequeue(&queue->suspended_push_list, + if (rt_susp_list_dequeue(&queue->suspended_pop_list, RT_THREAD_RESUME_RES_THR_ERR)) { /* unlock and perform a schedule */ diff --git a/include/rttypes.h b/include/rttypes.h index fa84df1b1e..78d6c63011 100644 --- a/include/rttypes.h +++ b/include/rttypes.h @@ -33,7 +33,7 @@ extern "C" { */ typedef int rt_bool_t; /**< boolean type */ -typedef signed long rt_base_t; /**< Nbit CPU related date type */ +typedef signed long rt_base_t; /**< Nbit CPU related data type */ typedef unsigned long rt_ubase_t; /**< Nbit unsigned CPU related data type */ #ifndef RT_USING_ARCH_DATA_TYPE