?? os_q.h
字號:
/*********************************************************************************************************
** Small RTOS(51)
** The Real-Time Kernel(For Keil c51)
**
** (c) Copyright 2002-2002, chenmingji
** All Rights Reserved
**
** V1.10
********************************************************************************************************/
#ifndef NOT_OK
#define NOT_OK 255 /* 參數錯誤 */
#endif
#define OS_Q_FULL 8 /* 隊列滿 */
#define OS_Q_NOT_OK 4 /* 無消息 */
#define OS_Q_TMO 2 /* 超時到 */
#define OS_Q_OK 1 /* 操作成功 */
#ifndef IN_OS_Q
extern uint8 OSQCreate(uint8 OS_Q_MEM_SEL *Buf, uint8 SizeOfBuf);
extern uint8 OSQPend(uint8 data *Ret, uint8 OS_Q_MEM_SEL *Buf, uint8 Tick);
extern uint8 OSQAccept(uint8 data *Ret, uint8 OS_Q_MEM_SEL *Buf);
extern uint8 OSQPost(uint8 OS_Q_MEM_SEL *Buf, uint8 Data);
extern uint8 OSQPostFront(uint8 OS_Q_MEM_SEL *Buf, uint8 Data);
extern uint8 OSQIntPost(uint8 OS_Q_MEM_SEL *Buf, uint8 Data);
extern uint8 OSQIntPostFront(uint8 OS_Q_MEM_SEL *Buf, uint8 Data);
extern uint8 OSQNMsgs(uint8 OS_Q_MEM_SEL *Buf);
extern uint8 OSQSize(uint8 OS_Q_MEM_SEL *Buf);
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -