msgq.h
来自「Rabbit 32Bit RTOS源代码」· C头文件 代码 · 共 27 行
H
27 行
/*********************************************************************
* Copyright (c) 2011-2012,李士伟
* All rights reserved.
*文 件 名:msgq.h
*描 述:消息队列头文件
*当前版本:V1.00
*作 者:李士伟
*创建日期:2012.01.21
**********************************************************************/
#ifndef __MSGQ_H__
#define __MSGQ_H__
#include <kernel\typedef.h>
#include <kernel\kds.h>
#ifdef __cplusplus
extern "C" {
#endif
extern OS_MSGQ *API_CreateMsgQ(INT32U q_size);
extern INT32U API_DeleteMsgQ(OS_MSGQ *pq);
extern void *API_MsgQPend(OS_MSGQ *pq, INT32U timeout, INT32U *err);
extern void *API_MsgQAccept(OS_MSGQ *pq);
extern INT32U API_MsgQPost(OS_MSGQ *pq, void *msg, INT32U method);
extern INT32U API_MsgQPostFront(OS_MSGQ *pq, void *msg, INT32U method);
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?