<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
		<id>http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=%E7%AC%AC%E4%B8%89%E8%AF%BE--MicroWRT_%E5%A4%8D%E7%94%A8GPIO%E7%9A%84%E4%BD%BF%E7%94%A8</id>
		<title>第三课--MicroWRT 复用GPIO的使用 - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=%E7%AC%AC%E4%B8%89%E8%AF%BE--MicroWRT_%E5%A4%8D%E7%94%A8GPIO%E7%9A%84%E4%BD%BF%E7%94%A8"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%B8%89%E8%AF%BE--MicroWRT_%E5%A4%8D%E7%94%A8GPIO%E7%9A%84%E4%BD%BF%E7%94%A8&amp;action=history"/>
		<updated>2026-04-21T22:32:55Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%B8%89%E8%AF%BE--MicroWRT_%E5%A4%8D%E7%94%A8GPIO%E7%9A%84%E4%BD%BF%E7%94%A8&amp;diff=6586&amp;oldid=prev</id>
		<title>Shengkai81@gmail.com：/* 注册GPIO引脚 */</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%B8%89%E8%AF%BE--MicroWRT_%E5%A4%8D%E7%94%A8GPIO%E7%9A%84%E4%BD%BF%E7%94%A8&amp;diff=6586&amp;oldid=prev"/>
				<updated>2014-11-28T11:18:03Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;注册GPIO引脚&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2014年11月28日 (五) 11:18的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l40&quot; &gt;第40行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第40行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==注册GPIO引脚==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==注册GPIO引脚==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;我们的固件使用MZK&lt;/del&gt;-750DHP.dts 作为基础，并进行功能的添加。如果想用GPIO接口首先要使能GPIO并且释放gpio引脚复用功能。&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;我们的固件使用/target/linux/ramips/dts/MZK&lt;/ins&gt;-750DHP.dts 作为基础，并进行功能的添加。如果想用GPIO接口首先要使能GPIO并且释放gpio引脚复用功能。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;在本教程中，我们将复用WLED引脚来控制LED灯的亮灭。通过查7620A的datasheet，可以知道WLED引脚对应GPIO#72，及第4组GPIO。&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;在本教程中，我们将复用WLED引脚来控制LED灯的亮灭。通过查7620A的datasheet，可以知道WLED引脚对应GPIO#72，及第4组GPIO。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Shengkai81@gmail.com</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%B8%89%E8%AF%BE--MicroWRT_%E5%A4%8D%E7%94%A8GPIO%E7%9A%84%E4%BD%BF%E7%94%A8&amp;diff=5821&amp;oldid=prev</id>
		<title>Shengkai81@gmail.com：/* 结果 */</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%B8%89%E8%AF%BE--MicroWRT_%E5%A4%8D%E7%94%A8GPIO%E7%9A%84%E4%BD%BF%E7%94%A8&amp;diff=5821&amp;oldid=prev"/>
				<updated>2014-11-08T07:53:43Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;结果&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2014年11月8日 (六) 07:53的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l63&quot; &gt;第63行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第63行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==结果==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==结果==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;1110&lt;/del&gt;.jpg|800px|thumb|center|Result]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;121&lt;/ins&gt;.jpg|800px|thumb|center|Result]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Shengkai81@gmail.com</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%B8%89%E8%AF%BE--MicroWRT_%E5%A4%8D%E7%94%A8GPIO%E7%9A%84%E4%BD%BF%E7%94%A8&amp;diff=5811&amp;oldid=prev</id>
		<title>Shengkai81@gmail.com：/* 7620A GPIO pin share scheme */</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%B8%89%E8%AF%BE--MicroWRT_%E5%A4%8D%E7%94%A8GPIO%E7%9A%84%E4%BD%BF%E7%94%A8&amp;diff=5811&amp;oldid=prev"/>
				<updated>2014-11-08T07:49:26Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;7620A GPIO pin share scheme&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2014年11月8日 (六) 07:49的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot; &gt;第7行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第7行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==7620A GPIO pin share scheme==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==7620A GPIO pin share scheme==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;我们查看7620A的datasheet，会看到如下的GPIO引脚，&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;我们查看7620A的datasheet，会看到如下的GPIO引脚。（注：如下资料来自MT7620 datasheet）&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:111.jpg|800px|thumb|center|GPIO PIN]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:111.jpg|800px|thumb|center|GPIO PIN]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Shengkai81@gmail.com</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%B8%89%E8%AF%BE--MicroWRT_%E5%A4%8D%E7%94%A8GPIO%E7%9A%84%E4%BD%BF%E7%94%A8&amp;diff=5809&amp;oldid=prev</id>
		<title>Shengkai81@gmail.com：Created page with &quot;{| style=&quot;width: 800px;&quot; |- | 本节教程主要介绍如何释放及使用GPIO复用引脚。因为受芯片资源的限制，一些GPIO引脚是复用的，有时候我们...&quot;</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%B8%89%E8%AF%BE--MicroWRT_%E5%A4%8D%E7%94%A8GPIO%E7%9A%84%E4%BD%BF%E7%94%A8&amp;diff=5809&amp;oldid=prev"/>
				<updated>2014-11-08T07:48:17Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| style=&amp;quot;width: 800px;&amp;quot; |- | 本节教程主要介绍如何释放及使用GPIO复用引脚。因为受芯片资源的限制，一些GPIO引脚是复用的，有时候我们...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
本节教程主要介绍如何释放及使用GPIO复用引脚。因为受芯片资源的限制，一些GPIO引脚是复用的，有时候我们需要释放这些&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==7620A GPIO pin share scheme==&lt;br /&gt;
&lt;br /&gt;
我们查看7620A的datasheet，会看到如下的GPIO引脚，&lt;br /&gt;
&lt;br /&gt;
[[File:111.jpg|800px|thumb|center|GPIO PIN]]&lt;br /&gt;
[[File:112.jpg|800px|thumb|center|GPIO PIN]]&lt;br /&gt;
[[File:113.jpg|800px|thumb|center|GPIO PIN]]&lt;br /&gt;
&lt;br /&gt;
==GPIO的注册==&lt;br /&gt;
在openWrt的编译目录下，/target/linux/ramips/dts/mt7620n.dtsi里有对gpio的注册。&lt;br /&gt;
结合mt7620的datasheet里GPIO pin share schemes以及在mt7620n.dtsi里我们看到有，&lt;br /&gt;
将GPIO#0到GPIO#72（中间有仅仅做GPO或GPI的）分为四组GPIO0-GPIO3；&lt;br /&gt;
对应GPIO0是从GPIO#0开始到GPIO#23，一共有24个；对应GPIO1是从GPIO#24开始到GPIO#39，一共有16个；&lt;br /&gt;
对应GPIO2是从GPIO#40开始到GPIO#71，一共有32个；&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! rowspan=&amp;quot;1&amp;quot; | GPIO组 || GPIO引脚  || 引脚总数&lt;br /&gt;
|-&lt;br /&gt;
| GPIO group0 || GPIO#0 ~ GPIO#23 || 24&lt;br /&gt;
|-&lt;br /&gt;
| GPIO group1 || GPIO#24 ~ GPIO#39 || 16&lt;br /&gt;
|-&lt;br /&gt;
| GPIO group2 || GPIO#40 ~ GPIO#71 || 32&lt;br /&gt;
|-&lt;br /&gt;
| GPIO group3 || GPIO#72 || 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
GPIO 在dts中的描述：&lt;br /&gt;
[[File:114.jpg|800px|thumb|center|GPIO PIN in DTS]]&lt;br /&gt;
[[File:115.jpg|800px|thumb|center|GPIO PIN in DTS]]&lt;br /&gt;
[[File:116.jpg|800px|thumb|center|GPIO PIN in DTS]]&lt;br /&gt;
[[File:117.jpg|800px|thumb|center|GPIO PIN in DTS]]&lt;br /&gt;
&lt;br /&gt;
==注册GPIO引脚==&lt;br /&gt;
&lt;br /&gt;
我们的固件使用MZK-750DHP.dts 作为基础，并进行功能的添加。如果想用GPIO接口首先要使能GPIO并且释放gpio引脚复用功能。&lt;br /&gt;
在本教程中，我们将复用WLED引脚来控制LED灯的亮灭。通过查7620A的datasheet，可以知道WLED引脚对应GPIO#72，及第4组GPIO。&lt;br /&gt;
&lt;br /&gt;
1.首先来使能GPIO.&lt;br /&gt;
&lt;br /&gt;
打开ZXK-750DHP.dts, 做如下修改。&lt;br /&gt;
[[File:118.jpg|800px|thumb|center|Enable GPIO]]&lt;br /&gt;
&lt;br /&gt;
2.释放引脚复用功能&lt;br /&gt;
[[File:119.jpg|800px|thumb|center|Release GPIO]]&lt;br /&gt;
&lt;br /&gt;
3.注册GPIO&lt;br /&gt;
&lt;br /&gt;
dts里对设备的注册很简单，如gpio-leds的注册，compatible要与Led的驱动leds-gpio.c里compatible对应，label是设备的名字，&lt;br /&gt;
设备注册成功，在microWRT的文件系统下就会有 /sys/class/leds/microwrt:blue:air。&lt;br /&gt;
[[File:1110.jpg|800px|thumb|center|Release GPIO]]&lt;br /&gt;
&lt;br /&gt;
在microWRT的WLED 引脚和GND引脚之间接上一个LED，然后通过下面的命令来控制LED灯的亮灭。&lt;br /&gt;
 echo 1 &amp;gt; /sys/class/leds/microwrt\:blue\:air/brightness&lt;br /&gt;
 echo 0 &amp;gt; /sys/class/leds/microwrt\:blue\:air/brightness&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
&lt;br /&gt;
[[File:1110.jpg|800px|thumb|center|Result]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Shengkai81@gmail.com</name></author>	</entry>

	</feed>