未验证 提交 36263252 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #3862 from qiyongzhong0/fix_dataqueue

fix dataqueue, limit queue size to usable values (2,4,8,16...) to avo…
......@@ -28,6 +28,7 @@ rt_data_queue_init(struct rt_data_queue *queue,
void (*evt_notify)(struct rt_data_queue *queue, rt_uint32_t event))
{
RT_ASSERT(queue != RT_NULL);
RT_ASSERT((0x10000 % size) == 0);
queue->evt_notify = evt_notify;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册