{"id":101985,"date":"2026-09-08T00:49:01","date_gmt":"2026-09-07T16:49:01","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/101985.html"},"modified":"2026-09-08T00:49:01","modified_gmt":"2026-09-07T16:49:01","slug":"hrtos_interruptnesting%ef%bc%9a%e4%b8%ad%e6%96%ad%e6%89%93%e6%96%ad%e5%86%85%e6%a0%b8%e8%bf%90%e8%a1%8c%e6%b5%8b%e8%af%95","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/101985.html","title":{"rendered":"HRTOS_InterruptNesting\uff1a\u4e2d\u65ad\u6253\u65ad\u5185\u6838\u8fd0\u884c\u6d4b\u8bd5"},"content":{"rendered":"<h2>1. \u5b9e\u9a8c\u76ee\u7684<\/h2>\n<p>\u5728\u5b9e\u65f6\u64cd\u4f5c\u7cfb\u7edf\u4e2d&#xff0c;\u4e2d\u65ad\u5e76\u4e0d\u662f\u53ea\u53d1\u751f\u5728\u666e\u901a\u5e94\u7528\u4efb\u52a1\u8fd0\u884c\u671f\u95f4\u3002<\/p>\n<p>\u5bf9\u4e8e\u4e00\u4e2a\u5b8c\u6574\u7684\u5b9e\u65f6\u7cfb\u7edf\u6765\u8bf4&#xff0c;\u4e2d\u65ad\u53ef\u80fd\u5728\u7cfb\u7edf\u8fd0\u884c\u7684\u4efb\u610f\u65f6\u523b\u5230\u6765&#xff0c;\u5305\u62ec&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u666e\u901a\u4efb\u52a1\u8fd0\u884c\u671f\u95f4&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u4efb\u52a1\u5207\u6362\u8fc7\u7a0b\u4e2d&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u7cfb\u7edf\u8c03\u5ea6\u8fc7\u7a0b\u4e2d&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u5185\u6838\u6267\u884c\u5173\u952e\u64cd\u4f5c\u671f\u95f4\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u56e0\u6b64&#xff0c;\u4e00\u4e2a\u5b9e\u65f6\u64cd\u4f5c\u7cfb\u7edf\u9664\u4e86\u9700\u8981\u9a8c\u8bc1\u666e\u901a\u4efb\u52a1\u4e4b\u95f4\u7684\u8c03\u5ea6\u662f\u5426\u6b63\u786e&#xff0c;\u8fd8\u9700\u8981\u8fdb\u4e00\u6b65\u9a8c\u8bc1&#xff1a;<\/p>\n<p>\u5f53 CPU \u6b63\u5904\u4e8e HRTOS \u5185\u6838\u6267\u884c\u8fc7\u7a0b\u4e2d\u65f6&#xff0c;\u5982\u679c\u786c\u4ef6\u4e2d\u65ad\u5230\u6765&#xff0c;\u7cfb\u7edf\u80fd\u5426\u6b63\u786e\u54cd\u5e94\u4e2d\u65ad&#xff0c;\u5e76\u5728\u4e2d\u65ad\u5904\u7406\u5b8c\u6210\u540e\u6062\u590d\u539f\u6709\u6267\u884c\u6d41\u7a0b\u3002<\/p>\n<p>\u672c\u5b9e\u9a8c\u6b63\u662f\u9488\u5bf9\u8fd9\u4e00\u95ee\u9898\u8bbe\u8ba1\u7684\u3002<\/p>\n<p>\u901a\u8fc7 Timer1 \u5468\u671f\u6027\u4ea7\u751f\u4e2d\u65ad&#xff0c;\u540c\u65f6\u521b\u5efa\u666e\u901a\u4efb\u52a1\u3001\u4e2d\u65ad\u4efb\u52a1\u4ee5\u53ca\u5d4c\u5957\u4e2d\u65ad\u4efb\u52a1&#xff0c;\u5bf9 HRTOS \u7684\u4e2d\u65ad\u6253\u65ad\u5185\u6838\u8fd0\u884c\u80fd\u529b\u8fdb\u884c\u6d4b\u8bd5\u3002<\/p>\n<hr \/>\n<h2>2. \u6d4b\u8bd5\u7cfb\u7edf\u7ed3\u6784<\/h2>\n<p>\u672c\u5b9e\u9a8c\u5305\u542b\u4e09\u4e2a\u5c42\u6b21\u7684\u8fd0\u884c\u5bf9\u8c61&#xff1a;<\/p>\n<p>\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n\u2502       HRTOS \u5185\u6838\u8fd0\u884c         \u2502<br \/>\n\u2502                             \u2502<br \/>\n\u2502  \u8c03\u5ea6 \/ \u4efb\u52a1\u5207\u6362 \/ \u5185\u6838\u5904\u7406   \u2502<br \/>\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<br \/>\n               \u2502<br \/>\n               \u2502 \u786c\u4ef6\u4e2d\u65ad\u5230\u6765<br \/>\n               \u25bc<br \/>\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n\u2502        T1 \u4e2d\u65ad\u5904\u7406           \u2502<br \/>\n\u2502        \u4f18\u5148\u7ea7 9              \u2502<br \/>\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<br \/>\n               \u2502<br \/>\n               \u2502 \u66f4\u9ad8\u4f18\u5148\u7ea7\u4e2d\u65ad<br \/>\n               \u25bc<br \/>\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n\u2502       T1 \u5d4c\u5957\u4e2d\u65ad\u5c42          \u2502<br \/>\n\u2502        \u4f18\u5148\u7ea7 10             \u2502<br \/>\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/p>\n<p>\u4e0e\u6b64\u540c\u65f6&#xff0c;\u7cfb\u7edf\u8fd8\u8fd0\u884c\u4e24\u4e2a\u666e\u901a\u4efb\u52a1&#xff1a;<\/p>\n<p>TASK_A   Priority 4<br \/>\nTASK_B   Priority 4<\/p>\n<p>\u56e0\u6b64\u6574\u4e2a\u5b9e\u9a8c\u540c\u65f6\u5305\u542b&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u666e\u901a\u4efb\u52a1\u8fd0\u884c&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u540c\u4f18\u5148\u7ea7\u4efb\u52a1\u8c03\u5ea6&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u786c\u4ef6 Timer1 \u4e2d\u65ad&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u4e2d\u65ad\u6253\u65ad\u5185\u6838&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u4e2d\u65ad\u4f18\u5148\u7ea7&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u4e2d\u65ad\u5d4c\u5957&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u4e2d\u65ad\u9000\u51fa\u540e\u7684\u7cfb\u7edf\u6062\u590d\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u8fd9\u4f7f\u5f97\u5b83\u5e76\u4e0d\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u201cLED \u4e2d\u65ad\u5b9e\u9a8c\u201d&#xff0c;\u800c\u662f\u4e00\u4e2a\u9488\u5bf9 HRTOS \u5185\u6838\u4e0e\u4e2d\u65ad\u534f\u540c\u5de5\u4f5c\u80fd\u529b \u7684\u6d4b\u8bd5\u7a0b\u5e8f\u3002<\/p>\n<hr \/>\n<h2>3. \u666e\u901a\u4efb\u52a1<\/h2>\n<p>\u5b9e\u9a8c\u9996\u5148\u521b\u5efa\u4e24\u4e2a\u666e\u901a\u4efb\u52a1&#xff1a;<\/p>\n<p>#define TASK_A        1<br \/>\n#define TASK_B        2<\/p>\n<p>#define PRIO_TASK     4<\/p>\n<p>\u4e24\u4e2a\u4efb\u52a1\u5177\u6709\u76f8\u540c\u7684\u4f18\u5148\u7ea7\u3002<\/p>\n<p>\u4efb\u52a1 A&#xff1a;<\/p>\n<p>static void task_a(void)<br \/>\n{<br \/>\n    LED_A &#061; 1;<\/p>\n<p>    while (1)<br \/>\n    {<br \/>\n        count_a&#043;&#043;;<\/p>\n<p>        LED_A &#061; ~LED_A;<\/p>\n<p>        os_delay(TICK_TASK);<br \/>\n    }<br \/>\n}<\/p>\n<p>\u4efb\u52a1 B&#xff1a;<\/p>\n<p>static void task_b(void)<br \/>\n{<br \/>\n    LED_B &#061; 1;<\/p>\n<p>    while (1)<br \/>\n    {<br \/>\n        count_b&#043;&#043;;<\/p>\n<p>        LED_B &#061; ~LED_B;<\/p>\n<p>        os_delay(TICK_TASK);<br \/>\n    }<br \/>\n}<\/p>\n<p>\u4e24\u4e2a\u4efb\u52a1\u5206\u522b\u5b8c\u6210&#xff1a;<\/p>\n<p>\u4efb\u52a1\u8fd0\u884c<br \/>\n  \u2193<br \/>\n\u8ba1\u6570\u5668\u589e\u52a0<br \/>\n  \u2193<br \/>\nLED \u7ffb\u8f6c<br \/>\n  \u2193<br \/>\n\u5ef6\u65f6 20<br \/>\n  \u2193<br \/>\n\u91cd\u65b0\u8fdb\u5165\u8c03\u5ea6<\/p>\n<p>\u5b83\u4eec\u7684\u4f5c\u7528\u5e76\u4e0d\u662f\u672c\u5b9e\u9a8c\u7684\u91cd\u70b9&#xff0c;\u800c\u662f\u63d0\u4f9b\u4e00\u4e2a\u6301\u7eed\u8fd0\u884c\u7684 HRTOS \u5e94\u7528\u73af\u5883\u3002<\/p>\n<p>\u8fd9\u6837 Timer1 \u4e2d\u65ad\u53d1\u751f\u65f6&#xff0c;\u7cfb\u7edf\u5e76\u4e0d\u662f\u505c\u7559\u5728\u4e00\u4e2a\u7b80\u5355\u7684\u88f8\u673a while(1) \u4e2d&#xff0c;\u800c\u662f\u5728\u771f\u5b9e\u7684\u4efb\u52a1\u8c03\u5ea6\u73af\u5883\u4e2d\u8fd0\u884c\u3002<\/p>\n<hr \/>\n<h2>4. Timer1 \u521d\u59cb\u5316<\/h2>\n<p>Timer1 \u914d\u7f6e\u4ee3\u7801\u5982\u4e0b&#xff1a;<\/p>\n<p>void Timer1_Init(void)<br \/>\n{<br \/>\n    TMOD &amp;&#061; 0x0F;<br \/>\n    TMOD |&#061; 0x10;     \/\/ T1\u6a21\u5f0f1<\/p>\n<p>    TH1 &#061; 0xFC;<br \/>\n    TL1 &#061; 0x18;       \/\/ 12MHz 1ms<\/p>\n<p>    TF1 &#061; 0;<br \/>\n    ET1 &#061; 1;<br \/>\n    PT1 &#061; 1;          \/\/ T1\u9ad8\u4f18\u5148\u7ea7<br \/>\n    TR1 &#061; 1;<br \/>\n}<\/p>\n<p>\u8fd9\u91cc\u4f7f\u7528 Timer1 \u6a21\u5f0f 1\u3002<\/p>\n<p>\u5728 12MHz \u65f6\u949f\u6761\u4ef6\u4e0b&#xff0c;\u901a\u8fc7&#xff1a;<\/p>\n<p>TH1 &#061; 0xFC;<br \/>\nTL1 &#061; 0x18;<\/p>\n<p>\u8bbe\u7f6e\u5b9a\u65f6\u5668\u521d\u503c&#xff0c;\u4f7f Timer1 \u5468\u671f\u6027\u4ea7\u751f\u4e2d\u65ad\u3002<\/p>\n<p>\u540c\u65f6&#xff1a;<\/p>\n<p>ET1 &#061; 1;<\/p>\n<p>\u6253\u5f00 Timer1 \u4e2d\u65ad\u3002<\/p>\n<p>\u800c&#xff1a;<\/p>\n<p>PT1 &#061; 1;<\/p>\n<p>\u5c06 Timer1 \u8bbe\u7f6e\u4e3a\u8f83\u9ad8\u7684\u786c\u4ef6\u4e2d\u65ad\u4f18\u5148\u7ea7\u3002<\/p>\n<p>\u6700\u540e&#xff1a;<\/p>\n<p>TR1 &#061; 1;<\/p>\n<p>\u542f\u52a8 Timer1\u3002<\/p>\n<hr \/>\n<h2>5. T1 \u4e2d\u65ad\u5904\u7406<\/h2>\n<p>T1 \u4e2d\u65ad\u5904\u7406\u51fd\u6570&#xff1a;<\/p>\n<p>static void t1_isr(void)<br \/>\n{<br \/>\n    count_t1&#043;&#043;;<\/p>\n<p>    TH1 &#061; 0xFC;<br \/>\n    TL1 &#061; 0x18;<\/p>\n<p>    \/*<br \/>\n     * T1\u8fdb\u5165\u4e2d\u65ad<br \/>\n     *\/<br \/>\n    LED_T1 &#061; ~LED_T1;<\/p>\n<p>    \/*<br \/>\n     * \u4e2d\u65ad\u5904\u7406\u5b8c\u6210<br \/>\n     *\/<br \/>\n    os_interrupt_exit();<br \/>\n}<\/p>\n<p>\u6bcf\u6b21 Timer1 \u4ea7\u751f\u4e2d\u65ad\u540e&#xff0c;\u9996\u5148&#xff1a;<\/p>\n<p>count_t1&#043;&#043;;<\/p>\n<p>\u589e\u52a0\u4e2d\u65ad\u8ba1\u6570\u3002<\/p>\n<p>\u7136\u540e\u91cd\u65b0\u88c5\u8f7d\u5b9a\u65f6\u5668&#xff1a;<\/p>\n<p>TH1 &#061; 0xFC;<br \/>\nTL1 &#061; 0x18;<\/p>\n<p>\u4e4b\u540e\u7ffb\u8f6c&#xff1a;<\/p>\n<p>LED_T1 &#061; ~LED_T1;<\/p>\n<p>\u901a\u8fc7 LED \u53ef\u4ee5\u76f4\u89c2\u770b\u5230 Timer1 \u4e2d\u65ad\u662f\u5426\u6301\u7eed\u8fdb\u5165\u3002<\/p>\n<p>\u6700\u540e\u8c03\u7528&#xff1a;<\/p>\n<p>os_interrupt_exit();<\/p>\n<p>\u901a\u77e5 HRTOS&#xff1a;<\/p>\n<p>\u5f53\u524d\u4e2d\u65ad\u5904\u7406\u5df2\u7ecf\u5b8c\u6210&#xff0c;\u53ef\u4ee5\u9000\u51fa\u5f53\u524d\u4e2d\u65ad\u5904\u7406\u6d41\u7a0b\u3002<\/p>\n<p>\u56e0\u6b64&#xff0c;\u4e2d\u65ad\u5904\u7406\u7684\u57fa\u672c\u8fc7\u7a0b\u53ef\u4ee5\u8868\u793a\u4e3a&#xff1a;<\/p>\n<p>Timer1 \u5230\u671f<br \/>\n    \u2193<br \/>\n\u4ea7\u751f\u786c\u4ef6\u4e2d\u65ad<br \/>\n    \u2193<br \/>\n\u8fdb\u5165 HRTOS \u4e2d\u65ad\u5904\u7406<br \/>\n    \u2193<br \/>\n\u4fdd\u5b58\u5f53\u524d\u8fd0\u884c\u73af\u5883<br \/>\n    \u2193<br \/>\n\u6267\u884c t1_isr()<br \/>\n    \u2193<br \/>\n\u66f4\u65b0\u4e2d\u65ad\u8ba1\u6570<br \/>\n    \u2193<br \/>\n\u91cd\u65b0\u88c5\u8f7d Timer1<br \/>\n    \u2193<br \/>\n\u5904\u7406\u4e2d\u65ad<br \/>\n    \u2193<br \/>\nos_interrupt_exit()<br \/>\n    \u2193<br \/>\n\u6062\u590d\u539f\u6709\u8fd0\u884c\u73af\u5883<\/p>\n<hr \/>\n<h2>6. \u4e2d\u65ad\u4f18\u5148\u7ea7\u8bbe\u8ba1<\/h2>\n<p>\u672c\u5b9e\u9a8c\u975e\u5e38\u5173\u952e\u7684\u4e00\u90e8\u5206&#xff0c;\u662f HRTOS \u5bf9\u4e2d\u65ad\u8fd0\u884c\u5c42\u7ea7\u7684\u8bbe\u8ba1\u3002<\/p>\n<p>\u4ee3\u7801\u4e2d\u5b9a\u4e49&#xff1a;<\/p>\n<p>#define PRIO_TASK     4<br \/>\n#define PRIO_T1       9<br \/>\n#define PRIO_T1_NEST  10<\/p>\n<p>\u53ef\u4ee5\u770b\u5230&#xff1a;<\/p>\n<p>Priority 10   T1 \u5d4c\u5957\u4e2d\u65ad<br \/>\n     \u2191<br \/>\nPriority 9    T1 \u666e\u901a\u4e2d\u65ad<br \/>\n     \u2191<br \/>\nPriority 4    \u666e\u901a\u4efb\u52a1<\/p>\n<p>\u56e0\u6b64 HRTOS \u7684\u8fd0\u884c\u5c42\u7ea7\u53ef\u4ee5\u7406\u89e3\u4e3a&#xff1a;<\/p>\n<p>\u666e\u901a\u4efb\u52a1<br \/>\n   \u2193<br \/>\n\u666e\u901a\u4e2d\u65ad<br \/>\n   \u2193<br \/>\n\u5d4c\u5957\u4e2d\u65ad<\/p>\n<p>\u8fd9\u91cc\u4f53\u73b0\u7684\u662f\u4e00\u79cd\u975e\u5e38\u660e\u786e\u7684\u5b9e\u65f6\u4f18\u5148\u7ea7\u5c42\u6b21\u3002<\/p>\n<p>\u666e\u901a\u4efb\u52a1\u5904\u4e8e\u8f83\u4f4e\u4f18\u5148\u7ea7\u3002<\/p>\n<p>Timer1 \u4e2d\u65ad\u5904\u4e8e\u66f4\u9ad8\u7684\u4e2d\u65ad\u4f18\u5148\u7ea7\u3002<\/p>\n<p>\u800c\u5d4c\u5957\u4e2d\u65ad\u53c8\u5904\u4e8e\u66f4\u9ad8\u4e00\u7ea7\u3002<\/p>\n<hr \/>\n<h2>7. \u4ec0\u4e48\u53eb\u201c\u4e2d\u65ad\u6253\u65ad\u5185\u6838\u201d&#xff1f;<\/h2>\n<p>\u8fd9\u662f\u672c\u5b9e\u9a8c\u6700\u6838\u5fc3\u7684\u6982\u5ff5\u3002<\/p>\n<p>\u666e\u901a\u60c5\u51b5\u4e0b&#xff0c;\u6211\u4eec\u53ef\u80fd\u53ea\u8003\u8651&#xff1a;<\/p>\n<p>\u4efb\u52a1 A<br \/>\n   \u2193<br \/>\nTimer1 \u4e2d\u65ad<br \/>\n   \u2193<br \/>\n\u8fd4\u56de\u4efb\u52a1 A<\/p>\n<p>\u8fd9\u79cd\u60c5\u51b5\u5b9e\u9645\u4e0a\u53ea\u8bf4\u660e&#xff1a;<\/p>\n<p>\u4e2d\u65ad\u53ef\u4ee5\u6253\u65ad\u5e94\u7528\u4efb\u52a1\u3002<\/p>\n<p>\u4f46\u5bf9\u4e8e\u64cd\u4f5c\u7cfb\u7edf\u6765\u8bf4&#xff0c;\u8fd9\u8fd8\u4e0d\u591f\u3002<\/p>\n<p>HRTOS \u7684 CPU \u5e76\u4e0d\u603b\u662f\u5728\u8fd0\u884c\u5e94\u7528\u4efb\u52a1\u3002<\/p>\n<p>\u4f8b\u5982\u7cfb\u7edf\u53ef\u80fd\u6b63\u5728\u6267\u884c&#xff1a;<\/p>\n<p>\u4efb\u52a1\u5207\u6362<br \/>\n   \u2193<br \/>\n\u4fdd\u5b58\u4efb\u52a1\u4e0a\u4e0b\u6587<br \/>\n   \u2193<br \/>\n\u9009\u62e9\u4e0b\u4e00\u4e2a\u4efb\u52a1<br \/>\n   \u2193<br \/>\n\u6062\u590d\u4efb\u52a1\u4e0a\u4e0b\u6587<\/p>\n<p>\u8fd9\u4e9b\u64cd\u4f5c\u5c5e\u4e8e\u5185\u6838\u8fd0\u884c\u8fc7\u7a0b\u3002<\/p>\n<p>\u6b64\u65f6\u5982\u679c Timer1 \u4e2d\u65ad\u5230\u6765&#xff0c;\u5c31\u4f1a\u5f62\u6210&#xff1a;<\/p>\n<p>HRTOS \u5185\u6838<br \/>\n    \u2193<br \/>\n\u6b63\u5728\u6267\u884c\u5185\u6838\u4ee3\u7801<br \/>\n    \u2193<br \/>\nTimer1 \u4e2d\u65ad\u5230\u6765<br \/>\n    \u2193<br \/>\n\u4e2d\u65ad\u6253\u65ad\u5185\u6838<br \/>\n    \u2193<br \/>\n\u6267\u884c\u4e2d\u65ad\u5904\u7406<br \/>\n    \u2193<br \/>\n\u4e2d\u65ad\u9000\u51fa<br \/>\n    \u2193<br \/>\n\u6062\u590d\u88ab\u6253\u65ad\u7684\u5185\u6838\u8fd0\u884c<br \/>\n    \u2193<br \/>\n\u7ee7\u7eed\u5b8c\u6210\u539f\u6765\u7684\u5185\u6838\u64cd\u4f5c<\/p>\n<p>\u8fd9\u624d\u662f\u672c\u5b9e\u9a8c\u771f\u6b63\u60f3\u9a8c\u8bc1\u7684\u5185\u5bb9\u3002<\/p>\n<hr \/>\n<h2>8. \u4e3a\u4ec0\u4e48\u8fd9\u4e2a\u6d4b\u8bd5\u5f88\u91cd\u8981&#xff1f;<\/h2>\n<p>\u56e0\u4e3a\u5185\u6838\u4ee3\u7801\u4e0e\u666e\u901a\u5e94\u7528\u4ee3\u7801\u5b58\u5728\u4e00\u4e2a\u91cd\u8981\u533a\u522b&#xff1a;<\/p>\n<p>\u5185\u6838\u4ee3\u7801\u5f80\u5f80\u76f4\u63a5\u64cd\u4f5c\u4efb\u52a1\u4e0a\u4e0b\u6587\u3001\u8c03\u5ea6\u72b6\u6001\u4ee5\u53ca CPU \u5bc4\u5b58\u5668\u73af\u5883\u3002<\/p>\n<p>\u5982\u679c\u4e2d\u65ad\u5728\u4e0d\u5408\u9002\u7684\u65f6\u523b\u8fdb\u5165&#xff0c;\u800c\u7cfb\u7edf\u6ca1\u6709\u6b63\u786e\u4fdd\u5b58\u548c\u6062\u590d\u73b0\u573a&#xff0c;\u5c31\u53ef\u80fd\u4ea7\u751f\u975e\u5e38\u4e25\u91cd\u7684\u95ee\u9898\u3002<\/p>\n<p>\u4f8b\u5982&#xff1a;<\/p>\n<p>\u5185\u6838\u6b63\u5728\u5207\u6362\u4efb\u52a1<br \/>\n       \u2193<br \/>\n\u4e2d\u65ad\u7a81\u7136\u8fdb\u5165<br \/>\n       \u2193<br \/>\n\u4fee\u6539 CPU \u4e0a\u4e0b\u6587<br \/>\n       \u2193<br \/>\n\u4e2d\u65ad\u8fd4\u56de<br \/>\n       \u2193<br \/>\n\u539f\u6765\u7684\u4e0a\u4e0b\u6587\u6062\u590d\u9519\u8bef<br \/>\n       \u2193<br \/>\n\u4efb\u52a1\u5f02\u5e38<\/p>\n<p>\u4e25\u91cd\u60c5\u51b5\u4e0b\u53ef\u80fd\u8868\u73b0\u4e3a&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u7a0b\u5e8f\u8dd1\u98de&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u4efb\u52a1\u65e0\u6cd5\u7ee7\u7eed\u8fd0\u884c&#xff1b;<\/p>\n<\/li>\n<li>\n<p>LED \u505c\u6b62\u53d8\u5316&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u7cfb\u7edf\u8fdb\u5165\u5f02\u5e38\u72b6\u6001&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u6808\u6570\u636e\u7834\u574f&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u957f\u65f6\u95f4\u8fd0\u884c\u540e\u51fa\u73b0\u968f\u673a\u9519\u8bef\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u56e0\u6b64&#xff0c;\u4e2d\u65ad\u6253\u65ad\u5185\u6838\u4e4b\u540e\u8fd8\u80fd\u5426\u6b63\u786e\u6062\u590d&#xff0c;\u662f\u5224\u65ad\u5b9e\u65f6\u5185\u6838\u53ef\u9760\u6027\u7684\u91cd\u8981\u6d4b\u8bd5\u4e4b\u4e00\u3002<\/p>\n<hr \/>\n<h2>9. HRTOS \u4e2d\u65ad\u5d4c\u5957\u6d4b\u8bd5<\/h2>\n<p>\u7cfb\u7edf\u5165\u53e3\u4e2d\u521b\u5efa\u4e86\u4e24\u4e2a\u4e2d\u65ad\u8fd0\u884c\u5c42&#xff1a;<\/p>\n<p>os_task_create((unsigned int)t1_isr, TASK_T1, PRIO_T1, STACK_T1);<\/p>\n<p>\u4ee5\u53ca&#xff1a;<\/p>\n<p>os_task_create((unsigned int)t1_isr, TASK_T1, PRIO_T1_NEST, STACK_T1);<\/p>\n<p>\u5bf9\u5e94&#xff1a;<\/p>\n<p>T1 \u666e\u901a\u4e2d\u65ad\u4efb\u52a1<br \/>\nPriority 9<\/p>\n<p>T1 \u5d4c\u5957\u4e2d\u65ad\u4efb\u52a1<br \/>\nPriority 10<\/p>\n<p>\u8fd9\u610f\u5473\u7740 HRTOS \u4e0d\u53ea\u662f\u6d4b\u8bd5\u666e\u901a\u4e2d\u65ad&#xff0c;\u8fd8\u8fdb\u4e00\u6b65\u5efa\u7acb\u4e86\u66f4\u9ad8\u4f18\u5148\u7ea7\u7684\u5d4c\u5957\u4e2d\u65ad\u8fd0\u884c\u5c42\u3002<\/p>\n<p>\u56e0\u6b64\u6d4b\u8bd5\u8986\u76d6\u7684\u8303\u56f4\u8fdb\u4e00\u6b65\u6269\u5927&#xff1a;<\/p>\n<p>\u666e\u901a\u4efb\u52a1<br \/>\n   \u2193<br \/>\n\u4e2d\u65ad<br \/>\n   \u2193<br \/>\n\u66f4\u9ad8\u4f18\u5148\u7ea7\u4e2d\u65ad<\/p>\n<p>\u5982\u679c\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\u7cfb\u7edf\u4ecd\u7136\u80fd\u591f\u6301\u7eed\u8fd0\u884c&#xff0c;\u5c31\u53ef\u4ee5\u8fdb\u4e00\u6b65\u9a8c\u8bc1\u4e2d\u65ad\u4e0a\u4e0b\u6587\u7ba1\u7406\u548c\u5d4c\u5957\u5904\u7406\u80fd\u529b\u3002<\/p>\n<hr \/>\n<h2>10. \u4e2d\u65ad\u9000\u51fa\u4e3a\u4ec0\u4e48\u9700\u8981\u4e13\u95e8\u7684 API&#xff1f;<\/h2>\n<p>\u672c\u5b9e\u9a8c\u4f7f\u7528&#xff1a;<\/p>\n<p>os_interrupt_exit();<\/p>\n<p>\u800c\u4e0d\u662f\u7b80\u5355\u5730\u4ece\u4e2d\u65ad\u51fd\u6570\u8fd4\u56de\u3002<\/p>\n<p>\u8fd9\u662f\u56e0\u4e3a\u5bf9\u4e8e HRTOS \u6765\u8bf4&#xff0c;\u4e2d\u65ad\u4e0d\u4ec5\u4ec5\u662f\u666e\u901a C \u51fd\u6570\u8c03\u7528\u3002<\/p>\n<p>\u8fdb\u5165\u4e2d\u65ad\u4ee5\u540e&#xff0c;\u7cfb\u7edf\u53ef\u80fd\u6d89\u53ca&#xff1a;<\/p>\n<ul>\n<li>\n<p>CPU \u4e0a\u4e0b\u6587&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u5f53\u524d\u4efb\u52a1\u72b6\u6001&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u4e2d\u65ad\u5c42\u7ea7&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u8c03\u5ea6\u72b6\u6001&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u4e2d\u65ad\u5d4c\u5957\u72b6\u6001&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u4e2d\u65ad\u8fd4\u56de\u540e\u7684\u4efb\u52a1\u6062\u590d\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u56e0\u6b64&#xff0c;\u4e2d\u65ad\u5904\u7406\u5b8c\u6210\u4ee5\u540e&#xff0c;\u9700\u8981\u901a\u8fc7 HRTOS \u63d0\u4f9b\u7684\u4e2d\u65ad\u9000\u51fa\u673a\u5236\u5b8c\u6210\u5bf9\u5e94\u7684\u7cfb\u7edf\u5904\u7406\u3002<\/p>\n<p>\u672c\u5b9e\u9a8c\u4e2d&#xff1a;<\/p>\n<p>os_interrupt_exit();<\/p>\n<p>\u5c31\u662f\u6574\u4e2a\u4e2d\u65ad\u5904\u7406\u6d41\u7a0b\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\u3002<\/p>\n<p>\u56e0\u6b64\u4e0d\u80fd\u7b80\u5355\u5730\u628a\u5b83\u7406\u89e3\u6210\u4e00\u4e2a\u666e\u901a\u7684\u51fd\u6570\u8c03\u7528\u3002<\/p>\n<hr \/>\n<h2>11. \u5b9e\u9a8c\u89c2\u5bdf\u65b9\u6cd5<\/h2>\n<p>\u672c\u5b9e\u9a8c\u4f7f\u7528\u4e09\u4e2a LED&#xff1a;<\/p>\n<p>sbit LED_A &#061; P1^0;<br \/>\nsbit LED_B &#061; P1^1;<br \/>\nsbit LED_T1 &#061; P1^2;<\/p>\n<p>\u5206\u522b\u5bf9\u5e94&#xff1a;<\/p>\n<p>P1.0 \u2192 \u4efb\u52a1 A<br \/>\nP1.1 \u2192 \u4efb\u52a1 B<br \/>\nP1.2 \u2192 Timer1 \u4e2d\u65ad<\/p>\n<p>\u540c\u65f6\u8fd8\u6709\u4e09\u4e2a\u8ba1\u6570\u53d8\u91cf&#xff1a;<\/p>\n<p>static u16 count_a &#061; 0;<br \/>\nstatic u16 count_b &#061; 0;<br \/>\nstatic u16 xdata count_t1 &#061; 0;<\/p>\n<p>\u5b83\u4eec\u53ef\u4ee5\u5206\u522b\u7528\u4e8e\u89c2\u5bdf&#xff1a;<\/p>\n<p>count_a  \u2192 \u4efb\u52a1 A \u662f\u5426\u6b63\u5e38\u8fd0\u884c<br \/>\ncount_b  \u2192 \u4efb\u52a1 B \u662f\u5426\u6b63\u5e38\u8fd0\u884c<br \/>\ncount_t1 \u2192 Timer1 \u4e2d\u65ad\u662f\u5426\u6301\u7eed\u8fdb\u5165<\/p>\n<p>\u56e0\u6b64&#xff0c;\u5982\u679c\u7cfb\u7edf\u957f\u65f6\u95f4\u8fd0\u884c\u540e&#xff1a;<\/p>\n<ul>\n<li>\n<p>A LED \u6b63\u5e38\u53d8\u5316&#xff1b;<\/p>\n<\/li>\n<li>\n<p>B LED \u6b63\u5e38\u53d8\u5316&#xff1b;<\/p>\n<\/li>\n<li>\n<p>T1 LED \u6301\u7eed\u53d8\u5316&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u4e09\u4e2a\u8ba1\u6570\u5668\u6301\u7eed\u589e\u957f&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u7cfb\u7edf\u6ca1\u6709\u8dd1\u98de&#xff1b;<\/p>\n<\/li>\n<\/ul>\n<p>\u90a3\u4e48\u5c31\u8bf4\u660e\u5728\u6d4b\u8bd5\u6761\u4ef6\u4e0b&#xff0c;\u4e2d\u65ad\u4e0e HRTOS \u4efb\u52a1\u8fd0\u884c\u4e4b\u95f4\u80fd\u591f\u6301\u7eed\u534f\u540c\u5de5\u4f5c\u3002<\/p>\n<hr \/>\n<h2>12. \u4e0e\u666e\u901a\u88f8\u673a\u4e2d\u65ad\u5b9e\u9a8c\u7684\u533a\u522b<\/h2>\n<p>\u4f20\u7edf 8051 \u88f8\u673a\u4e2d\u65ad\u6d4b\u8bd5\u901a\u5e38\u662f&#xff1a;<\/p>\n<p>while (1)<br \/>\n{<br \/>\n    \/\/ \u4e3b\u5faa\u73af<br \/>\n}<\/p>\n<p>\u7136\u540e&#xff1a;<\/p>\n<p>Timer1 \u4e2d\u65ad<br \/>\n      \u2193<br \/>\n\u6267\u884c ISR<br \/>\n      \u2193<br \/>\n\u8fd4\u56de\u4e3b\u5faa\u73af<\/p>\n<p>\u8fd9\u79cd\u5b9e\u9a8c\u4e3b\u8981\u9a8c\u8bc1&#xff1a;<\/p>\n<p>8051 \u786c\u4ef6\u4e2d\u65ad\u80fd\u5426\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n<p>\u800c HRTOS \u7684\u6d4b\u8bd5\u73af\u5883\u5219\u590d\u6742\u5f97\u591a&#xff1a;<\/p>\n<p>             HRTOS \u5185\u6838<br \/>\n                 \u2502<br \/>\n        \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n        \u2502                 \u2502<br \/>\n     \u4efb\u52a1 A             \u4efb\u52a1 B<br \/>\n        \u2502                 \u2502<br \/>\n        \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<br \/>\n                 \u2502<br \/>\n             Timer1<br \/>\n                 \u2502<br \/>\n                 \u25bc<br \/>\n             \u4e2d\u65ad\u5904\u7406<br \/>\n                 \u2502<br \/>\n          \u66f4\u9ad8\u4f18\u5148\u7ea7\u5d4c\u5957<br \/>\n                 \u2502<br \/>\n                 \u25bc<br \/>\n             \u4e2d\u65ad\u9000\u51fa<br \/>\n                 \u2502<br \/>\n                 \u25bc<br \/>\n          \u6062\u590d\u539f\u6709\u6267\u884c\u6d41\u7a0b<\/p>\n<p>\u6240\u4ee5\u8fd9\u4e2a\u5b9e\u9a8c\u7684\u76ee\u6807\u5df2\u7ecf\u4ece&#xff1a;<\/p>\n<p>\u201c\u4e2d\u65ad\u80fd\u4e0d\u80fd\u5de5\u4f5c\u201d<\/p>\n<p>\u63d0\u5347\u5230\u4e86&#xff1a;<\/p>\n<p>\u201c\u4e2d\u65ad\u5728 HRTOS \u8fd0\u884c\u8fc7\u7a0b\u4e2d\u80fd\u5426\u6b63\u786e\u6253\u65ad\u7cfb\u7edf&#xff0c;\u5e76\u4fdd\u6301\u5185\u6838\u8fd0\u884c\u73af\u5883\u7684\u4e00\u81f4\u6027\u3002\u201d<\/p>\n<p>\u8fd9\u4e24\u8005\u7684\u6d4b\u8bd5\u96be\u5ea6\u5e76\u4e0d\u662f\u4e00\u4e2a\u7ea7\u522b\u3002<\/p>\n<hr \/>\n<h2>13. \u5b8c\u6574\u6d4b\u8bd5\u4ee3\u7801<\/h2>\n<p>#include &#034;hrtos.h&#034;<\/p>\n<p>\/*&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061; \u914d\u7f6e &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;*\/<br \/>\n#define TASK_A        1<br \/>\n#define TASK_B        2<\/p>\n<p>#define TASK_T1       0<\/p>\n<p>#define PRIO_TASK     4<br \/>\n#define PRIO_T1       9<br \/>\n#define PRIO_T1_NEST  10<\/p>\n<p>#define STACK_TASK_A  5<br \/>\n#define STACK_TASK_B  5<br \/>\n#define STACK_T1      0<\/p>\n<p>#define TICK_TASK     20<\/p>\n<p>\/*&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061; LED \u5b9a\u4e49 &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;*\/<br \/>\nsbit LED_A &#061; P1^0;   \/* \u4efb\u52a1A\u6307\u793a\u706f *\/<br \/>\nsbit LED_B &#061; P1^1;   \/* \u4efb\u52a1B\u6307\u793a\u706f *\/<br \/>\nsbit LED_T1 &#061; P1^2;  \/* T1\u4e2d\u65ad\u6307\u793a\u706f *\/<\/p>\n<p>\/*&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061; \u5168\u5c40 &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;*\/<br \/>\nstatic u16 count_a &#061; 0;<br \/>\nstatic u16 count_b &#061; 0;<br \/>\nstatic u16 xdata count_t1 &#061; 0;<\/p>\n<p>\/*&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061; \u666e\u901a\u4efb\u52a1A &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;*\/<br \/>\nstatic void task_a(void)<br \/>\n{<br \/>\n    LED_A &#061; 1;<\/p>\n<p>    while (1)<br \/>\n    {<br \/>\n        count_a&#043;&#043;;<\/p>\n<p>        LED_A &#061; ~LED_A;<\/p>\n<p>        os_delay(TICK_TASK);<br \/>\n    }<br \/>\n}<\/p>\n<p>\/*&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061; \u666e\u901a\u4efb\u52a1B &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;*\/<br \/>\nstatic void task_b(void)<br \/>\n{<br \/>\n    LED_B &#061; 1;<\/p>\n<p>    while (1)<br \/>\n    {<br \/>\n        count_b&#043;&#043;;<\/p>\n<p>        LED_B &#061; ~LED_B;<\/p>\n<p>        os_delay(TICK_TASK);<br \/>\n    }<br \/>\n}<\/p>\n<p>void Timer1_Init(void)<br \/>\n{<br \/>\n    TMOD &amp;&#061; 0x0F;<br \/>\n    TMOD |&#061; 0x10;     \/\/ T1\u6a21\u5f0f1<\/p>\n<p>    TH1 &#061; 0xFC;<br \/>\n    TL1 &#061; 0x18;       \/\/ 12MHz 1ms<\/p>\n<p>    TF1 &#061; 0;<br \/>\n    ET1 &#061; 1;<br \/>\n    PT1 &#061; 1;          \/\/ T1\u9ad8\u4f18\u5148\u7ea7<br \/>\n    TR1 &#061; 1;<br \/>\n}<\/p>\n<p>\/*&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061; T1\u4e2d\u65ad\u5904\u7406 &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;*\/<br \/>\nstatic void t1_isr(void)<br \/>\n{<br \/>\n    count_t1&#043;&#043;;<\/p>\n<p>    TH1 &#061; 0xFC;<br \/>\n    TL1 &#061; 0x18;       \/\/ 12MHz 1ms<\/p>\n<p>    \/*<br \/>\n     * T1\u8fdb\u5165\u4e2d\u65ad<br \/>\n     *\/<br \/>\n    LED_T1 &#061; ~LED_T1;<\/p>\n<p>    \/*<br \/>\n     * \u4e2d\u65ad\u5904\u7406\u5b8c\u6210<br \/>\n     *\/<br \/>\n    os_interrupt_exit();<br \/>\n}<\/p>\n<p>\/*&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061; \u7cfb\u7edf\u5165\u53e3 &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;*\/<br \/>\nvoid hrtos_main(void)<br \/>\n{<br \/>\n    Timer1_Init();<\/p>\n<p>    \/*<br \/>\n     * \u4e24\u4e2a\u540c\u4f18\u5148\u7ea7\u666e\u901a\u4efb\u52a1<br \/>\n     *\/<br \/>\n    if (os_task_create(task_a, TASK_A, PRIO_TASK, STACK_TASK_A) !&#061; 1)<br \/>\n    {<br \/>\n        while (1);<br \/>\n    }<\/p>\n<p>    if (os_task_create(task_b, TASK_B, PRIO_TASK, STACK_TASK_B) !&#061; 1)<br \/>\n    {<br \/>\n        while (1);<br \/>\n    }<\/p>\n<p>    \/*<br \/>\n     * T1\u666e\u901a\u4e2d\u65ad\u4efb\u52a1<br \/>\n     * \u4f18\u5148\u7ea79<br \/>\n     *\/<br \/>\n    os_task_create((unsigned int)t1_isr, TASK_T1, PRIO_T1, STACK_T1);<\/p>\n<p>    \/*<br \/>\n     * T1\u5d4c\u5957\u4e2d\u65ad\u4efb\u52a1<br \/>\n     * \u4f18\u5148\u7ea710<br \/>\n     *\/<br \/>\n    os_task_create((unsigned int)t1_isr, TASK_T1, PRIO_T1_NEST, STACK_T1);<br \/>\n}<\/p>\n<hr \/>\n<h2>14. \u8fd9\u4e2a\u5b9e\u9a8c\u771f\u6b63\u9a8c\u8bc1\u4e86\u4ec0\u4e48&#xff1f;<\/h2>\n<p>\u8fd9\u4e2a\u7a0b\u5e8f\u7684\u4ef7\u503c\u5e76\u4e0d\u5728\u4e8e Timer1 \u672c\u8eab\u3002<\/p>\n<p>Timer1 \u53ea\u662f\u4e00\u4e2a\u4e2d\u65ad\u89e6\u53d1\u6e90\u3002<\/p>\n<p>\u771f\u6b63\u9700\u8981\u9a8c\u8bc1\u7684\u662f\u4e0b\u9762\u8fd9\u4e00\u6761\u94fe\u8def&#xff1a;<\/p>\n<p>HRTOS \u6b63\u5e38\u8fd0\u884c<br \/>\n      \u2193<br \/>\nCPU \u6267\u884c\u5185\u6838\u4ee3\u7801<br \/>\n      \u2193<br \/>\n\u786c\u4ef6\u4e2d\u65ad\u4ea7\u751f<br \/>\n      \u2193<br \/>\n\u4e2d\u65ad\u6253\u65ad\u5f53\u524d\u5185\u6838\u6267\u884c<br \/>\n      \u2193<br \/>\n\u8fdb\u5165\u4e2d\u65ad\u5904\u7406<br \/>\n      \u2193<br \/>\n\u4e2d\u65ad\u5904\u7406\u5b8c\u6210<br \/>\n      \u2193<br \/>\nos_interrupt_exit()<br \/>\n      \u2193<br \/>\n\u6062\u590d\u539f\u6765\u7684\u8fd0\u884c\u73af\u5883<br \/>\n      \u2193<br \/>\nHRTOS \u7ee7\u7eed\u6267\u884c<\/p>\n<p>\u8fdb\u4e00\u6b65\u52a0\u5165\u4e2d\u65ad\u5d4c\u5957\u540e&#xff0c;\u5219\u53d8\u6210&#xff1a;<\/p>\n<p>HRTOS \u5185\u6838<br \/>\n    \u2193<br \/>\nT1 \u4e2d\u65ad<br \/>\n    \u2193<br \/>\n\u66f4\u9ad8\u4f18\u5148\u7ea7\u4e2d\u65ad<br \/>\n    \u2193<br \/>\n\u5d4c\u5957\u4e2d\u65ad\u9000\u51fa<br \/>\n    \u2193<br \/>\nT1 \u4e2d\u65ad\u7ee7\u7eed\/\u9000\u51fa<br \/>\n    \u2193<br \/>\n\u6062\u590d HRTOS<\/p>\n<p>\u56e0\u6b64&#xff0c;\u8fd9\u4e2a\u5b9e\u9a8c\u5b9e\u9645\u4e0a\u662f\u5728\u5bf9 HRTOS \u6700\u5e95\u5c42\u7684\u5185\u6838\u2014\u4e2d\u65ad\u534f\u540c\u673a\u5236\u8fdb\u884c\u538b\u529b\u9a8c\u8bc1\u3002<\/p>\n<hr \/>\n<h2>15. AI \u7f16\u5199 HRTOS \u4e2d\u65ad\u7a0b\u5e8f\u9700\u8981\u6ce8\u610f\u4ec0\u4e48&#xff1f;<\/h2>\n<p>\u8fd9\u4e2a\u5b9e\u9a8c\u540c\u6837\u975e\u5e38\u9002\u5408\u7528\u4e8e\u5efa\u7acb HRTOS \u7684 AI \u7f16\u7a0b\u77e5\u8bc6\u4f53\u7cfb\u3002<\/p>\n<p>\u5bf9\u4e8e AI \u6765\u8bf4&#xff0c;\u770b\u5230&#xff1a;<\/p>\n<p>os_interrupt_exit();<\/p>\n<p>\u4e0d\u80fd\u7b80\u5355\u6309\u7167\u5176\u4ed6 RTOS \u7684\u4e2d\u65ad API \u8fdb\u884c\u63a8\u6d4b\u3002<\/p>\n<p>HRTOS \u7684\u4e2d\u65ad\u6a21\u578b\u5177\u6709\u81ea\u5df1\u7684\u4efb\u52a1\u4f18\u5148\u7ea7\u548c\u4e2d\u65ad\u5c42\u7ea7\u8bbe\u8ba1&#xff1a;<\/p>\n<p>\u666e\u901a\u4efb\u52a1<br \/>\nPriority 4<\/p>\n<p>\u666e\u901a\u4e2d\u65ad<br \/>\nPriority 9<\/p>\n<p>\u5d4c\u5957\u4e2d\u65ad<br \/>\nPriority 10<\/p>\n<p>\u56e0\u6b64&#xff0c;AI \u5728\u751f\u6210 HRTOS \u4e2d\u65ad\u7a0b\u5e8f\u65f6&#xff0c;\u9700\u8981\u9996\u5148\u4f9d\u636e HRTOS \u81ea\u8eab\u7684 API \u548c\u4efb\u52a1\u6a21\u578b\u8fdb\u884c\u8bbe\u8ba1&#xff0c;\u800c\u4e0d\u662f\u76f4\u63a5\u5957\u7528\u5176\u4ed6 RTOS \u7684\u4e2d\u65ad\u5904\u7406\u6a21\u677f\u3002<\/p>\n<p>\u5c24\u5176\u9700\u8981\u6ce8\u610f&#xff1a;<\/p>\n<p>\u4e2d\u65ad\u5904\u7406\u7a0b\u5e8f\u3001\u666e\u901a\u4efb\u52a1\u548c\u5185\u6838\u8c03\u5ea6\u4ee3\u7801\u5e76\u4e0d\u662f\u540c\u4e00\u79cd\u8fd0\u884c\u4e0a\u4e0b\u6587\u3002<\/p>\n<p>\u5982\u679c\u4e0d\u4e86\u89e3\u8fd9\u4e00\u70b9&#xff0c;\u5f88\u5bb9\u6613\u751f\u6210\u867d\u7136\u201c\u8bed\u6cd5\u6b63\u786e\u201d&#xff0c;\u4f46\u4e0d\u7b26\u5408 HRTOS \u5b9e\u9645\u8fd0\u884c\u673a\u5236\u7684\u7a0b\u5e8f\u3002<\/p>\n<hr \/>\n<h2>16. \u603b\u7ed3<\/h2>\n<p>HRTOS_InterruptNesting \u5e76\u4e0d\u662f\u4e00\u4e2a\u7b80\u5355\u7684 Timer1 \u4e2d\u65ad\u4f8b\u7a0b\u3002<\/p>\n<p>\u5b83\u7684\u6838\u5fc3\u6d4b\u8bd5\u76ee\u6807\u662f&#xff1a;<\/p>\n<p>\u9a8c\u8bc1 HRTOS \u5185\u6838\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u53d7\u5230\u786c\u4ef6\u4e2d\u65ad\u6253\u65ad\u540e&#xff0c;\u7cfb\u7edf\u80fd\u5426\u6b63\u786e\u5904\u7406\u4e2d\u65ad&#xff0c;\u5e76\u6062\u590d\u539f\u6709\u7684\u5185\u6838\u8fd0\u884c\u6d41\u7a0b\u3002<\/p>\n<p>\u5b9e\u9a8c\u540c\u65f6\u5f15\u5165\u666e\u901a\u4efb\u52a1\u3001Timer1 \u4e2d\u65ad\u4ee5\u53ca\u66f4\u9ad8\u4f18\u5148\u7ea7\u7684\u5d4c\u5957\u4e2d\u65ad&#xff0c;\u5f62\u6210&#xff1a;<\/p>\n<p>\u666e\u901a\u4efb\u52a1<br \/>\n    \u2193<br \/>\nHRTOS \u5185\u6838<br \/>\n    \u2193<br \/>\nTimer1 \u4e2d\u65ad<br \/>\n    \u2193<br \/>\n\u5d4c\u5957\u4e2d\u65ad<br \/>\n    \u2193<br \/>\n\u4e2d\u65ad\u9000\u51fa<br \/>\n    \u2193<br \/>\n\u6062\u590d HRTOS<\/p>\n<p>\u5bf9\u4e8e\u4e00\u4e2a 8051 \u5b9e\u65f6\u64cd\u4f5c\u7cfb\u7edf\u6765\u8bf4&#xff0c;\u8fd9\u7c7b\u6d4b\u8bd5\u6bd4\u5355\u7eaf\u7684 LED\u3001\u4efb\u52a1\u521b\u5efa\u6d4b\u8bd5\u66f4\u52a0\u63a5\u8fd1\u5185\u6838\u5e95\u5c42\u53ef\u9760\u6027\u9a8c\u8bc1\u3002<\/p>\n<p>\u4e5f\u6b63\u56e0\u4e3a\u5982\u6b64&#xff0c;\u4e2d\u65ad\u6253\u65ad\u5185\u6838\u7684\u6d4b\u8bd5&#xff0c;\u662f HRTOS \u4ece\u201c\u80fd\u591f\u8fd0\u884c\u201d\u8fdb\u4e00\u6b65\u8d70\u5411\u201c\u80fd\u591f\u957f\u671f\u53ef\u9760\u8fd0\u884c\u201d\u7684\u91cd\u8981\u6d4b\u8bd5\u73af\u8282\u3002<\/p>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u5b9e\u9a8c\u76ee\u7684\u5728\u5b9e\u65f6\u64cd\u4f5c\u7cfb\u7edf\u4e2d&#xff0c;\u4e2d\u65ad\u5e76\u4e0d\u662f\u53ea\u53d1\u751f\u5728\u666e\u901a\u5e94\u7528\u4efb\u52a1\u8fd0\u884c\u671f\u95f4\u3002\u5bf9\u4e8e\u4e00\u4e2a\u5b8c\u6574\u7684\u5b9e\u65f6\u7cfb\u7edf\u6765\u8bf4&#xff0c;\u4e2d\u65ad\u53ef\u80fd\u5728\u7cfb\u7edf\u8fd0\u884c\u7684\u4efb\u610f\u65f6\u523b\u5230\u6765&#xff0c;\u5305\u62ec&#xff1a;\u666e\u901a\u4efb\u52a1\u8fd0\u884c\u671f\u95f4&#xff1b;\u4efb\u52a1\u5207\u6362\u8fc7\u7a0b\u4e2d&#xff1b;\u7cfb\u7edf\u8c03\u5ea6\u8fc7\u7a0b\u4e2d&#xff1b;\u5185\u6838\u6267\u884c\u5173\u952e\u64cd\u4f5c\u671f\u95f4\u3002\u56e0\u6b64&#xff0c;\u4e00\u4e2a\u5b9e\u65f6\u64cd\u4f5c\u7cfb\u7edf\u9664\u4e86\u9700\u8981\u9a8c\u8bc1\u666e\u901a\u4efb\u52a1\u4e4b\u95f4\u7684\u8c03\u5ea6\u662f\u5426\u6b63\u786e&#xff0c;\u8fd8\u9700\u8981\u8fdb\u4e00\u6b65\u9a8c\u8bc1&#xff1a;\u5f53 CPU \u6b63\u5904\u4e8e HRTOS \u5185\u6838\u6267\u884c\u8fc7\u7a0b\u4e2d\u65f6<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2489,270,269],"topic":[],"class_list":["post-101985","post","type-post","status-publish","format-standard","hentry","category-server","tag-2489","tag-270","tag-269"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>HRTOS_InterruptNesting\uff1a\u4e2d\u65ad\u6253\u65ad\u5185\u6838\u8fd0\u884c\u6d4b\u8bd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/101985.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HRTOS_InterruptNesting\uff1a\u4e2d\u65ad\u6253\u65ad\u5185\u6838\u8fd0\u884c\u6d4b\u8bd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"1. \u5b9e\u9a8c\u76ee\u7684\u5728\u5b9e\u65f6\u64cd\u4f5c\u7cfb\u7edf\u4e2d&#xff0c;\u4e2d\u65ad\u5e76\u4e0d\u662f\u53ea\u53d1\u751f\u5728\u666e\u901a\u5e94\u7528\u4efb\u52a1\u8fd0\u884c\u671f\u95f4\u3002\u5bf9\u4e8e\u4e00\u4e2a\u5b8c\u6574\u7684\u5b9e\u65f6\u7cfb\u7edf\u6765\u8bf4&#xff0c;\u4e2d\u65ad\u53ef\u80fd\u5728\u7cfb\u7edf\u8fd0\u884c\u7684\u4efb\u610f\u65f6\u523b\u5230\u6765&#xff0c;\u5305\u62ec&#xff1a;\u666e\u901a\u4efb\u52a1\u8fd0\u884c\u671f\u95f4&#xff1b;\u4efb\u52a1\u5207\u6362\u8fc7\u7a0b\u4e2d&#xff1b;\u7cfb\u7edf\u8c03\u5ea6\u8fc7\u7a0b\u4e2d&#xff1b;\u5185\u6838\u6267\u884c\u5173\u952e\u64cd\u4f5c\u671f\u95f4\u3002\u56e0\u6b64&#xff0c;\u4e00\u4e2a\u5b9e\u65f6\u64cd\u4f5c\u7cfb\u7edf\u9664\u4e86\u9700\u8981\u9a8c\u8bc1\u666e\u901a\u4efb\u52a1\u4e4b\u95f4\u7684\u8c03\u5ea6\u662f\u5426\u6b63\u786e&#xff0c;\u8fd8\u9700\u8981\u8fdb\u4e00\u6b65\u9a8c\u8bc1&#xff1a;\u5f53 CPU \u6b63\u5904\u4e8e HRTOS \u5185\u6838\u6267\u884c\u8fc7\u7a0b\u4e2d\u65f6\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/101985.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-07T16:49:01+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/101985.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/101985.html\",\"name\":\"HRTOS_InterruptNesting\uff1a\u4e2d\u65ad\u6253\u65ad\u5185\u6838\u8fd0\u884c\u6d4b\u8bd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-07T16:49:01+00:00\",\"dateModified\":\"2026-09-07T16:49:01+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/101985.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/101985.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/101985.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HRTOS_InterruptNesting\uff1a\u4e2d\u65ad\u6253\u65ad\u5185\u6838\u8fd0\u884c\u6d4b\u8bd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HRTOS_InterruptNesting\uff1a\u4e2d\u65ad\u6253\u65ad\u5185\u6838\u8fd0\u884c\u6d4b\u8bd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/101985.html","og_locale":"zh_CN","og_type":"article","og_title":"HRTOS_InterruptNesting\uff1a\u4e2d\u65ad\u6253\u65ad\u5185\u6838\u8fd0\u884c\u6d4b\u8bd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"1. \u5b9e\u9a8c\u76ee\u7684\u5728\u5b9e\u65f6\u64cd\u4f5c\u7cfb\u7edf\u4e2d&#xff0c;\u4e2d\u65ad\u5e76\u4e0d\u662f\u53ea\u53d1\u751f\u5728\u666e\u901a\u5e94\u7528\u4efb\u52a1\u8fd0\u884c\u671f\u95f4\u3002\u5bf9\u4e8e\u4e00\u4e2a\u5b8c\u6574\u7684\u5b9e\u65f6\u7cfb\u7edf\u6765\u8bf4&#xff0c;\u4e2d\u65ad\u53ef\u80fd\u5728\u7cfb\u7edf\u8fd0\u884c\u7684\u4efb\u610f\u65f6\u523b\u5230\u6765&#xff0c;\u5305\u62ec&#xff1a;\u666e\u901a\u4efb\u52a1\u8fd0\u884c\u671f\u95f4&#xff1b;\u4efb\u52a1\u5207\u6362\u8fc7\u7a0b\u4e2d&#xff1b;\u7cfb\u7edf\u8c03\u5ea6\u8fc7\u7a0b\u4e2d&#xff1b;\u5185\u6838\u6267\u884c\u5173\u952e\u64cd\u4f5c\u671f\u95f4\u3002\u56e0\u6b64&#xff0c;\u4e00\u4e2a\u5b9e\u65f6\u64cd\u4f5c\u7cfb\u7edf\u9664\u4e86\u9700\u8981\u9a8c\u8bc1\u666e\u901a\u4efb\u52a1\u4e4b\u95f4\u7684\u8c03\u5ea6\u662f\u5426\u6b63\u786e&#xff0c;\u8fd8\u9700\u8981\u8fdb\u4e00\u6b65\u9a8c\u8bc1&#xff1a;\u5f53 CPU \u6b63\u5904\u4e8e HRTOS \u5185\u6838\u6267\u884c\u8fc7\u7a0b\u4e2d\u65f6","og_url":"https:\/\/www.wsisp.com\/helps\/101985.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-07T16:49:01+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/101985.html","url":"https:\/\/www.wsisp.com\/helps\/101985.html","name":"HRTOS_InterruptNesting\uff1a\u4e2d\u65ad\u6253\u65ad\u5185\u6838\u8fd0\u884c\u6d4b\u8bd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-07T16:49:01+00:00","dateModified":"2026-09-07T16:49:01+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/101985.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/101985.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/101985.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"HRTOS_InterruptNesting\uff1a\u4e2d\u65ad\u6253\u65ad\u5185\u6838\u8fd0\u884c\u6d4b\u8bd5"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/101985","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=101985"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/101985\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=101985"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=101985"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=101985"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=101985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}