亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? faqs.htm

?? 網上下載的一些心得集 網友交流之經驗談 uCOS51移植心得 uCOS-II 在 ARM7 上的移植
?? HTM
?? 第 1 頁 / 共 2 頁
字號:
          <TD class=title>F<A name=faq3></A>AQ-03: Where should I enable the 
            'tick' interrupt?</TD></TR></TBODY></TABLE>
      <P>You should enable the tick interrupt AFTER you have started 礐/OS (or 
      礐/OS-II) in a 'startup' task as shown in the example code provided with 
      the book. This way, the OS is in a state ready to accept interrupts and 
      can thus process interrupts.</P>
      <P class=codewiew></P>
      <P></P>
      <P><A href="http://ucos-ii.com/contents/support/faqs.html#top"><IMG 
      height=18 alt="Back to top" src="faqs.files/backtotop.gif" width=84 
      border=0 name=top></A></P>
      <P>&nbsp;</P>
      <TABLE cellSpacing=0 cellPadding=3 width="100%" bgColor=#ced6f0 
        border=0><TBODY>
        <TR>
          <TD class=title>F<A name=faq4></A>AQ-04: Does 礐/OS and 礐/OS-II 
            work with Microsoft C/C++?</TD></TR></TBODY></TABLE>
      <P>Yes, you will have to adjust the SP offset constant (see item 1)) and 
      disable stack checking. Others have used the Microsoft compiler without 
      too many problems.<BR>See also <A 
      href="http://ucos-ii.com/contents/support/faqs.html#faq6">FAQ-06</A>.</P>
      <P class=codewiew></P>
      <P></P>
      <P><A href="http://ucos-ii.com/contents/support/faqs.html#top"><IMG 
      height=18 alt="Back to top" src="faqs.files/backtotop.gif" width=84 
      border=0 name=top></A><BR>&nbsp;</P>
      <TABLE cellSpacing=0 cellPadding=3 width="100%" bgColor=#ced6f0 
        border=0><TBODY>
        <TR>
          <TD class=title>F<A name=faq5></A>AQ-05: Are there other ports 
            available for 礐/OS and 礐/OS-II?</TD></TR></TBODY></TABLE>
      <P>There are currently a large number of ports available for 礐/OS and 
      礐/OS-II.&nbsp; I am planning on making a number of ports available on 
      this WEB site as they become available.&nbsp; <BR>A port to 礐/OS can 
      easily be ported to 礐/OS-II in about an hour or so.&nbsp; This assumes 
      that you are familiar with the target processor and it's compiler.&nbsp; 
      This means that if a port for 礐/OS-II is not currently available but a 
      port for 礐/OS exist then you could modify the 礐/OS port to work with 
      礐/OS-II.&nbsp; Chapter 10 in the book (礐/OS-II) describes the steps. 
