⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 系统的服务例程.htm

📁 uCOS-II系统服务例程 很不错的内核代码解释
💻 HTM
📖 第 1 页 / 共 4 页
字号:
style='font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";text-transform:none'><o:p></o:p></span></p>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="INT8U%20OSMemPut.htm">INT8U
OSMemPut(OS_MEM *pmem, void *pblk);</a></span></span><span lang=EN-US
style='font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";text-transform:none'><o:p></o:p></span></p>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="INT8U%20OSMemQuery.htm"><span
style='background:#D9D9D9;mso-shading:white;mso-pattern:gray-15 auto'>INT8U
OSMemQuery(OS_MEM *pmem, OS_MEM_DATA *pdata);</span></a><o:p></o:p></span></span></p>

<h2 style='margin-left:0cm;text-indent:0cm;mso-list:none'><span lang=UK
style='font-size:14.0pt;mso-bidi-font-size:10.0pt;font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";font-weight:normal;mso-bidi-font-weight:
bold'>Message</span><span lang=RU style='font-size:14.0pt;mso-bidi-font-size:
10.0pt;font-family:宋体;mso-ascii-font-family:"Courier New";mso-hansi-font-family:
"Courier New";mso-ansi-language:RU;font-weight:normal;mso-bidi-font-weight:
bold'>相关的服务例程:</span><span lang=UK style='font-size:14.0pt;mso-bidi-font-size:
10.0pt;font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
font-weight:normal;mso-bidi-font-weight:bold'><o:p></o:p></span></h2>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="OS2.htm">OS_EVENT
*OSQCreate(void **start, INT8U size);</a></span></span><span lang=EN-US
style='font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";text-transform:none'><o:p></o:p></span></p>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="INT8U.htm">INT8U
*OSQFlush(OS_EVENT *pevent);</a></span></span><span lang=EN-US
style='font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";text-transform:none'><o:p></o:p></span></p>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="OS3.htm">void
*OSQAccept(OS_EVENT *pevent);</a></span></span><span lang=EN-US
style='font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";text-transform:none'><o:p></o:p></span></p>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="void4.htm">void
*OSQPend(OS_EVENT *pevent, INT16U timeout, INT8U *err);</a></span></span><span
lang=EN-US style='font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";text-transform:none'><o:p></o:p></span></p>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="INT8U%20OSQPost.htm">INT8U
OSQPost(OS_EVENT *pevent, void *msg);</a></span></span><span lang=EN-US
style='font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";text-transform:none'><o:p></o:p></span></p>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="INT8U%20OSQPostFront.htm">INT8U
OSQPostFront(OS_EVENT *pevent, void *msg);</a></span></span><span lang=EN-US
style='font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";text-transform:none'><o:p></o:p></span></p>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="INT8U%20OSQQuery.htm"><span
style='background:#D9D9D9;mso-shading:white;mso-pattern:gray-15 auto'>INT8U OSQQuery(OS_EVENT
*pevent, OS_Q_DATA *pdata);</span></a><o:p></o:p></span></span></p>

<h2 style='margin-left:0cm;text-indent:0cm;mso-list:none'><span lang=UK
style='font-size:14.0pt;mso-bidi-font-size:10.0pt;font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";font-weight:normal;mso-bidi-font-weight:
bold'>Semaphore</span><span lang=RU style='font-size:14.0pt;mso-bidi-font-size:
10.0pt;font-family:宋体;mso-ascii-font-family:"Courier New";mso-hansi-font-family:
"Courier New";mso-ansi-language:RU;font-weight:normal;mso-bidi-font-weight:
bold'>相关的服务例程:</span><span lang=UK style='font-size:14.0pt;mso-bidi-font-size:
10.0pt;font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
font-weight:normal;mso-bidi-font-weight:bold'><o:p></o:p></span></h2>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="INT16U%20OSSemAccept.htm">INT16U
OSSemAccept(OS_EVENT *pevent);</a></span></span><span lang=EN-US
style='font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";text-transform:none'><o:p></o:p></span></p>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="OS3.htm">OS_EVENT *OSSemCreate(WORD
value);</a></span></span><span lang=EN-US style='font-size:10.5pt;mso-bidi-font-size:
12.0pt;font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
text-transform:none'><o:p></o:p></span></p>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="void%20OSSemPend.htm">void
OSSemPend(OS_EVENT *pevent, INT16U timeout, INT8U *err);</a></span></span><span
lang=EN-US style='font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";text-transform:none'><o:p></o:p></span></p>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="INT8U%20OSSemPost.htm">INT8U
OSSemPost(OS_EVENT *pevent);</a></span></span><span lang=EN-US
style='font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";text-transform:none'><o:p></o:p></span></p>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="INT8U%20OSSemQuery.htm"><span
style='background:#D9D9D9;mso-shading:white;mso-pattern:gray-15 auto'>INT8U OSSemQuery(OS_EVENT
*pevent, OS_SEM_DATA *pdata);</span></a><o:p></o:p></span></span></p>

