{"id":108053,"date":"2026-09-20T21:24:48","date_gmt":"2026-09-20T13:24:48","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/108053.html"},"modified":"2026-09-20T21:24:48","modified_gmt":"2026-09-20T13:24:48","slug":"%e3%80%90arm%e5%b5%8c%e5%85%a5%e5%bc%8f%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0day5%e3%80%91%e4%b8%80%e6%96%87%e6%89%93%e9%80%9agpio%e4%b8%ad%e6%96%ad%e5%85%a8%e9%93%be%e8%b7%af%ef%bc%9a%e4%bb%8e%e7%a1%ac","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/108053.html","title":{"rendered":"\u3010ARM\u5d4c\u5165\u5f0f\u5b66\u4e60\u7b14\u8bb0Day5\u3011\u4e00\u6587\u6253\u901aGPIO\u4e2d\u65ad\u5168\u94fe\u8def\uff1a\u4ece\u786c\u4ef6\u5f15\u811a\u2192GIC\u2192\u6c47\u7f16\u5165\u53e3\u2192C\u8bed\u8a00\u5904\u7406"},"content":{"rendered":"<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\u524d\u8a00<\/li>\n<li>\u4e00\u3001\u4e2d\u65ad\u7cfb\u7edf\u6574\u4f53\u4e09\u5c42\u67b6\u6784<\/li>\n<li>\u4e8c\u3001GIC\u4e2d\u65ad\u63a7\u5236\u5668&#xff1a;\u4e09\u7c7b\u4e2d\u65ad\u6e90<\/li>\n<li>\u4e09\u3001GICC\u6838\u5fc3\u5bc4\u5b58\u5668&#xff1a;\u4e2d\u65ad\u7684\u201c\u5165\u573a\u201d\u4e0e\u201c\u9000\u573a\u201d\u63e1\u624b\n<ul>\n<li>1. GICC_IAR&#xff1a;\u4e2d\u65ad\u5e94\u7b54\u5bc4\u5b58\u5668<\/li>\n<li>2. GICC_EOIR&#xff1a;\u4e2d\u65ad\u7ed3\u675f\u5bc4\u5b58\u5668<\/li>\n<\/ul>\n<\/li>\n<li>\u56db\u3001\u4e2d\u65ad\u5168\u94fe\u8def\u6267\u884c\u6d41\u7a0b\u8be6\u89e3\n<ul>\n<li>\u9636\u6bb51&#xff1a;\u7cfb\u7edf\u542f\u52a8\u4e0e\u4e2d\u65ad\u521d\u59cb\u5316<\/li>\n<li>\u9636\u6bb52&#xff1a;\u786c\u4ef6\u4e2d\u65ad\u89e6\u53d1<\/li>\n<li>\u9636\u6bb53&#xff1a;\u6c47\u7f16\u5c42&#xff1a;IRQ\u4e2d\u65ad\u5165\u53e3\u5904\u7406<\/li>\n<li>\u9636\u6bb54&#xff1a;C\u8bed\u8a00\u5c42&#xff1a;\u4e2d\u65ad\u5206\u53d1\u4e0e\u4e1a\u52a1\u5904\u7406<\/li>\n<li>\u9636\u6bb55&#xff1a;\u4e2d\u65ad\u8fd4\u56de\u4e0e\u73b0\u573a\u6062\u590d<\/li>\n<\/ul>\n<\/li>\n<li>\u4e94\u3001\u5b9e\u6218\u4ee3\u7801\u89e3\u6790&#xff1a;GPIO\u6309\u952e\u4e2d\u65ad\u9a71\u52a8\n<ul>\n<li>5.1 \u6309\u952e\u521d\u59cb\u5316\u51fd\u6570 key_init<\/li>\n<li>5.2 \u6309\u952e\u4e2d\u65ad\u5904\u7406\u51fd\u6570<\/li>\n<\/ul>\n<\/li>\n<li>\u516d\u3001\u5b66\u4e60\u907f\u5751&#xff1a;\u4e2d\u65ad\u5f00\u53d1\u5e38\u89c1\u95ee\u9898<\/li>\n<li>\u4e03\u3001\u5b66\u4e60\u603b\u7ed3<\/li>\n<\/ul>\n<hr \/>\n<h2><\/h2>\n<h3>\u524d\u8a00<\/h3>\n<p>\u4eca\u5929\u662fARM\u5d4c\u5165\u5f0f\u5b66\u4e60\u7684\u7b2c\u56db\u5929&#xff0c;\u6838\u5fc3\u653b\u514b\u4e86Cortex-A7\u7684\u4e2d\u65ad\u7cfb\u7edf\u3002\u4ece\u6700\u5e95\u5c42\u7684GPIO\u786c\u4ef6\u5f15\u811a\u3001IOMUX\u5f15\u811a\u590d\u7528&#xff0c;\u5230GIC\u901a\u7528\u4e2d\u65ad\u63a7\u5236\u5668\u7684\u5de5\u4f5c\u539f\u7406&#xff0c;\u518d\u5230CPU\u7684\u5f02\u5e38\u5411\u91cf\u8868\u3001\u6c47\u7f16\u4e2d\u65ad\u5165\u53e3&#xff0c;\u6700\u540e\u843d\u5730\u5230C\u8bed\u8a00\u7684\u4e8c\u7ea7\u4e2d\u65ad\u5411\u91cf\u8868\u548c\u5916\u8bbe\u9a71\u52a8\u4ee3\u7801&#xff0c;\u5b8c\u6574\u8d70\u901a\u4e86\u300c\u6309\u952e\u6309\u4e0b\u2192LED\u7ffb\u8f6c\u300d\u7684\u6574\u6761\u4e2d\u65ad\u94fe\u8def\u3002<\/p>\n<p>\u672c\u6587\u628a\u4eca\u5929\u6240\u6709\u77e5\u8bc6\u70b9\u6309\u67b6\u6784\u68b3\u7406&#xff0c;\u7ed3\u5408\u5bc4\u5b58\u5668\u3001\u6c47\u7f16\u3001C\u4ee3\u7801\u4e09\u5c42\u62c6\u89e3&#xff0c;\u5f7b\u5e95\u641e\u61c2\u4e2d\u65ad\u5230\u5e95\u662f\u600e\u4e48\u4ece\u786c\u4ef6\u8dd1\u5230\u8f6f\u4ef6\u91cc\u7684\u3002<\/p>\n<hr \/>\n<h3>\u4e00\u3001\u4e2d\u65ad\u7cfb\u7edf\u6574\u4f53\u4e09\u5c42\u67b6\u6784<\/h3>\n<p>\u6574\u4e2aARM\u4e2d\u65ad\u7cfb\u7edf\u4ece\u4e0a\u5230\u4e0b\u53ef\u4ee5\u5206\u4e3a\u4e09\u5c42&#xff0c;\u5bf9\u5e94\u786c\u4ef6\u4fe1\u53f7\u7684\u6d41\u5411&#xff1a;<\/p>\n<li>\u5916\u8bbe\u5c42&#xff1a;\u4ee5GPIO\u3001UART\u3001\u5b9a\u65f6\u5668\u7b49\u4e3a\u4ee3\u8868\u7684\u7247\u5185\u5916\u8bbe&#xff0c;\u8d1f\u8d23\u68c0\u6d4b\u786c\u4ef6\u4e8b\u4ef6&#xff0c;\u4ea7\u751f\u4e2d\u65ad\u6807\u5fd7\u4fe1\u53f7\u3002<\/li>\n<li>\u4e2d\u65ad\u63a7\u5236\u5668\u5c42&#xff08;GIC&#xff09;&#xff1a;\u901a\u7528\u4e2d\u65ad\u63a7\u5236\u5668&#xff0c;\u662f\u5916\u8bbe\u548cCPU\u4e4b\u95f4\u7684\u201c\u603b\u8c03\u5ea6\u5ba4\u201d&#xff0c;\u8d1f\u8d23\u6240\u6709\u4e2d\u65ad\u7684\u4f7f\u80fd\u3001\u5c4f\u853d\u3001\u4f18\u5148\u7ea7\u4ef2\u88c1\u3001CPU\u8def\u7531\u3002<\/li>\n<li>CPU\u5185\u6838\u5c42&#xff1a;Cortex-A7\u5185\u6838&#xff0c;\u63a5\u6536GIC\u7684\u4e2d\u65ad\u8bf7\u6c42&#xff0c;\u81ea\u52a8\u4fdd\u5b58\u7a0b\u5e8f\u72b6\u6001&#xff0c;\u8df3\u8f6c\u5230\u5f02\u5e38\u5411\u91cf\u8868\u5bf9\u5e94\u7684\u4e2d\u65ad\u5165\u53e3\u3002<\/li>\n<p>\u4e2d\u65ad\u4fe1\u53f7\u7684\u5b8c\u6574\u6d41\u5411&#xff1a; GPIO\u5f15\u811a\u7535\u5e73\u53d8\u5316 \u2192 GPIO\u5916\u8bbe\u7f6e\u4e2d\u65ad\u6807\u5fd7 \u2192 GIC\u4ef2\u88c1\u8def\u7531 \u2192 CPU\u89e6\u53d1IRQ\u5f02\u5e38 \u2192 \u6267\u884c\u4e2d\u65ad\u5904\u7406\u4ee3\u7801<\/p>\n<hr \/>\n<h3>\u4e8c\u3001GIC\u4e2d\u65ad\u63a7\u5236\u5668&#xff1a;\u4e09\u7c7b\u4e2d\u65ad\u6e90<\/h3>\n<p>GICv2&#xff08;Cortex-A7\u914d\u5957\u7684\u4e2d\u65ad\u63a7\u5236\u5668\u7248\u672c&#xff09;\u5c06\u6240\u6709\u4e2d\u65ad\u6309\u6765\u6e90\u548c\u4f7f\u7528\u573a\u666f\u5206\u4e3a\u4e09\u5927\u7c7b&#xff0c;\u8fd9\u662f\u7406\u89e3\u4e2d\u65ad\u53f7\u7684\u57fa\u7840&#xff1a;<\/p>\n<table>\n<tr>\u4e2d\u65ad\u7c7b\u578b\u5168\u79f0\u4e2d\u65ad\u53f7\u8303\u56f4\u4e2d\u65ad\u6765\u6e90\u6838\u5fc3\u7279\u6027\u5178\u578b\u7528\u9014<\/tr>\n<tbody>\n<tr>\n<td>SGI<\/td>\n<td>Software Generated Interrupt&#xff08;\u8f6f\u4ef6\u751f\u6210\u4e2d\u65ad&#xff09;<\/td>\n<td>0~15<\/td>\n<td>\u8f6f\u4ef6\u5199\u5bc4\u5b58\u5668\u89e6\u53d1<\/td>\n<td>\u53ef\u5b9a\u5411\u53d1\u9001\u7ed9\u4efb\u610fCPU\u6838<\/td>\n<td>\u591a\u6838\u6838\u95f4\u901a\u4fe1&#xff08;IPC&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>PPI<\/td>\n<td>Private Peripheral Interrupt&#xff08;\u79c1\u6709\u5916\u8bbe\u4e2d\u65ad&#xff09;<\/td>\n<td>16~31<\/td>\n<td>CPU\u6838\u5185\u7f6e\u79c1\u6709\u5916\u8bbe<\/td>\n<td>\u6bcf\u4e2a\u6838\u72ec\u7acb\u4e00\u5957&#xff0c;\u4e0d\u53ef\u8def\u7531<\/td>\n<td>\u5185\u6838\u901a\u7528\u5b9a\u65f6\u5668\u3001PMU\u6027\u80fd\u76d1\u63a7<\/td>\n<\/tr>\n<tr>\n<td>SPI<\/td>\n<td>Shared Peripheral Interrupt&#xff08;\u5171\u4eab\u5916\u8bbe\u4e2d\u65ad&#xff09;<\/td>\n<td>32~1019<\/td>\n<td>\u7247\u4e0a\u516c\u5171\u5916\u8bbe<\/td>\n<td>\u5168\u5c40\u552f\u4e00&#xff0c;\u53ef\u8def\u7531\u5230\u4efb\u610fCPU\u6838<\/td>\n<td>UART\u3001GPIO\u3001SPI\u3001\u4ee5\u592a\u7f51\u7b49\u5916\u8bbe\u4e2d\u65ad<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6211\u4eec\u65e5\u5e38\u88f8\u673a\u5f00\u53d1\u63a5\u89e6\u6700\u591a\u7684\u5c31\u662fSPI&#xff0c;\u6bd4\u5982GPIO\u3001\u4e32\u53e3\u7684\u4e2d\u65ad\u90fd\u5c5e\u4e8e\u8fd9\u4e00\u7c7b\u3002<\/p>\n<hr \/>\n<h3>\u4e09\u3001GICC\u6838\u5fc3\u5bc4\u5b58\u5668&#xff1a;\u4e2d\u65ad\u7684\u201c\u5165\u573a\u201d\u4e0e\u201c\u9000\u573a\u201d\u63e1\u624b<\/h3>\n<p>\u6bcf\u4e2aCPU\u6838\u90fd\u5bf9\u5e94\u4e00\u4e2a\u72ec\u7acb\u7684GICC&#xff08;CPU\u63a5\u53e3&#xff09;&#xff0c;\u5b83\u662fGIC\u548cCPU\u76f4\u63a5\u4ea4\u4e92\u7684\u7a97\u53e3&#xff0c;\u6709\u4e24\u4e2a\u6700\u6838\u5fc3\u7684\u5bc4\u5b58\u5668&#xff0c;\u63a7\u5236\u7740\u4e2d\u65ad\u7684\u5b8c\u6574\u751f\u547d\u5468\u671f\u3002<\/p>\n<h4>1. GICC_IAR&#xff1a;\u4e2d\u65ad\u5e94\u7b54\u5bc4\u5b58\u5668<\/h4>\n<ul>\n<li>\u5168\u79f0&#xff1a;Interrupt Acknowledge Register<\/li>\n<li>\u504f\u79fb\u5730\u5740&#xff1a;GICC\u57fa\u5730\u5740 &#043; 0x0C<\/li>\n<li>\u64cd\u4f5c\u65b9\u5f0f&#xff1a;\u53ea\u8bfb<\/li>\n<li>\u6838\u5fc3\u4f5c\u7528&#xff1a;\u8f6f\u4ef6\u8bfb\u53d6\u8be5\u5bc4\u5b58\u5668&#xff0c;\u786c\u4ef6\u81ea\u52a8\u5b8c\u6210\u4e24\u4ef6\u4e8b&#xff1a;\n<li>\u8fd4\u56de\u5f53\u524d\u89e6\u53d1\u7684\u4e2d\u65ad\u53f7&#xff08;Interrupt ID&#xff09;&#xff0c;\u540e\u7eed\u4f5c\u4e3aC\u51fd\u6570\u7684\u5165\u53c2<\/li>\n<li>GIC\u5185\u90e8\u5c06\u8be5\u4e2d\u65ad\u72b6\u6001\u4ecePending&#xff08;\u6302\u8d77&#xff09;\u4fee\u6539\u4e3aActive&#xff08;\u6b63\u5728\u5904\u7406&#xff09;<\/li>\n<\/li>\n<\/ul>\n<h4>2. GICC_EOIR&#xff1a;\u4e2d\u65ad\u7ed3\u675f\u5bc4\u5b58\u5668<\/h4>\n<ul>\n<li>\u5168\u79f0&#xff1a;End Of Interrupt Register<\/li>\n<li>\u504f\u79fb\u5730\u5740&#xff1a;GICC\u57fa\u5730\u5740 &#043; 0x10<\/li>\n<li>\u64cd\u4f5c\u65b9\u5f0f&#xff1a;\u53ea\u5199<\/li>\n<li>\u6838\u5fc3\u4f5c\u7528&#xff1a;\u8f6f\u4ef6\u5c06\u4e2d\u65ad\u53f7\u5199\u5165\u8be5\u5bc4\u5b58\u5668&#xff0c;\u901a\u77e5GIC\u4e2d\u65ad\u5904\u7406\u5b8c\u6bd5&#xff0c;GIC\u6e05\u9664\u8be5\u4e2d\u65ad\u7684Active\u72b6\u6001\u3002<\/li>\n<\/ul>\n<p>\u2757 \u91cd\u8981\u63d0\u9192&#xff1a;\u5982\u679c\u4e0d\u5199EOIR&#xff0c;GIC\u4f1a\u8ba4\u4e3a\u4e2d\u65ad\u4e00\u76f4\u5728\u5904\u7406\u4e2d&#xff0c;\u540c\u4f18\u5148\u7ea7\u53ca\u66f4\u4f4e\u4f18\u5148\u7ea7\u7684\u4e2d\u65ad\u5c06\u6c38\u8fdc\u65e0\u6cd5\u89e6\u53d1&#xff0c;\u8868\u73b0\u4e3a\u201c\u8fdb\u4e00\u6b21\u4e2d\u65ad\u540e\u518d\u4e5f\u4e0d\u8fdb\u4e86\u201d\u3002<\/p>\n<hr \/>\n<h3>\u56db\u3001\u4e2d\u65ad\u5168\u94fe\u8def\u6267\u884c\u6d41\u7a0b\u8be6\u89e3<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"698\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260920132446-6aafde9e78cf7.png\" width=\"1098\" \/><\/p>\n<p>\u8fd9\u662f\u4eca\u5929\u6700\u6838\u5fc3\u7684\u5185\u5bb9&#xff0c;\u6211\u4eec\u6309\u65f6\u95f4\u987a\u5e8f&#xff0c;\u628a\u4ece\u590d\u4f4d\u542f\u52a8\u5230\u4e2d\u65ad\u89e6\u53d1\u518d\u5230\u8fd4\u56de\u7684\u5b8c\u6574\u6d41\u7a0b\u62c6\u62105\u4e2a\u9636\u6bb5&#xff0c;\u7ed3\u5408\u6c47\u7f16\u548cC\u4ee3\u7801\u5f7b\u5e95\u8bb2\u900f\u3002<\/p>\n<h4>\u9636\u6bb51&#xff1a;\u7cfb\u7edf\u542f\u52a8\u4e0e\u4e2d\u65ad\u521d\u59cb\u5316<\/h4>\n<p>\u82af\u7247\u4e0a\u7535\u540e&#xff0c;\u5148\u6267\u884c\u6c47\u7f16\u590d\u4f4d\u5165\u53e3&#xff0c;\u5b8c\u6210\u6700\u5e95\u5c42\u786c\u4ef6\u521d\u59cb\u5316&#xff0c;\u518d\u8fdb\u5165C\u8bed\u8a00\u7684\u5916\u8bbe\u521d\u59cb\u5316\u3002<\/p>\n<h5>1.1 \u6c47\u7f16\u590d\u4f4d\u6d41\u7a0b&#xff08;_reset_handler&#xff09;<\/h5>\n<li>\u5173\u95ed\u603b\u4e2d\u65ad&#xff0c;\u914d\u7f6e\u7cfb\u7edf\u63a7\u5236\u5bc4\u5b58\u5668&#xff0c;\u6253\u5f00\u6307\u4ee4Cache&#xff0c;\u9009\u62e9VBAR\u4f5c\u4e3a\u5411\u91cf\u8868\u57fa\u5730\u5740<\/li>\n<li>\u5206\u522b\u8bbe\u7f6eIRQ\u6a21\u5f0f\u548c\u7cfb\u7edf\u6a21\u5f0f\u7684\u6808\u6307\u9488&#xff08;SP&#xff09;&#xff0c;\u4e24\u79cd\u6a21\u5f0f\u4f7f\u7528\u72ec\u7acb\u7684\u6808\u7a7a\u95f4<\/li>\n<li>\u521d\u59cb\u5316BSS\u6bb5&#xff08;\u5168\u5c40\u53d8\u91cf\u6e05\u96f6&#xff09;&#xff0c;\u6700\u7ec8\u8df3\u8f6c\u5230C\u8bed\u8a00\u7684main\u51fd\u6570<\/li>\n<h5>1.2 C\u8bed\u8a00\u4e2d\u65ad\u521d\u59cb\u5316<\/h5>\n<p>\u5728main\u4e2d\u8c03\u7528\u521d\u59cb\u5316\u51fd\u6570&#xff0c;\u5b8c\u6210\u4e09\u5c42\u914d\u7f6e&#xff1a;<\/p>\n<li>GPIO\u5c42&#xff1a;\u914d\u7f6e\u5f15\u811a\u590d\u7528\u4e3aGPIO\u3001\u8bbe\u7f6e\u8f93\u5165\u65b9\u5411\u3001\u914d\u7f6e\u4e2d\u65ad\u89e6\u53d1\u65b9\u5f0f\u3001\u6253\u5f00\u5f15\u811a\u4e2d\u65ad\u5c4f\u853d<\/li>\n<li>GIC\u5c42&#xff1a;\u8bbe\u7f6e\u4e2d\u65ad\u4f18\u5148\u7ea7\u3001\u4f7f\u80fd\u5bf9\u5e94\u4e2d\u65ad\u53f7<\/li>\n<li>\u8f6f\u4ef6\u5c42&#xff1a;\u5411\u4e8c\u7ea7\u4e2d\u65ad\u5411\u91cf\u8868\u6ce8\u518c\u5916\u8bbe\u7684\u4e2d\u65ad\u5904\u7406\u51fd\u6570<\/li>\n<h4>\u9636\u6bb52&#xff1a;\u786c\u4ef6\u4e2d\u65ad\u89e6\u53d1<\/h4>\n<li>\u6309\u952e\u6309\u4e0b&#xff0c;GPIO\u5f15\u811a\u7535\u5e73\u53d8\u5316&#xff0c;\u7b26\u5408\u914d\u7f6e\u7684\u89e6\u53d1\u6761\u4ef6&#xff08;\u4e0a\u5347\u6cbf\/\u4e0b\u964d\u6cbf&#xff09;<\/li>\n<li>GPIO\u5916\u8bbe\u7f6e\u4f4dISR&#xff08;\u4e2d\u65ad\u72b6\u6001\u5bc4\u5b58\u5668&#xff09;\u5bf9\u5e94\u4f4d&#xff0c;\u5411GIC\u53d1\u51fa\u4e2d\u65ad\u8bf7\u6c42<\/li>\n<li>GIC\u5206\u53d1\u5668&#xff08;GICD&#xff09;\u4ef2\u88c1&#xff0c;\u9009\u51fa\u5f53\u524d\u6700\u9ad8\u4f18\u5148\u7ea7\u4e2d\u65ad&#xff0c;\u8def\u7531\u5230\u76ee\u6807CPU\u7684GICC<\/li>\n<li>GICC\u5224\u65ad\u4e2d\u65ad\u4f18\u5148\u7ea7\u9ad8\u4e8e\u9608\u503c&#xff0c;\u5411CPU\u7684IRQ\u5f15\u811a\u8f93\u51fa\u6709\u6548\u4fe1\u53f7<\/li>\n<h4>\u9636\u6bb53&#xff1a;\u6c47\u7f16\u5c42&#xff1a;IRQ\u4e2d\u65ad\u5165\u53e3\u5904\u7406<\/h4>\n<p>CPU\u68c0\u6d4b\u5230IRQ\u4fe1\u53f7\u540e&#xff0c;\u786c\u4ef6\u81ea\u52a8\u4fdd\u5b58CPSR\u548c\u8fd4\u56de\u5730\u5740&#xff0c;\u5207\u6362\u5230IRQ\u6a21\u5f0f&#xff0c;\u8df3\u8f6c\u5230_irq_handler&#xff0c;\u968f\u540e\u6267\u884c\u6c47\u7f16\u4ee3\u7801&#xff1a;<\/p>\n<li>\u4fee\u6b63\u8fd4\u56de\u5730\u5740&#xff1a;sub lr, lr, #4&#xff0c;\u9002\u914dARM\u4e09\u7ea7\u6d41\u6c34\u7ebf\u7279\u6027&#xff0c;\u4fdd\u8bc1\u8fd4\u56de\u5730\u5740\u6b63\u786e<\/li>\n<li>\u4fdd\u5b58\u73b0\u573a&#xff1a;\u5c06r0~r12\u3001lr\u538b\u5165IRQ\u6808&#xff0c;\u9632\u6b62\u7834\u574f\u4e3b\u7a0b\u5e8f\u7684\u5bc4\u5b58\u5668\u73af\u5883<\/li>\n<li>\u8bfb\u53d6\u4e2d\u65ad\u53f7&#xff1a;\u8bfbGICC_IAR\u5bc4\u5b58\u5668&#xff0c;\u62ff\u5230\u4e2d\u65ad\u53f7\u5b58\u5728r0\u4e2d<\/li>\n<li>\u5207\u6362\u7cfb\u7edf\u6a21\u5f0f&#xff1a;\u5207\u6362\u5230System\u6a21\u5f0f&#xff0c;\u4f7f\u7528\u7cfb\u7edf\u5927\u6808&#xff0c;\u652f\u6301C\u51fd\u6570\u8c03\u7528\u548c\u4e2d\u65ad\u5d4c\u5957<\/li>\n<li>\u8c03\u7528C\u8bed\u8a00\u5904\u7406\u51fd\u6570&#xff1a;bl system_interrupt_handler&#xff0c;\u901a\u8fc7r0\u5bc4\u5b58\u5668\u4f20\u9012\u4e2d\u65ad\u53f7\u53c2\u6570<\/li>\n<h4>\u9636\u6bb54&#xff1a;C\u8bed\u8a00\u5c42&#xff1a;\u4e2d\u65ad\u5206\u53d1\u4e0e\u4e1a\u52a1\u5904\u7406<\/h4>\n<p>\u8fdb\u5165C\u8bed\u8a00\u7684\u4e2d\u65ad\u5206\u53d1\u51fd\u6570\u540e&#xff0c;\u901a\u8fc7\u4e8c\u7ea7\u5411\u91cf\u8868\u627e\u5230\u5bf9\u5e94\u7684\u5916\u8bbe\u5904\u7406\u51fd\u6570&#xff1a;<\/p>\n<li>\u6821\u9a8c\u4e2d\u65ad\u53f7\u5408\u6cd5\u6027&#xff0c;\u9632\u6b62\u6570\u7ec4\u8d8a\u754c\u8bbf\u95ee<\/li>\n<li>\u4eceVectorIrq\u4e8c\u7ea7\u5411\u91cf\u8868\u4e2d&#xff0c;\u6309\u4e2d\u65ad\u53f7\u53d6\u51fa\u5bf9\u5e94\u7684\u5904\u7406\u51fd\u6570\u5730\u5740<\/li>\n<li>\u6267\u884c\u5916\u8bbe\u4e2d\u65ad\u5904\u7406\u51fd\u6570&#xff1a;\n<ul>\n<li>\u8bfbGPIO\u7684ISR\u5bc4\u5b58\u5668&#xff0c;\u5224\u65ad\u5177\u4f53\u662f\u54ea\u4e2a\u5f15\u811a\u89e6\u53d1\u7684\u4e2d\u65ad&#xff08;\u56e0\u4e3a\u591a\u4e2a\u5f15\u811a\u5171\u7528\u4e00\u4e2aGIC\u4e2d\u65ad\u53f7&#xff09;<\/li>\n<li>\u6267\u884c\u4e1a\u52a1\u903b\u8f91&#xff1a;\u7ffb\u8f6cLED\u3001\u63a7\u5236\u8702\u9e23\u5668\u7b49<\/li>\n<li>\u5199GPIO\u7684ISR\u5bc4\u5b58\u5668&#xff0c;\u6e05\u9664\u4e2d\u65ad\u6807\u5fd7&#xff08;W1C\u673a\u5236&#xff0c;\u51991\u6e050&#xff09;<\/li>\n<\/ul>\n<\/li>\n<h4>\u9636\u6bb55&#xff1a;\u4e2d\u65ad\u8fd4\u56de\u4e0e\u73b0\u573a\u6062\u590d<\/h4>\n<p>C\u51fd\u6570\u6267\u884c\u5b8c\u6bd5&#xff0c;\u8fd4\u56de\u6c47\u7f16\u5165\u53e3&#xff0c;\u5b8c\u6210\u4e2d\u65ad\u6536\u5c3e&#xff1a;<\/p>\n<li>\u5207\u56deIRQ\u6a21\u5f0f&#xff0c;\u6062\u590dr0\u3001r1\u5bc4\u5b58\u5668<\/li>\n<li>\u5199EOIR\u5bc4\u5b58\u5668&#xff1a;\u5c06\u4e2d\u65ad\u53f7\u5199\u5165GICC_EOIR&#xff0c;\u901a\u77e5GIC\u4e2d\u65ad\u5904\u7406\u5b8c\u6210<\/li>\n<li>\u6062\u590d\u73b0\u573a&#xff1a;\u4ece\u6808\u4e2d\u5f39\u51far0~r12&#xff0c;\u5c06\u8fd4\u56de\u5730\u5740\u76f4\u63a5\u8d4b\u503c\u7ed9PC&#xff0c;\u540c\u65f6\u6062\u590dCPSR<\/li>\n<li>\u56de\u5230\u4e3b\u7a0b\u5e8f\u88ab\u6253\u65ad\u7684\u4f4d\u7f6e&#xff0c;\u7ee7\u7eed\u6267\u884c<\/li>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"718\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260920132446-6aafde9ed4381.png\" width=\"751\" \/><\/p>\n<hr \/>\n<h3>\u4e94\u3001\u5b9e\u6218\u4ee3\u7801\u89e3\u6790&#xff1a;GPIO\u6309\u952e\u4e2d\u65ad\u9a71\u52a8<\/h3>\n<p>\u4e0b\u9762\u7ed3\u5408\u5b9e\u9645\u4ee3\u7801&#xff0c;\u770b\u6bcf\u4e2a\u914d\u7f6e\u5728\u9a71\u52a8\u91cc\u662f\u600e\u4e48\u843d\u5730\u7684\u3002<\/p>\n<h4>5.1 \u6309\u952e\u521d\u59cb\u5316\u51fd\u6570 key_init<\/h4>\n<p>void key_init(void)<br \/>\n{<br \/>\n    \/\/1. \u5f15\u811a\u590d\u7528&#xff1a;\u5c06UART1_CTS_B\u5f15\u811a\u590d\u7528\u4e3aGPIO1_IO18&#xff0c;\u5173\u95ed\u5f3a\u5236\u8f93\u5165<br \/>\n    IOMUXC_SetPinMux(IOMUXC_UART1_CTS_B_GPIO1_IO18, 0);<\/p>\n<p>    \/\/2. \u5f15\u811a\u7535\u6c14\u7279\u6027&#xff1a;\u914d\u7f6e\u4e0a\u62c9\u3001\u65bd\u5bc6\u7279\u89e6\u53d1\u7b49\u53c2\u6570<br \/>\n    IOMUXC_SetPinConfig(IOMUXC_UART1_CTS_B_GPIO1_IO18, 0xF0B0);<\/p>\n<p>    \/\/3. GPIO\u65b9\u5411&#xff1a;\u7b2c18\u4f4d\u6e05\u96f6&#xff0c;\u8bbe\u7f6e\u4e3a\u8f93\u5165\u6a21\u5f0f<br \/>\n    GPIO1-&gt;GDIR &amp;&#061; ~(1 &lt;&lt; 18);<\/p>\n<p>    \/\/4. \u4e2d\u65ad\u89e6\u53d1\u65b9\u5f0f&#xff1a;\u4e0a\u5347\u6cbf\u89e6\u53d1&#xff08;ICR2\u7ba1pin16~31&#xff0c;pin18\u5bf9\u5e94bit4~5&#xff09;<br \/>\n    GPIO1-&gt;ICR2 |&#061; (3 &lt;&lt; 4);<\/p>\n<p>    \/\/5. \u5f15\u811a\u4e2d\u65ad\u5c4f\u853d&#xff1a;\u7f6e1\u4f7f\u80fd\u8be5\u5f15\u811a\u7684\u4e2d\u65ad\u8f93\u51fa<br \/>\n    GPIO1-&gt;IMR |&#061; (1 &lt;&lt; 18);<\/p>\n<p>    \/\/6. GIC\u8bbe\u7f6e\u4e2d\u65ad\u4f18\u5148\u7ea7&#xff08;99\u4e3a\u5bf9\u5e94\u4e2d\u65ad\u53f7&#xff0c;0\u4e3a\u6700\u9ad8\u4f18\u5148\u7ea7&#xff09;<br \/>\n    GIC_SetPriority(99, 0);<\/p>\n<p>    \/\/7. \u6ce8\u518c\u4e2d\u65ad\u5904\u7406\u51fd\u6570\u5230\u8f6f\u4ef6\u4e8c\u7ea7\u5411\u91cf\u8868<br \/>\n    system_interrupt_register(GPIO1_Combined_16_31_IRQn, key_irq_hangdler);<\/p>\n<p>    \/\/8. GIC\u5c42\u9762\u4f7f\u80fd\u4e2d\u65ad&#xff0c;\u5141\u8bb8\u4e2d\u65ad\u8f6c\u53d1\u5230CPU<br \/>\n    GIC_EnableIRQ(99);<br \/>\n}<\/p>\n<h4>5.2 \u6309\u952e\u4e2d\u65ad\u5904\u7406\u51fd\u6570<\/h4>\n<p>void key_irq_hangdler(void)<br \/>\n{<br \/>\n    \/\/ \u5224\u65ad\u662f\u5426\u662fpin18\u89e6\u53d1\u7684\u4e2d\u65ad&#xff08;GPIO\u5408\u5e76\u4e2d\u65ad\u5fc5\u987b\u505a\u5f15\u811a\u5224\u65ad&#xff09;<br \/>\n    if ((GPIO1-&gt;ISR &amp; (1 &lt;&lt; 18))  !&#061; 0)<br \/>\n    {<br \/>\n        \/\/ \u4e1a\u52a1\u903b\u8f91&#xff1a;\u7ffb\u8f6cLED\u3001\u63a7\u5236\u8702\u9e23\u5668<br \/>\n        led_nor();<br \/>\n        beep_nor();<\/p>\n<p>        \/\/ \u6e05\u9664GPIO\u4e2d\u65ad\u6807\u5fd7&#xff08;W1C\u673a\u5236&#xff0c;\u76f4\u63a5\u51991\u5bf9\u5e94\u4f4d\u5373\u53ef&#xff09;<br \/>\n        GPIO1-&gt;ISR &#061; (1 &lt;&lt; 18);<br \/>\n    }<br \/>\n}<\/p>\n<hr \/>\n<h3>\u516d\u3001\u5b66\u4e60\u907f\u5751&#xff1a;\u4e2d\u65ad\u5f00\u53d1\u5e38\u89c1\u95ee\u9898<\/h3>\n<li>\u5fd8\u8bb0\u6e05GPIO\u4e2d\u65ad\u6807\u5fd7&#xff1a;ISR\u662fW1C&#xff08;\u51991\u6e050&#xff09;\u5bc4\u5b58\u5668&#xff0c;\u4e0d\u6e05\u9664\u7684\u8bddGPIO\u4f1a\u4e00\u76f4\u8f93\u51fa\u4e2d\u65ad\u4fe1\u53f7&#xff0c;\u5bfc\u81f4\u4e2d\u65ad\u53cd\u590d\u89e6\u53d1&#xff0c;\u7a0b\u5e8f\u5361\u6b7b\u5728\u4e2d\u65ad\u91cc\u3002<\/li>\n<li>\u5fd8\u8bb0\u5199GIC\u7684EOIR&#xff1a;GIC\u4e0d\u77e5\u9053\u4e2d\u65ad\u5904\u7406\u5b8c\u4e86&#xff0c;\u540c\u4f18\u5148\u7ea7\u53ca\u4ee5\u4e0b\u4e2d\u65ad\u4f1a\u5168\u90e8\u963b\u585e\u3002<\/li>\n<li>\u5408\u5e76\u4e2d\u65ad\u4e0d\u5224\u65ad\u5f15\u811a&#xff1a;GPIO\u768416~31\u5f15\u811a\u5171\u7528\u4e00\u4e2aGIC\u4e2d\u65ad\u53f7&#xff0c;\u8fdb\u5165\u4e2d\u65ad\u5fc5\u987b\u8bfbISR\u533a\u5206\u5f15\u811a&#xff0c;\u5426\u5219\u4f1a\u8bef\u89e6\u53d1\u3002<\/li>\n<li>\u89e6\u53d1\u65b9\u5f0f\u4e0e\u786c\u4ef6\u4e0d\u5339\u914d&#xff1a;\u4e0a\u62c9\u6309\u952e&#xff08;\u6309\u4e0b\u63a5\u5730&#xff09;\u5e94\u8be5\u7528\u4e0b\u964d\u6cbf\u89e6\u53d1&#xff0c;\u5199\u6210\u4e0a\u5347\u6cbf\u4f1a\u51fa\u73b0\u201c\u677e\u5f00\u6309\u952e\u624d\u54cd\u5e94\u201d\u7684\u73b0\u8c61\u3002<\/li>\n<li>\u4e2d\u65ad\u91cc\u653e\u957f\u5ef6\u65f6&#xff1a;\u4e2d\u65ad\u5904\u7406\u51fd\u6570\u8981\u5feb\u8fdb\u5feb\u51fa&#xff0c;\u957f\u5ef6\u65f6\u3001\u91cd\u64cd\u4f5c\u4f1a\u5f71\u54cd\u7cfb\u7edf\u5b9e\u65f6\u6027&#xff0c;\u751a\u81f3\u5bfc\u81f4\u4f4e\u4f18\u5148\u7ea7\u4e2d\u65ad\u4e22\u5931\u3002<\/li>\n<hr \/>\n<h3>\u4e03\u3001\u5b66\u4e60\u603b\u7ed3<\/h3>\n<p>\u4eca\u5929\u7b2c\u4e94\u5929\u7684\u5b66\u4e60&#xff0c;\u5f7b\u5e95\u628aARM\u4e2d\u65ad\u7684\u201c\u9ed1\u76d2\u201d\u6253\u5f00\u4e86&#xff1a;<\/p>\n<ul>\n<li>\u7406\u89e3\u4e86GIC\u7684\u4e09\u7c7b\u4e2d\u65ad\u6e90\u548c\u4ef2\u88c1\u8def\u7531\u673a\u5236<\/li>\n<li>\u641e\u61c2\u4e86IAR\u548cEOIR\u4e24\u4e2a\u5bc4\u5b58\u5668\u7684\u63e1\u624b\u903b\u8f91<\/li>\n<li>\u6253\u901a\u4e86\u4ece\u786c\u4ef6\u5f15\u811a\u2192GIC\u2192\u6c47\u7f16\u5165\u53e3\u2192C\u8bed\u8a00\u5206\u53d1\u2192\u5916\u8bbe\u5904\u7406\u7684\u5b8c\u6574\u94fe\u8def<\/li>\n<li>\u638c\u63e1\u4e86GPIO\u4e2d\u65ad\u9a71\u52a8\u7684\u7f16\u5199\u65b9\u6cd5\u548c\u5e38\u89c1\u5751\u70b9<\/li>\n<\/ul>\n<p>\u4e2d\u65ad\u662f\u5d4c\u5165\u5f0f\u5b9e\u65f6\u6027\u7684\u6838\u5fc3&#xff0c;\u7406\u89e3\u4e86\u5168\u94fe\u8def\u4e4b\u540e&#xff0c;\u540e\u9762\u5b66\u4e60UART\u3001\u5b9a\u65f6\u5668\u7b49\u5916\u8bbe\u4e2d\u65ad\u5c31\u90fd\u662f\u540c\u4e00\u4e2a\u5957\u8def&#xff0c;\u53ea\u662f\u5916\u8bbe\u5bc4\u5b58\u5668\u914d\u7f6e\u4e0d\u540c\u800c\u5df2\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u76ee\u5f55 \u524d\u8a00\u4e00\u3001\u4e2d\u65ad\u7cfb\u7edf\u6574\u4f53\u4e09\u5c42\u67b6\u6784\u4e8c\u3001GIC\u4e2d\u65ad\u63a7\u5236\u5668&#xff1a;\u4e09\u7c7b\u4e2d\u65ad\u6e90\u4e09\u3001GICC\u6838\u5fc3\u5bc4\u5b58\u5668&#xff1a;\u4e2d\u65ad\u7684\u201c\u5165\u573a\u201d\u4e0e\u201c\u9000\u573a\u201d\u63e1\u624b 1. GICC_IAR&#xff1a;\u4e2d\u65ad\u5e94\u7b54\u5bc4\u5b58\u56682. GICC_EOIR&#xff1a;\u4e2d\u65ad\u7ed3\u675f\u5bc4\u5b58\u5668 \u56db\u3001\u4e2d\u65ad\u5168\u94fe\u8def\u6267\u884c\u6d41\u7a0b\u8be6\u89e3 \u9636\u6bb51&#xff1a;\u7cfb\u7edf\u542f\u52a8\u4e0e\u4e2d\u65ad\u521d\u59cb\u5316\u9636\u6bb52&#xff1a;\u786c\u4ef6\u4e2d\u65ad\u89e6\u53d1\u9636\u6bb53&#xff1a;\u6c47\u7f16\u5c42&#xff1a;IRQ\u4e2d\u65ad\u5165\u53e3\u5904\u7406\u9636\u6bb54&#xff1a;C\u8bed\u8a00\u5c42&#xff1a;\u4e2d\u65ad\u5206\u53d1<\/p>\n","protected":false},"author":2,"featured_media":108051,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[12305,11653,751,5038,371,305],"topic":[],"class_list":["post-108053","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-gic","tag-11653","tag-arm","tag-5038","tag-371","tag-305"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010ARM\u5d4c\u5165\u5f0f\u5b66\u4e60\u7b14\u8bb0Day5\u3011\u4e00\u6587\u6253\u901aGPIO\u4e2d\u65ad\u5168\u94fe\u8def\uff1a\u4ece\u786c\u4ef6\u5f15\u811a\u2192GIC\u2192\u6c47\u7f16\u5165\u53e3\u2192C\u8bed\u8a00\u5904\u7406 - \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\/108053.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010ARM\u5d4c\u5165\u5f0f\u5b66\u4e60\u7b14\u8bb0Day5\u3011\u4e00\u6587\u6253\u901aGPIO\u4e2d\u65ad\u5168\u94fe\u8def\uff1a\u4ece\u786c\u4ef6\u5f15\u811a\u2192GIC\u2192\u6c47\u7f16\u5165\u53e3\u2192C\u8bed\u8a00\u5904\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u76ee\u5f55 \u524d\u8a00\u4e00\u3001\u4e2d\u65ad\u7cfb\u7edf\u6574\u4f53\u4e09\u5c42\u67b6\u6784\u4e8c\u3001GIC\u4e2d\u65ad\u63a7\u5236\u5668&#xff1a;\u4e09\u7c7b\u4e2d\u65ad\u6e90\u4e09\u3001GICC\u6838\u5fc3\u5bc4\u5b58\u5668&#xff1a;\u4e2d\u65ad\u7684\u201c\u5165\u573a\u201d\u4e0e\u201c\u9000\u573a\u201d\u63e1\u624b 1. GICC_IAR&#xff1a;\u4e2d\u65ad\u5e94\u7b54\u5bc4\u5b58\u56682. GICC_EOIR&#xff1a;\u4e2d\u65ad\u7ed3\u675f\u5bc4\u5b58\u5668 \u56db\u3001\u4e2d\u65ad\u5168\u94fe\u8def\u6267\u884c\u6d41\u7a0b\u8be6\u89e3 \u9636\u6bb51&#xff1a;\u7cfb\u7edf\u542f\u52a8\u4e0e\u4e2d\u65ad\u521d\u59cb\u5316\u9636\u6bb52&#xff1a;\u786c\u4ef6\u4e2d\u65ad\u89e6\u53d1\u9636\u6bb53&#xff1a;\u6c47\u7f16\u5c42&#xff1a;IRQ\u4e2d\u65ad\u5165\u53e3\u5904\u7406\u9636\u6bb54&#xff1a;C\u8bed\u8a00\u5c42&#xff1a;\u4e2d\u65ad\u5206\u53d1\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/108053.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-20T13:24:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260920132446-6aafde9e78cf7.png\" \/>\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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/108053.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/108053.html\",\"name\":\"\u3010ARM\u5d4c\u5165\u5f0f\u5b66\u4e60\u7b14\u8bb0Day5\u3011\u4e00\u6587\u6253\u901aGPIO\u4e2d\u65ad\u5168\u94fe\u8def\uff1a\u4ece\u786c\u4ef6\u5f15\u811a\u2192GIC\u2192\u6c47\u7f16\u5165\u53e3\u2192C\u8bed\u8a00\u5904\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-20T13:24:48+00:00\",\"dateModified\":\"2026-09-20T13:24:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/108053.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/108053.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/108053.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010ARM\u5d4c\u5165\u5f0f\u5b66\u4e60\u7b14\u8bb0Day5\u3011\u4e00\u6587\u6253\u901aGPIO\u4e2d\u65ad\u5168\u94fe\u8def\uff1a\u4ece\u786c\u4ef6\u5f15\u811a\u2192GIC\u2192\u6c47\u7f16\u5165\u53e3\u2192C\u8bed\u8a00\u5904\u7406\"}]},{\"@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":"\u3010ARM\u5d4c\u5165\u5f0f\u5b66\u4e60\u7b14\u8bb0Day5\u3011\u4e00\u6587\u6253\u901aGPIO\u4e2d\u65ad\u5168\u94fe\u8def\uff1a\u4ece\u786c\u4ef6\u5f15\u811a\u2192GIC\u2192\u6c47\u7f16\u5165\u53e3\u2192C\u8bed\u8a00\u5904\u7406 - \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\/108053.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010ARM\u5d4c\u5165\u5f0f\u5b66\u4e60\u7b14\u8bb0Day5\u3011\u4e00\u6587\u6253\u901aGPIO\u4e2d\u65ad\u5168\u94fe\u8def\uff1a\u4ece\u786c\u4ef6\u5f15\u811a\u2192GIC\u2192\u6c47\u7f16\u5165\u53e3\u2192C\u8bed\u8a00\u5904\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u76ee\u5f55 \u524d\u8a00\u4e00\u3001\u4e2d\u65ad\u7cfb\u7edf\u6574\u4f53\u4e09\u5c42\u67b6\u6784\u4e8c\u3001GIC\u4e2d\u65ad\u63a7\u5236\u5668&#xff1a;\u4e09\u7c7b\u4e2d\u65ad\u6e90\u4e09\u3001GICC\u6838\u5fc3\u5bc4\u5b58\u5668&#xff1a;\u4e2d\u65ad\u7684\u201c\u5165\u573a\u201d\u4e0e\u201c\u9000\u573a\u201d\u63e1\u624b 1. GICC_IAR&#xff1a;\u4e2d\u65ad\u5e94\u7b54\u5bc4\u5b58\u56682. GICC_EOIR&#xff1a;\u4e2d\u65ad\u7ed3\u675f\u5bc4\u5b58\u5668 \u56db\u3001\u4e2d\u65ad\u5168\u94fe\u8def\u6267\u884c\u6d41\u7a0b\u8be6\u89e3 \u9636\u6bb51&#xff1a;\u7cfb\u7edf\u542f\u52a8\u4e0e\u4e2d\u65ad\u521d\u59cb\u5316\u9636\u6bb52&#xff1a;\u786c\u4ef6\u4e2d\u65ad\u89e6\u53d1\u9636\u6bb53&#xff1a;\u6c47\u7f16\u5c42&#xff1a;IRQ\u4e2d\u65ad\u5165\u53e3\u5904\u7406\u9636\u6bb54&#xff1a;C\u8bed\u8a00\u5c42&#xff1a;\u4e2d\u65ad\u5206\u53d1","og_url":"https:\/\/www.wsisp.com\/helps\/108053.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-20T13:24:48+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260920132446-6aafde9e78cf7.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/108053.html","url":"https:\/\/www.wsisp.com\/helps\/108053.html","name":"\u3010ARM\u5d4c\u5165\u5f0f\u5b66\u4e60\u7b14\u8bb0Day5\u3011\u4e00\u6587\u6253\u901aGPIO\u4e2d\u65ad\u5168\u94fe\u8def\uff1a\u4ece\u786c\u4ef6\u5f15\u811a\u2192GIC\u2192\u6c47\u7f16\u5165\u53e3\u2192C\u8bed\u8a00\u5904\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-20T13:24:48+00:00","dateModified":"2026-09-20T13:24:48+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/108053.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/108053.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/108053.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010ARM\u5d4c\u5165\u5f0f\u5b66\u4e60\u7b14\u8bb0Day5\u3011\u4e00\u6587\u6253\u901aGPIO\u4e2d\u65ad\u5168\u94fe\u8def\uff1a\u4ece\u786c\u4ef6\u5f15\u811a\u2192GIC\u2192\u6c47\u7f16\u5165\u53e3\u2192C\u8bed\u8a00\u5904\u7406"}]},{"@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\/108053","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=108053"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/108053\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/108051"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=108053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=108053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=108053"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=108053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}