{"id":5577,"date":"2023-11-13T12:52:57","date_gmt":"2023-11-13T04:52:57","guid":{"rendered":"http:\/\/www.hellofpga.com\/?p=5577"},"modified":"2024-10-27T15:27:59","modified_gmt":"2024-10-27T07:27:59","slug":"gpio_sysfs","status":"publish","type":"post","link":"http:\/\/www.hellofpga.com\/index.php\/2023\/11\/13\/gpio_sysfs\/","title":{"rendered":"Xillinux \u7ae0\u8282\u516b  GPIO\u7684\u8f93\u5165\u8f93\u51fa\u5b9e\u9a8c"},"content":{"rendered":"\n<p>\u672c\u6587\u5c06\u5728Xillinux\u4e0b\u5b9e\u73b0 GPIO\u7684\u8f93\u5165\u8f93\u51fa\u529f\u80fd\u3002\u5176\u4e2d\u8f93\u51fa\u529f\u80fd\u5c06\u7528LED\u706f\u6765\u6f14\u793a\uff0c\u8f93\u5165\u529f\u80fd\u7528\u677f\u5b50\u4e0a\u7684\u6309\u952e\u6765\u6f14\u793a<\/p>\n\n\n\n<p>\u5907\u6ce8\uff1a\u56e0\u4e3a <a href=\"http:\/\/www.hellofpga.com\/index.php\/2023\/10\/17\/xillinux-demo-bundle\/\">Xillinux \u7ae0\u8282\u4e8c TF\u5361\u51c6\u5907\u5de5\u4f5c\u4e4b demo bundle \u7684\u4f7f\u7528\u8bf4\u660e<\/a> \u4e2d\u7684Vivado \u5de5\u7a0b\u9ed8\u8ba4\u5c06\u4e24\u4e2aLED \u90fd\u5360\u7528\u4e86\uff08\u5176\u4e2d\u4e00\u4e2aLED\u7528\u4e8e\u7535\u6e90\u6307\u793a\uff0c\u53e6\u4e00\u4e2aLED\u7528\u4e8eTF\u5de5\u4f5c\u72b6\u6001\u6307\u793a\uff09\uff0c\u6240\u4ee5\u5982\u679c\u9700\u8981\u5728Xillinux \u4e2d\u63a7\u5236LED\u706f\uff0c\u8fd9\u91cc\u6211\u4eec\u9700\u8981\u5bf9Vivado\u5de5\u7a0b\u8fdb\u884c\u4e00\u70b9\u70b9\u5c0f\u4fee\u6539\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u662f\u5bf9\u4e3b\u677f\u6392\u9488\u90e8\u5206\u7684GPIO\u76f4\u63a5\u64cd\u4f5c\uff0c\u5219\u4e0d\u9700\u8981\u5bf9Vivado\u5de5\u7a0b\u8fdb\u884c\u4fee\u6539\uff0c&nbsp; demo bundle\u4e2d\u7684Vivado \u5de5\u7a0b\u5df2\u7ecf\u5c06PS\u7684EMIO\u8d44\u6e90\u6620\u5c04\u5230\u5176\u4e2d\u4e00\u8fb9\u7684\u6392\u9488\u4e0a\u4e86\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e00\u3001Vivado \u4fee\u6539 LED\u90e8\u5206<\/strong>\uff08\u5982\u679c\u662f\u63a7\u5236\u6392\u9488\u7684GPIO \u5219\u4e0d\u9700\u8981\u4fee\u6539\uff09<\/h2>\n\n\n\n<p>\u4fee\u6539\u7684\u5185\u5bb9\u5e76\u4e0d\u591a\uff0c\u6253\u5f00\u7b2c\u4e8c\u7ae0\u8282\u5bfc\u5165\u7684vivado\u5de5\u7a0b\uff0cLED \u7684\u63a7\u5236\u662f\u7531 xillydemo.v\u4e2d\u7684\u8fd9\u4e24\u884c\u51b3\u5b9a\u7684\uff1a(Smrt Zynq SP\/SP2\/SL \u548clemon zynq \u6709\u70b9\u533a\u522b)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\/\/Smrt Zynq SP\/SP2\/SL<\/strong><br>assign\u00a0 LED1 = GPIO_LED[0];<br>assign\u00a0 LED2 = gpio_tri_t[63] ? 0 : gpio_tri_o[63];<br><br><strong>\/\/Lemon Zynq <\/strong><br>assign  LED3 = GPIO_LED[0];<br>assign  LED4 = gpio_tri_t[63] ? 0 : gpio_tri_o[63];<\/pre>\n\n\n\n<p>\u5982\u679c\u7528\u6237\u60f3\u8981\u63a7\u5236 LED2\uff0c\u53ea\u9700<strong>\u589e\u52a0\u6216\u66f4\u6539<\/strong>LED2\u7684 assign \u547d\u4ee4\u5373\u53ef\uff08Smart Zynq SP\/SP2\/SL\u9ed8\u8ba4\u662f\u63a5\u5728EMIO 63 \uff0c\u5bf9\u5e94device tree\u4e2d\u7684 TF card \u72b6\u6001\u6307\u793a\uff1b \u800cLemon Zynq \u4e0bLED2\u9ed8\u8ba4\u662f\u6ca1\u6709\u5360\u7528\u7684\uff0c\u6240\u4ee5\u589e\u52a0LED2\u7684assign \u547d\u4ee4\u5373\u53ef\uff09\u3002<\/p>\n\n\n\n<p>\u8fd9\u91cc\u6211\u4eec\u4fee\u6539\u6216\u589e\u52a0\u4e0b\u5217\u5185\u5bb9\uff0c\u5c06LED2\u6620\u5c04\u5230emio 57\u811a\u4e0a  \uff0858-63\u811a\u4ee5\u53ca0-33\u811a\u5df2\u5728xillydemo \u4e2d\u88ab\u5360\u7528\uff09<strong>\uff08Smart Zynq SP\/SP2\/SL\u7ecf\u8fc7\u4fee\u6539\u540eTF card\u7684\u72b6\u6001\u6307\u793a\u4ecd\u5728 gpio_tri_o[63]\uff0c\u4f46\u8be5\u4fe1\u53f7\u5c06\u88ab\u5ffd\u7565\u3002 \u800cLemon Zynq \u9ed8\u8ba4TF\u5361\u72b6\u6001\u662f\u63a5\u5728LED4\u4e0a\u6ca1\u6709\u6539\u53d8\uff09<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">assign&nbsp; LED2 = gpio_tri_t[57] ? 0 : gpio_tri_o[57]; <\/pre>\n\n\n\n<p>\u4e4b\u540e\u8fdb\u884c\u7f16\u8bd1\u7efc\u5408\u5373\u53ef\uff0c\u7136\u540e\u5728\u6211\u4eec\u7684\\verilog\\vivado\\xillydemo.runs\\impl_1\\ \u76ee\u5f55\u4e0b\u627e\u5230\u521a\u521a\u751f\u6210\u7684 xillydemo.bit\u6587\u4ef6<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"298\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-87-1024x298.png\" alt=\"\" class=\"wp-image-5583\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-87-1024x298.png 1024w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-87-300x87.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-87-768x223.png 768w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-87.png 1193w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e8c\u3001\u5c06\u65b0\u751f\u6210\u7684bit \u6587\u4ef6\u66ff\u6362 TF \u5361\u4e2d\u7684xillydemo.bit  <\/strong>\uff08\u5982\u679c\u662f\u63a7\u5236\u6392\u9488\u7684GPIO \u672a\u5bf9Vivado \u5de5\u7a0b\u8fdb\u884c\u4fee\u6539\u5219\u4e0d\u9700\u6b64\u64cd\u4f5c\uff09<\/h2>\n\n\n\n<p>1\uff09\u5c06\u5e26xillinux \u7cfb\u7edf\u7684TF\u5361 \u901a\u8fc7\u8bfb\u5361\u5668\u4e0e\u7535\u8111\u8fde\u63a5<strong>\uff08\u5982\u7cfb\u7edf\u63d0\u793a\u9700\u8981\u683c\u5f0f\u5316\u78c1\u76d8\uff0c\u5343\u4e07\u4e0d\u8981\u8fdb\u884c\u683c\u5f0f\u5316\uff09<\/strong><\/p>\n\n\n\n<p>2\uff09\u5c06\u4e0a\u6587\u63d0\u5230\u7684 xillydemo.bit \u6587\u4ef6\u590d\u5236\uff0c\u5e76\u66ff\u6362 TF\u5361\u4e2d\u539f\u5148\u7684xillydemo.bit \u6587\u4ef6<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"821\" height=\"294\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-88.png\" alt=\"\" class=\"wp-image-5585\" style=\"width:480px;height:auto\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-88.png 821w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-88-300x107.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-88-768x275.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>3\uff09 \u6b63\u5e38\u9000\u51faTF\u5361\u5373\u53ef<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e09\u3001GPIO\u529f\u80fd\u9a8c\u8bc1\u4e00 \u70b9\u4eaeLED<\/strong><\/h2>\n\n\n\n<p>\u5c06TF\u63d2\u5165\u4e3b\u677f\uff0c\u4e4b\u540e\u6b63\u5e38\u542f\u52a8\u7cfb\u7edf\uff0c\u5e76\u7528putty\u8c03\u8bd5\u5de5\u5177\u67e5\u770b\u4e32\u53e3\u547d\u4ee4\u884c<\/p>\n\n\n\n<p>\u8fd9\u91cc\u6211\u4eec\u7528sysfs\u65b9\u5f0f\u6765\u9a71\u52a8GPIO  <\/p>\n\n\n\n<p>a\uff09\u8fdb\u5165 \/sys\/class\/gpio\/ \u76ee\u5f55<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd  \/sys\/class\/gpio\/ <\/pre>\n\n\n\n<p>b)  \u7528ls\u67e5\u770b \u6587\u4ef6\u5939\u4e0b\u7684\u5185\u5bb9\uff0c\u7531\u4e0b\u56fe\u53ef\u4ee5\u77e5\u9053\u7cfb\u7edf\u5df2\u7ecf\u8bc6\u522b\u51fa\u4e00\u4e2aGPIO\u8bbe\u5907 gpiochip906\u4e86<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ls<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"545\" height=\"124\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-89.png\" alt=\"\" class=\"wp-image-5590\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-89.png 545w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-89-300x68.png 300w\" sizes=\"auto, (max-width: 545px) 100vw, 545px\" \/><\/figure>\n\n\n\n<p><strong>gpiochip0\u7684\u8d77\u59cb\u7f16\u53f7\u662f0<\/strong>\uff0c\u56e0\u4e3a\u6211\u4eec\u7684\u677f\u5b50\u4e0aLED2\u706f\u88ab\u914d\u7f6e\u5230emio \u768457\u4e0a\u4e86\uff0c\u800cemio0 \u5bf9\u5e9454\u548c55(\u7f16\u53f70-53\u5c5e\u4e8eMIO)\uff0c\u76f8\u5f53\u4e8eLED2 \u5bf9\u5e94linux \u7cfb\u7edf\u7684 gpio111\uff0857+54\uff09<\/p>\n\n\n\n<p>c) \u8f93\u5165\u4e0b\u5217\u6307\u4ee4\u8f93\u5c06EMIO57\uff08gpio 111\uff09 \u8282\u70b9\uff08\u5373LED\u706f\uff09\u5bfc\u5165\u7528\u6237\u7a7a\u95f4<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">echo 111 &gt; export<\/pre>\n\n\n\n<p>d) \u63a5\u4e0b\u6765\u6211\u4eec\u5c1d\u8bd5\u70b9\u4eaeLED\u706f\uff0c\u6211\u4eec\u9700\u8981\u7684\u64cd\u4f5c\u662f\u5c06\u8f93\u5165\u8f93\u51fa\u6539\u6210\u4e3a\u8f93\u51fa\u6a21\u5f0f\uff0c \u5e76\u4e14\u5c06LED\u706f\u5bf9\u5e94\u7684EMIO57 \uff08GPIO111\uff09\u8bbe\u7f6e\u4e3a\u9ad8\u7535\u5e73<\/p>\n\n\n\n<p><strong>\u5c06GPIO111\u8bbe\u7f6e\u4e3a\u8f93\u51fa<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">echo out &gt; gpio111\/direction<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"796\" height=\"241\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-90.png\" alt=\"\" class=\"wp-image-5592\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-90.png 796w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-90-300x91.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-90-768x233.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>\u5206\u522b\u5c06GPIO111(EMIO 57)\u8fdb\u884c\u62c9\u9ad8 \u548c\u62c9\u4f4e\u7684\u64cd\u4f5c\u6765\u89c2\u5bdf\u677f\u5b50\u4e0aLED\u706f\u7684\u72b6\u6001<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\u5c06GPIO111\u8bbe\u7f6e\u4e3a\u9ad8\u7535\u5e73  LED\u706f\u88ab\u70b9\u4eae<\/strong> \necho 1 &gt; gpio111\/value \n\n<strong>\u5c06GPIO111\u8bbe\u7f6e\u4e3a\u4f4e\u7535\u5e73  LED\u706f\u88ab\u7184\u706d<\/strong> \necho 0 &gt; gpio111\/value<\/pre>\n\n\n\n<p>\u5982\u679c\u987a\u5229\u7684\u8bdd\uff0cLED2\u706f\u7684\u72b6\u6001\u5c06\u968f\u7740\u6211\u4eec\u63a7\u5236GPIO111(EMIO57)\u7684\u6539\u53d8\u800c\u53d8\u5316\uff0c\u8bc1\u660eLED\u63a7\u5236\u6210\u529f<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u56db\u3001GPIO\u529f\u80fd\u9a8c\u8bc1\u4e8c \u6309\u952e\u8bfb\u53d6<\/strong><\/h2>\n\n\n\n<p><strong>\u63a5\u4e0b\u6765\u6211\u4eec\u6765\u5c1d\u8bd5\u8bfb\u53d6\u6309\u952e\u7684\u503c<\/strong><\/p>\n\n\n\n<p><strong>gpiochip0\u7684\u8d77\u59cb\u7f16\u53f7\u662f 0&nbsp;<\/strong>\uff0c\u56e0\u4e3a\u6211\u4eec\u7684\u677f\u5b50\u4e0aKEY2\u88ab\u914d\u7f6e\u5230EMIO\u768462\u4e0a\u4e86\uff0c\u800cemio0 \u5bf9\u5e9456(\u7f16\u53f70-53\u5c5e\u4e8eMIO)\uff0c\u76f8\u5f53\u4e8eKEY2\u5bf9\u5e94linux \u7cfb\u7edf\u7684 <strong>GPIO116<\/strong>\uff0862+54\uff09<\/p>\n\n\n\n<p>a\uff09\u8fdb\u5165 \/sys\/class\/gpio\/ \u76ee\u5f55<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd \/sys\/class\/gpio\/<\/pre>\n\n\n\n<p>b) \u8f93\u5165\u4e0b\u5217\u6307\u4ee4\u8f93\u5c06EMIO62 \uff08gpio 116\uff09 \u8282\u70b9\uff08\u5373KEY2\uff09\u5bfc\u5165\u7528\u6237\u7a7a\u95f4<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">echo 116 &gt; \/sys\/class\/gpio\/export<\/pre>\n\n\n\n<p>c) \u6211\u4eec\u4e5f\u53ef\u4ee5\u901a\u8fc7\u4e0b\u5217\u547d\u4ee4\u67e5\u770b\u5f53\u524d\u7684\u8f93\u5165\u8f93\u51fa\u72b6\u6001<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cat gpio116\/direction<\/pre>\n\n\n\n<p>\u53ef\u4ee5\u770b\u5230\u8fd9\u91cc GPIO116\u9ed8\u8ba4\u5c31\u662f\u8f93\u5165\u72b6\u6001\u4e86(\u8fd9\u91cc\u8fd4\u56de\u7684\u662fin)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"815\" height=\"204\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-91.png\" alt=\"\" class=\"wp-image-5600\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-91.png 815w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-91-300x75.png 300w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-91-768x192.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>d) \u5982\u679c\u8f93\u5165\u8f93\u51fa\u72b6\u6001\u662fout \uff0c\u90a3\u6211\u4eec\u8fd9\u91cc\u9700\u8981\u7528\u4e0b\u5217\u547d\u4ee4\u5c06\u6a21\u5f0f\u4fee\u6539\u6210in<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">echo in &gt; gpio116\/direction<\/pre>\n\n\n\n<p>e )\u4e4b\u540e\u6211\u4eec\u901a\u8fc7\u4e0b\u5217\u6307\u4ee4\u6765\u67e5\u770b\u5f53\u524d\u7684\u6309\u952e\u503c\uff08\u8f93\u5165\u6307\u4ee4\u524d\uff0c\u6211\u4eec\u9700\u8981\u63d0\u524d\u6309\u4e0b\u6216\u8005\u677e\u5f00\u6309\u952e\uff09<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cat gpio116\/value<\/pre>\n\n\n\n<p>\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u5f53KEY2 (\u5373EMIO62 GPIO116) \u6309\u677e\u5f00\u65f6\uff0c\u8fd4\u56de\u7684value\u503c\u662f1\uff0c \u5f53KEY2 \u6309\u4e0b\u65f6\u8fd4\u56de\u503c\u662f0 <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"766\" height=\"168\" src=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-92.png\" alt=\"\" class=\"wp-image-5603\" srcset=\"http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-92.png 766w, http:\/\/www.hellofpga.com\/wp-content\/uploads\/2023\/11\/image-92-300x66.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>\u5907\u6ce8\u4e0a\u6587\u4e2d\u7684LED2\u548cKEY2 \u5728Lemon Zynq \u4e3b\u677f\u4e0b\u5bf9\u5e94\u786c\u4ef6\u4e0a\u7684LED1,\u548cBTN1 (\u677f\u5b50\u4e0a\u7b2c\u4e00\u4e2aLED\u662fLED0\uff0c\u7b2c\u4e00\u4e2a\u6309\u952e\u662fBTN0)<\/strong><\/p>\n\n\n\n<p>\u4ee5\u4e0a\u662fxillinux \u7684GPIO \u8f93\u5165\u8f93\u51fa\u6d4b\u8bd5\u7684\u5b8c\u6574\u6d41\u7a0b<\/p>\n\n\n\n<p><strong>\u5173\u4e8e sysfs\uff1asysfs(\u865a\u62df\u6587\u4ef6\u7cfb\u7edf)\uff0csysfs\u7684\u4f5c\u7528\u662f\u5c06\u6ce8\u518c\u8fdb\u7cfb\u7edf\u4e2d\u7684\u8bbe\u5907\u3001\u603b\u7ebf\u548c\u9a71\u52a8\u7ec4\u7ec7\u6210\u4e00\u4e2a\u4e2a\u5206\u7ea7\u7684\u6587\u4ef6\uff0c\u5e76\u76f4\u89c2\u5730\u5c06\u9a71\u52a8\u548c\u8bbe\u5907\u7684\u5c42\u6b21\u7ed3\u6784\u4ee5\u6587\u4ef6\u7684\u5f62\u5f0f\u5c55\u793a\u5728\u7528\u6237\u7a7a\u95f4\uff0c\u901a\u8fc7\u64cd\u4f5c\u8fd9\u4e9b\u6587\u4ef6\uff0c\u7cfb\u7edf\u5411\u7528\u6237\u7a7a\u95f4\u5bfc\u51fa\u5185\u6838\u6570\u636e\u7ed3\u6784\u4ee5\u53ca\u4ed6\u4eec\u7684\u5c5e\u6027\uff0c\u8fd9\u6837\u4e00\u6765\u7528\u6237\u7a7a\u95f4\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539sysfs\u7684\u6587\u4ef6\u5c5e\u6027\u6765\u4fee\u6539\u8bbe\u5907\u7684\u5c5e\u6027\u503c\uff0c\u8fdb\u800c\u6539\u53d8\u8bbe\u5907\u7684\u5de5\u4f5c\u72b6\u6001<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u5c06\u5728Xillinux\u4e0b\u5b9e\u73b0 GPIO\u7684\u8f93\u5165\u8f93\u51fa\u529f\u80fd\u3002\u5176\u4e2d\u8f93\u51fa\u529f\u80fd\u5c06\u7528LED\u706f\u6765\u6f14\u793a\uff0c\u8f93\u5165\u529f\u80fd\u7528\u677f\u5b50\u4e0a\u7684\u6309\u952e\u6765\u6f14\u793a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-5577","post","type-post","status-publish","format-standard","hentry","category-xillinux"],"views":951,"_links":{"self":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/5577","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/comments?post=5577"}],"version-history":[{"count":26,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/5577\/revisions"}],"predecessor-version":[{"id":8618,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/posts\/5577\/revisions\/8618"}],"wp:attachment":[{"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/media?parent=5577"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/categories?post=5577"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hellofpga.com\/index.php\/wp-json\/wp\/v2\/tags?post=5577"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}