<h2 style='margin-left:0cm;text-indent:0cm;mso-list:none'><span lang=UK
style='font-size:14.0pt;mso-bidi-font-size:10.0pt;font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";font-weight:normal;mso-bidi-font-weight:
bold'>Task</span><span lang=RU style='font-size:14.0pt;mso-bidi-font-size:10.0pt;
font-family:宋体;mso-ascii-font-family:"Courier New";mso-hansi-font-family:"Courier New";
mso-ansi-language:RU;font-weight:normal;mso-bidi-font-weight:bold'>相关的服务例程:</span><span
lang=UK style='font-size:14.0pt;mso-bidi-font-size:10.0pt;font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";font-weight:normal;mso-bidi-font-weight:
bold'><o:p></o:p></span></h2>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="INT8U%20OSTaskCreate.htm">INT8U
OSTaskCreate(void (*task)(void *pd), void *pdata, OS_STK *ptos, INT8U prio);</a></span></span><span
lang=EN-US style='font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";text-transform:none'><o:p></o:p></span></p>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="INT8U%20OSTaskCreateExt.htm">INT8U
OSTaskCreateExt(void (*task)(void *pd), void *pdata, OS_STK *ptos, INT8U prio,
INT16U, id, OS_STK *pbos, INT32U stk_size, void *pext, INT16U opt);</a></span></span><span
lang=EN-US style='font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";text-transform:none'><o:p></o:p></span></p>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="INT8U%20OSTaskDel.htm">INT8U
OSTaskDel(INT8U prio);</a></span></span><span lang=EN-US style='font-size:10.5pt;
mso-bidi-font-size:12.0pt;font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
text-transform:none'><o:p></o:p></span></p>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="INT8U%20OSTaskDelReq.htm">INT8U
OSTaskDelReq(INT8U prio);</a></span></span><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:12.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><o:p></o:p></span></p>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="INT8U%20OSTaskChangePrio.htm">INT8U
OSTaskChangePrio(INT8U oldprio, INT8U newprio);</a></span></span><span
lang=EN-US style='font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";text-transform:none'><o:p></o:p></span></p>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="INT8U%20OSTaskSuspend.htm">INT8U
OSTaskSuspend(INT8U prio);</a></span></span><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:12.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><o:p></o:p></span></p>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="INT8U%20OSTaskResume.htm">INT8U
OSTaskResume(INT8U prio);</a></span></span><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:12.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><o:p></o:p></span></p>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="INT8U%20OSTaskQuery.htm"><span
style='background:#D9D9D9;mso-shading:white;mso-pattern:gray-15 auto'>INT8U
OSTaskQuery(INT8U prio, OS_TCB *pdata);</span></a><o:p></o:p></span></span></p>