</P>
      <P class=codewiew></P>
      <P></P>
      <P><A href="http://ucos-ii.com/contents/support/faqs.html#top"><IMG 
      height=18 alt="Back to top" src="faqs.files/backtotop.gif" width=84 
      border=0 name=top></A><BR>&nbsp;</P>
      <TABLE cellSpacing=0 cellPadding=3 width="100%" bgColor=#ced6f0 
        border=0><TBODY>
        <TR>
          <TD class=title>F<A name=faq6></A>AQ-06: Is there a better way to 
            implement OSIntCtxSw() and ISRs?</TD></TR></TBODY></TABLE>
      <P>As you probably know, 礐/OS-II has a function that is dependent on 
      compiler options <SPAN class=codewiew>(OSIntCtxSw())</SPAN> and, the port 
      designer HAS to adjust the Stack Pointer based on the code generation of 
      the compiler. </P>
      <P>On certain processors (e.g. 80x86) you can simply write ISRs so that 
      you SAVE the Stack Pointer (SS:SP for the 80x86) into the current task's 
      <SPAN class=codewiew>OS_TCB</SPAN> after incrementing <SPAN 
      class=codewiew>OSIntNesting</SPAN>.&nbsp; This way, we save the PROPER 
      pointer to the ISR stack frame in case we don't actually return to the 
      interrupted task.&nbsp; If we DO return to the interrupted task then, 
      there is no harm and all we did was waste a little bit of CPU time!&nbsp; 
      Of course, we eliminate the code at the beginning of <SPAN 
      class=codewiew>OSIntCtxSw()</SPAN> to adjust the Stack Pointer (SP for the 
      80x86) and the code to save the Stack Pointer into the <SPAN 
      class=codewiew>OS_TCB</SPAN>!</P>
      <P>The new pseudo code for an ISR and <SPAN 
      class=codewiew>OSIntCtxSw()</SPAN> is now:</P>
      <P><SPAN class=codewiew>MyISR:<BR>&nbsp;&nbsp;&nbsp; Save ALL 
      registers;<BR>&nbsp;&nbsp;&nbsp; OSIntNesting++;<BR>&nbsp;&nbsp; 
      OSTCBCur-&gt;OSTCBStkPtr = SP;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      &lt;&lt;&lt;&lt; NEW<BR>&nbsp;&nbsp;&nbsp; /* Handle ISR 
      */<BR>&nbsp;&nbsp;&nbsp; OSIntExit();<BR>&nbsp;&nbsp;&nbsp; Restore ALL 
      registers;<BR>&nbsp;&nbsp;&nbsp; Return from 
      Interrupt;<BR>OSIntCtxSw:<BR>&nbsp;&nbsp;&nbsp; 
      OSTaskSwHook();<BR>&nbsp;&nbsp;&nbsp; OSTCBCur = 
      OSTCBHighRdy;<BR>&nbsp;&nbsp;&nbsp; SP = 
      OSTCBHighRdy-&gt;OSTCBStkPtr;<BR>&nbsp;&nbsp;&nbsp; Restore ALL 
      registers;<BR>&nbsp;&nbsp;&nbsp; Return from Interrupt;</SPAN></P>
      <P>In assembly language for the 80x86 (Large model), this becomes:</P>
      <P class=codewiew>_MyISR PROC FAR<BR>;<BR>&nbsp;&nbsp;&nbsp; 
      PUSHA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      ; Save interrupted task's context<BR>&nbsp;&nbsp;&nbsp; PUSH 
      ES<BR>&nbsp;&nbsp;&nbsp; PUSH DS<BR>;<BR>&nbsp;&nbsp;&nbsp; MOV AX, 
      SEG(_OSIntNesting)&nbsp;&nbsp;&nbsp;&nbsp; ; Reload 
      DS<BR>&nbsp;&nbsp;&nbsp; MOV DS, AX<BR>&nbsp;&nbsp;&nbsp; INC BYTE PTR 
      _OSIntNesting&nbsp;&nbsp;&nbsp;&nbsp; ; Notify uC/OS-II of 
      ISR<BR>;<BR>&nbsp;&nbsp;&nbsp; LES BX, DWORD PTR DS:_OSTCBCur ; 
      OSTCBCur-&gt;OSTCBStkPtr = SS:SP<BR>&nbsp;&nbsp;&nbsp; MOV ES:[BX+2], 
      SS<BR>&nbsp;&nbsp;&nbsp; MOV ES:[BX+0], SP<BR>&nbsp;&nbsp;&nbsp; CALL FAR 
      PTR _MyISRHandler&nbsp;&nbsp;&nbsp;&nbsp; ; Process the 
      Interrupt<BR>;<BR>&nbsp;&nbsp;&nbsp; CALL FAR PTR 
      _OSIntExit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; Notify uC/OS-II of 
      end of ISR<BR>;<BR>&nbsp;&nbsp;&nbsp; POP 
      DS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      ; Restore interrupted task's context<BR>&nbsp;&nbsp;&nbsp; POP 
      ES<BR>&nbsp;&nbsp;&nbsp; POPA<BR>;<BR>&nbsp;&nbsp;&nbsp; 
      IRET&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      ; Return to interrupted task<BR>;<BR>_MyISR ENDP<BR>&nbsp;<BR>_OSIntCtxSw 
      PROC FAR<BR>;<BR>&nbsp;&nbsp;&nbsp; CALL FAR PTR 
      _OSTaskSwHook&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; Call user defined task 
      switch hook<BR>;<BR>&nbsp;&nbsp;&nbsp; MOV AX, WORD PTR DS:_OSTCBHighRdy+2 
      ; OSTCBCur = OSTCBHighRdy<BR>&nbsp;&nbsp;&nbsp; MOV DX, WORD PTR 
      DS:_OSTCBHighRdy <BR>&nbsp;&nbsp;&nbsp; MOV WORD PTR DS:_OSTCBCur+2, 
      AX<BR>&nbsp;&nbsp;&nbsp; MOV WORD PTR DS:_OSTCBCur, DX 
      <BR>;<BR>&nbsp;&nbsp;&nbsp; MOV AL, BYTE PTR DS:_OSPrioHighRdy ; OSPrioCur 
      = OSPrioHighRdy<BR>&nbsp;&nbsp;&nbsp; MOV BYTE PTR DS:_OSPrioCur, 
      AL<BR>;<BR>&nbsp;&nbsp;&nbsp; LES BX, DWORD PTR DS:_OSTCBHighRdy ; SS:SP = 
      OSTCBHighRdy-&gt;OSTCBStkPtr<BR>&nbsp;&nbsp;&nbsp; MOV SS, 
      ES:[BX+2]<BR>&nbsp;&nbsp;&nbsp; MOV SP, ES:[BX]<BR>;<BR>&nbsp;&nbsp;&nbsp; 
      POP 
      DS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      ; Load new task's context<BR>&nbsp;&nbsp;&nbsp; POP 
      ES<BR>&nbsp;&nbsp;&nbsp; POPA<BR>;<BR>&nbsp;&nbsp;&nbsp; 
      IRET&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      ; Return to new task<BR>;<BR>_OSIntCtxSw ENDP</P>
      <P class=codewiew></P>
      <P></P>
      <P><A href="http://ucos-ii.com/contents/support/faqs.html#top"><IMG 
      height=18 alt="Back to top" src="faqs.files/backtotop.gif" width=84 
      border=0 name=top></A><BR>&nbsp;</P>
      <P>&nbsp;</P>
      <P>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
3751色影院一区二区三区| 国产一区二区中文字幕| 亚洲国产精品高清| 日韩免费电影一区| 56国语精品自产拍在线观看| 欧洲亚洲精品在线| 欧美这里有精品| 91福利在线免费观看| 在线看不卡av| 欧美三级资源在线| 91精品国产一区二区三区蜜臀 | 日本不卡一区二区| 午夜精品免费在线观看| 五月婷婷综合网| 日本欧美加勒比视频| 日本午夜一区二区| 免费成人性网站| 美脚の诱脚舐め脚责91| 狠狠网亚洲精品| 成人高清视频在线| 色综合久久综合网97色综合| 欧美精品一二三区| 久久久综合精品| 中文字幕日韩欧美一区二区三区| 中文字幕一区二区5566日韩| 亚洲制服丝袜在线| 另类小说综合欧美亚洲| 国产成人一级电影| 欧美中文字幕一二三区视频| 欧美一区二区三区在线看| 久久久91精品国产一区二区精品| 国产精品乱人伦| 五月天激情综合| 国产麻豆精品theporn| 91片黄在线观看| 日韩三级精品电影久久久| 国产日产欧产精品推荐色| 亚洲欧美aⅴ...| 日韩电影在线观看一区| 国产成人精品免费视频网站| 欧美三级电影一区| 国产人妖乱国产精品人妖| 亚洲观看高清完整版在线观看| 麻豆一区二区在线| 色伊人久久综合中文字幕| 精品国产百合女同互慰| 一个色综合av| 成人一区二区三区视频在线观看| 欧美老女人在线| 中文字幕一区二区三区在线不卡| 蜜乳av一区二区| 欧美在线视频你懂得| 国产精品免费丝袜| 久久99国产精品尤物| 精品视频一区三区九区| 国产精品国产三级国产aⅴ中文 | 91精品国产高清一区二区三区| 国产精品色呦呦| 久久99精品一区二区三区| 欧美午夜免费电影| 亚洲婷婷综合色高清在线| 国产精品一区二区三区四区| 91精品国产免费| 日韩极品在线观看| 欧美日韩免费观看一区三区| 亚洲色图欧洲色图婷婷| 成人一区二区三区中文字幕| 久久综合九色欧美综合狠狠| 免费人成在线不卡| 日韩一区二区三区在线观看| 亚洲超碰精品一区二区| 在线观看日韩av先锋影音电影院| 亚洲色图在线播放| 色8久久人人97超碰香蕉987| 亚洲欧美色图小说| 一道本成人在线| 一区二区三区在线影院| 色网站国产精品| 亚洲一区在线视频| 欧美性猛片xxxx免费看久爱| 亚洲综合图片区| 欧美亚洲一区二区在线观看| 亚洲综合在线免费观看| 欧美亚洲综合另类| 日韩电影免费在线观看网站| 欧美一级久久久| 国产精品一区在线| 中文欧美字幕免费| 91成人在线免费观看| 亚洲国产三级在线| 日韩欧美www| 国产在线精品免费| 中文字幕第一页久久| 成人毛片在线观看| 一区二区中文视频| 欧美三区在线观看| 麻豆精品国产传媒mv男同 | 久久久久久久综合色一本| 国产一区二区三区四区五区入口 | www.亚洲激情.com| 亚洲另类色综合网站| 7777精品伊人久久久大香线蕉的| 美国三级日本三级久久99| 国产亚洲婷婷免费| 色老汉一区二区三区| 人人爽香蕉精品| 国产精品黄色在线观看| 欧美视频中文字幕| 国产在线国偷精品产拍免费yy| 中文字幕永久在线不卡| 欧美人妇做爰xxxⅹ性高电影| 黑人巨大精品欧美一区| 亚洲免费毛片网站| 久久久噜噜噜久噜久久综合| 色欧美日韩亚洲| 九九**精品视频免费播放| 亚洲摸摸操操av| 久久综合色鬼综合色| 欧美性猛交xxxxxxxx| 国产99久久久国产精品潘金| 亚洲大型综合色站| 国产精品入口麻豆原神| 日韩三级视频在线观看| 在线观看亚洲一区| 国产成人精品免费视频网站| 奇米影视7777精品一区二区| 亚洲美女屁股眼交| 久久精品视频在线看| 欧美一区二区三区在| 91激情五月电影| 成人精品在线视频观看| 极品少妇一区二区三区精品视频| 亚洲制服丝袜在线| 亚洲日本成人在线观看| 日本一区二区电影| 久久影院午夜论| 日韩欧美在线观看一区二区三区| 色av成人天堂桃色av| 成人免费视频播放| 国产成人综合视频| 狠狠色综合播放一区二区| 五月综合激情网| 亚洲成av人片www| 一个色综合网站| 一个色综合av| 亚洲综合丁香婷婷六月香| 亚洲欧洲在线观看av| 国产精品色呦呦| 国产清纯美女被跳蛋高潮一区二区久久w| 51午夜精品国产| 欧美一区国产二区| 在线播放欧美女士性生活| 欧美亚洲自拍偷拍| 欧美日韩高清一区二区不卡| 欧美在线高清视频| 在线精品视频小说1| 欧美性做爰猛烈叫床潮| 欧美日韩免费观看一区三区| 欧美日韩在线播| 欧美日韩国产一二三| 91精品国产欧美一区二区| 3atv在线一区二区三区| 日韩免费观看高清完整版| 日韩你懂的在线播放| 久久综合成人精品亚洲另类欧美| 欧美精品一区二区精品网| 久久夜色精品国产欧美乱极品| 精品不卡在线视频| 国产精品每日更新在线播放网址| √…a在线天堂一区| 一区二区成人在线| 毛片av一区二区三区| 国产电影一区在线| 色综合久久综合网97色综合| 精品视频一区二区不卡| 欧美videofree性高清杂交| 久久久精品人体av艺术| 亚洲色欲色欲www在线观看| 婷婷综合另类小说色区| 九九国产精品视频| 97久久精品人人澡人人爽| 欧美日本在线观看| 久久久99久久| 亚洲一区二区三区三| 极品少妇xxxx精品少妇偷拍| 9l国产精品久久久久麻豆| 欧美视频一区二区在线观看| 久久综合九色综合97婷婷女人| 国产精品的网站| 蜜芽一区二区三区| 色域天天综合网| 精品国产一区二区三区久久久蜜月 | 亚洲一级二级三级| 精品一区二区三区免费观看| 91麻豆自制传媒国产之光| 欧美videos中文字幕| 亚洲电影你懂得| 成人一道本在线| 精品美女一区二区| 一区二区高清视频在线观看|