<h2 style='margin-left:0cm;text-indent:0cm;mso-list:none'><span lang=UK
style='font-size:14.0pt;mso-bidi-font-size:10.0pt;font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";font-weight:normal;mso-bidi-font-weight:
bold'>Time</span><span lang=RU style='font-size:14.0pt;mso-bidi-font-size:10.0pt;
font-family:宋体;mso-ascii-font-family:"Courier New";mso-hansi-font-family:"Courier New";
mso-ansi-language:RU;font-weight:normal;mso-bidi-font-weight:bold'>相关的服务例程:</span><span
lang=UK style='font-size:14.0pt;mso-bidi-font-size:10.0pt;font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";font-weight:normal;mso-bidi-font-weight:
bold'><o:p></o:p></span></h2>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="void%20OSTimeDly.htm">void
OSTimeDly(INT16U ticks);</a></span></span><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:12.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><o:p></o:p></span></p>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="void%20OSTimeDlyHMSM.htm">void
OSTimeDlyHMSM(INT8U hours, INT8U minutes, INT8U seconds, INT8U milli);</a></span></span><span
lang=EN-US style='font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";text-transform:none'><o:p></o:p></span></p>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="INT8U%20OSTimeDlyResume.htm">INT8U
OSTimeDlyResume(INT8U prio);</a></span></span><span lang=EN-US
style='font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";text-transform:none'><o:p></o:p></span></p>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="INT32U%20OSTimeGet.htm">INT32U
OSTimeGet(void);</a></span></span><span lang=EN-US style='font-size:10.5pt;
mso-bidi-font-size:12.0pt;font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
text-transform:none'><o:p></o:p></span></p>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="void%20OSTimeSet.htm">void
OSTimeSet(INT32U ticks);</a><o:p></o:p></span></span></p>

<h2 style='margin-left:0cm;text-indent:0cm;mso-list:none'><span
style='font-size:14.0pt;mso-bidi-font-size:10.0pt;font-family:宋体;mso-ascii-font-family:
"Courier New";mso-hansi-font-family:"Courier New";mso-fareast-language:ZH-CN;
font-weight:normal;mso-bidi-font-weight:bold'>调度锁、关键代码段相关的服务例程和宏:</span><span
lang=UK style='font-size:14.0pt;mso-bidi-font-size:10.0pt;font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";mso-fareast-language:ZH-CN;font-weight:
normal;mso-bidi-font-weight:bold'><o:p></o:p></span></h2>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="OS4.htm">OS_ENTER_CRITICAL()<span
style='font-family:宋体;mso-ascii-font-family:"Courier New";mso-hansi-font-family:
"Courier New"'>、</span>OS_EXIT_CRITICAL()</a></span></span><span lang=EN-US
style='font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";text-transform:none'><o:p></o:p></span></p>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="void%20OSSchedLock.htm">void
OSSchedLock(void);</a></span></span><span lang=EN-US style='font-size:10.5pt;
mso-bidi-font-size:12.0pt;font-family:"Courier New";mso-bidi-font-family:"Times New Roman";
text-transform:none'><o:p></o:p></span></p>

<p class=MsoToc1><span class=MsoHyperlink><span lang=EN-US style='font-size:
10.5pt;mso-bidi-font-size:13.0pt;font-family:"Courier New";mso-bidi-font-family:
"Times New Roman";text-transform:none'><a href="void%20OSSchedUnlock.htm">void
OSSchedUnlock(void);</a><o:p></o:p></span></span></p>

<p class=MsoNormal><span lang=EN-US style='font-family:"Courier New";
mso-bidi-font-family:"Times New Roman"'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>

<p class=MsoNormal align=left style='text-align:left;mso-pagination:widow-orphan'><!--[if supportFields]><span
lang=EN-US style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'><span
style='mso-element:field-end'></span></span><![endif]--><span lang=EN-US
style='font-family:"Arial Unicode MS";mso-fareast-font-family:宋体;mso-bidi-font-family:
"Times New Roman"'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>

</div>

<span lang=EN-US style='font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:
"Arial Unicode MS";mso-fareast-font-family:宋体;mso-bidi-font-family:"Times New Roman";
mso-font-kerning:1.0pt;mso-ansi-language:EN-US;mso-fareast-language:ZH-CN;
mso-bidi-language:AR-SA'><br clear=all style='page-break-before:always;
mso-break-type:section-break'>
</span>

<div class=Section2 style='layout-grid:15.6pt'>

<p class=MsoNormal><span lang=EN-US><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>

</div>

</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -