79
79
< meta property ="og:site_name " content ="ADLINK Industrial Pi Wiki ">
80
80
< meta property ="og:description " content ="40-Pin I/O Headers Utility on I-Pi SMARC RB5This document provides detailed instructions for utilizing the GPIO pins on the I-Pi SMARC RB5 module based on Linux. Prerequisites Power up the target ">
81
81
< meta property ="og:locale " content ="en_US ">
82
- < meta property ="og:image " content ="https://docs.ipi.wiki/smarc/GPIOUtility.assets/lec-rb5-001.png ">
83
- < meta property ="og:image " content ="https://docs.ipi.wiki/smarc/GPIOUtility.assets/lec-rb5-002.png ">
84
- < meta property ="og:image " content ="https://docs.ipi.wiki/smarc/GPIOUtility.assets/lec-rb5-003.png ">
85
- < meta property ="og:image " content ="https://docs.ipi.wiki/smarc/GPIOUtility.assets/lec-rb5-004.png ">
86
- < meta property ="article:published_time " content ="2024-10-18T06:49:27.078Z ">
87
- < meta property ="article:modified_time " content ="2024-10-18T06:49:27.078Z ">
82
+ < meta property ="og:image " content ="https://docs.ipi.wiki/smarc/ipi-smarc-rb5/ GPIOUtility.assets/lec-rb5-001.png ">
83
+ < meta property ="og:image " content ="https://docs.ipi.wiki/smarc/ipi-smarc-rb5/ GPIOUtility.assets/lec-rb5-002.png ">
84
+ < meta property ="og:image " content ="https://docs.ipi.wiki/smarc/ipi-smarc-rb5/ GPIOUtility.assets/lec-rb5-003.png ">
85
+ < meta property ="og:image " content ="https://docs.ipi.wiki/smarc/ipi-smarc-rb5/ GPIOUtility.assets/lec-rb5-004.png ">
86
+ < meta property ="article:published_time " content ="2024-10-18T07:46:37.495Z ">
87
+ < meta property ="article:modified_time " content ="2024-10-18T07:46:37.495Z ">
88
88
< meta property ="article:author " content ="ADLINK Technology Inc. All Rights Reserved. ">
89
89
< meta name ="twitter:card " content ="summary ">
90
- < meta name ="twitter:image " content ="https://docs.ipi.wiki/smarc/GPIOUtility.assets/lec-rb5-001.png ">
90
+ < meta name ="twitter:image " content ="https://docs.ipi.wiki/smarc/ipi-smarc-rb5/ GPIOUtility.assets/lec-rb5-001.png ">
91
91
<!-- Google Analytics -->
92
92
93
93
< script >
@@ -162,13 +162,19 @@ <h2 id="Utilizing-the-GPIO-Pins-with-Linux" class="article-heading"><a href="#Ut
162
162
< blockquote class ="note info "> < p > < strong > Note:</ strong > The GPIO base number may differ for different modules.</ p >
163
163
</ blockquote >
164
164
165
- < p > < img src ="/smarc/GPIOUtility.assets/lec-rb5-001.png "> </ p >
165
+ < center >
166
+ < img src ="GPIOUtility.assets/lec-rb5-001.png ">
167
+ </ center >
168
+
166
169
< ul >
167
170
< li > To read GPIO Pin Attributes</ li >
168
171
</ ul >
169
172
< figure class ="highlight plaintext "> < table > < tr > < td class ="code "> < pre > < span class ="line "> cat direction</ span > < br > < span class ="line "> cat edge</ span > < br > < span class ="line "> cat value</ span > < br > </ pre > </ td > </ tr > </ table > </ figure >
170
173
171
- < p > < img src ="/smarc/GPIOUtility.assets/lec-rb5-002.png "> </ p >
174
+ < center >
175
+ < img src ="GPIOUtility.assets/lec-rb5-002.png ">
176
+ </ center >
177
+
172
178
< p > < strong > GPI</ strong > </ p >
173
179
< ul >
174
180
< li > To set GPIO direction as input</ li >
@@ -180,7 +186,10 @@ <h2 id="Utilizing-the-GPIO-Pins-with-Linux" class="article-heading"><a href="#Ut
180
186
</ ul >
181
187
< figure class ="highlight plaintext "> < table > < tr > < td class ="code "> < pre > < span class ="line "> cat value</ span > < br > </ pre > </ td > </ tr > </ table > </ figure >
182
188
183
- < p > < img src ="/smarc/GPIOUtility.assets/lec-rb5-003.png "> </ p >
189
+ < center >
190
+ < img src ="GPIOUtility.assets/lec-rb5-003.png ">
191
+ </ center >
192
+
184
193
< p > < strong > GPO</ strong > </ p >
185
194
< ul >
186
195
< li > To write the direction of a pin to output</ li >
@@ -197,7 +206,10 @@ <h2 id="Utilizing-the-GPIO-Pins-with-Linux" class="article-heading"><a href="#Ut
197
206
</ ul >
198
207
< figure class ="highlight plaintext "> < table > < tr > < td class ="code "> < pre > < span class ="line "> echo 0 > value</ span > < br > </ pre > </ td > </ tr > </ table > </ figure >
199
208
200
- < p > < img src ="/smarc/GPIOUtility.assets/lec-rb5-004.png "> </ p >
209
+ < center >
210
+ < img src ="GPIOUtility.assets/lec-rb5-004.png ">
211
+ </ center >
212
+
201
213
< p > < strong > GPIO Pin Configurations</ strong > </ p >
202
214
< p > On CN1001 expansion connector E_GPIO and S_GPIO is available. These GPIO pins are mapped by to following numbers</ p >
203
215
< p > < strong > S_GPIO</ strong > :</ p >
@@ -208,8 +220,8 @@ <h2 id="Utilizing-the-GPIO-Pins-with-Linux" class="article-heading"><a href="#Ut
208
220
209
221
</ div >
210
222
< footer class ="article-footer ">
211
- < time class ="article-footer-updated " datetime ="2024-10-18T06:49:27.078Z " itemprop ="dateModified "> Last updated: 2024-10-18</ time >
212
- < a href ="index .html " class ="article-footer-next " title ="Introduction "> < span > Next</ span > < i class ="fa fa-chevron-right "> </ i > </ a >
223
+ < time class ="article-footer-updated " datetime ="2024-10-18T07:46:37.495Z " itemprop ="dateModified "> Last updated: 2024-10-18</ time >
224
+ < a href ="CarrierIntroduction .html " class ="article-footer-prev " title ="Carrier Introduction" > < i class =" fa fa-chevron-left " > </ i > < span > Prev </ span > </ a > < a href =" UART.html " class =" article-footer-next " title =" UART "> < span > Next</ span > < i class ="fa fa-chevron-right "> </ i > </ a >
213
225
</ footer >
214
226
215
227
</ div >
@@ -227,7 +239,7 @@ <h2 id="Utilizing-the-GPIO-Pins-with-Linux" class="article-heading"><a href="#Ut
227
239
</ article >
228
240
< aside id ="sidebar " role ="navigation ">
229
241
< div class ="inner ">
230
- < strong class ="sidebar-title "> < details open > < summary > Getting Started</ summary > < a href ="index.html " class ="sidebar-link first "> Introduction</ a > < a href ="UserInterfaces.html " class ="sidebar-link "> User Interfaces</ a > < a href ="HowToSetup.html " class ="sidebar-link "> How to Setup</ a > </ details > </ strong > < strong class ="sidebar-title "> < details open > < summary > Hardware Documentation</ summary > < a href ="ModuleIntroduction.html " class ="sidebar-link first "> Module Introduction</ a > < a href ="CarrierIntroduction.html " class ="sidebar-link "> Carrier Introduction</ a > </ details > </ strong > < strong class ="sidebar-title "> < details open > < summary > Software Documentation</ summary > < a href ="GpioUtility.html " class ="sidebar-link first "> GPIO Utility</ a > < a href ="UART.html " class ="sidebar-link "> UART</ a > </ details > </ strong > < strong class ="sidebar-title "> < details open > < summary > Software Guideline</ summary > < a href ="SerialLogReadUART.html " class ="sidebar-link first "> How to Read Console Output</ a > < a href ="LECRB5NUbuntuFlashProcedure.html " class ="sidebar-link "> Flashing Ubuntu</ a > </ details > </ strong > < strong class ="sidebar-title "> < details open > < summary > AI Inferencing on NPU</ summary > < a href ="NeuralProcessingSDKForAI.html " class ="sidebar-link first "> Qualcomm Neural Processing SDK</ a > </ details > </ strong >
242
+ < strong class ="sidebar-title "> < details open > < summary > Getting Started</ summary > < a href ="index.html " class ="sidebar-link first "> Introduction</ a > < a href ="UserInterfaces.html " class ="sidebar-link "> User Interfaces</ a > < a href ="HowToSetup.html " class ="sidebar-link "> How to Setup</ a > </ details > </ strong > < strong class ="sidebar-title "> < details open > < summary > Hardware Documentation</ summary > < a href ="ModuleIntroduction.html " class ="sidebar-link first "> Module Introduction</ a > < a href ="CarrierIntroduction.html " class ="sidebar-link "> Carrier Introduction</ a > </ details > </ strong > < strong class ="sidebar-title "> < details open > < summary > Software Documentation</ summary > < a href ="GPIOUtility.html " class ="sidebar-link current first "> GPIO Utility</ a > < a href ="UART.html " class ="sidebar-link "> UART</ a > </ details > </ strong > < strong class ="sidebar-title "> < details open > < summary > Software Guideline</ summary > < a href ="SerialLogReadUART.html " class ="sidebar-link first "> How to Read Console Output</ a > < a href ="LECRB5NUbuntuFlashProcedure.html " class ="sidebar-link "> Flashing Ubuntu</ a > </ details > </ strong > < strong class ="sidebar-title "> < details open > < summary > AI Inferencing on NPU</ summary > < a href ="NeuralProcessingSDKForAI.html " class ="sidebar-link first "> Qualcomm Neural Processing SDK</ a > </ details > </ strong >
231
243
</ div >
232
244
</ aside >
233
245
</ div >
@@ -285,7 +297,7 @@ <h2 id="Utilizing-the-GPIO-Pins-with-Linux" class="article-heading"><a href="#Ut
285
297
< a href ="https://github.com/adlink " class ="mobile-nav-link " rel ="external " target ="_blank "> GitHub</ a >
286
298
</ ul >
287
299
288
- < strong class ="mobile-nav-title "> < details open > < summary > Getting Started</ summary > < a href ="index.html " class ="mobile-nav-link first "> Introduction</ a > < a href ="UserInterfaces.html " class ="mobile-nav-link "> User Interfaces</ a > < a href ="HowToSetup.html " class ="mobile-nav-link "> How to Setup</ a > </ details > </ strong > < strong class ="mobile-nav-title "> < details open > < summary > Hardware Documentation</ summary > < a href ="ModuleIntroduction.html " class ="mobile-nav-link first "> Module Introduction</ a > < a href ="CarrierIntroduction.html " class ="mobile-nav-link "> Carrier Introduction</ a > </ details > </ strong > < strong class ="mobile-nav-title "> < details open > < summary > Software Documentation</ summary > < a href ="GpioUtility.html " class ="mobile-nav-link first "> GPIO Utility</ a > < a href ="UART.html " class ="mobile-nav-link "> UART</ a > </ details > </ strong > < strong class ="mobile-nav-title "> < details open > < summary > Software Guideline</ summary > < a href ="SerialLogReadUART.html " class ="mobile-nav-link first "> How to Read Console Output</ a > < a href ="LECRB5NUbuntuFlashProcedure.html " class ="mobile-nav-link "> Flashing Ubuntu</ a > </ details > </ strong > < strong class ="mobile-nav-title "> < details open > < summary > AI Inferencing on NPU</ summary > < a href ="NeuralProcessingSDKForAI.html " class ="mobile-nav-link first "> Qualcomm Neural Processing SDK</ a > </ details > </ strong >
300
+ < strong class ="mobile-nav-title "> < details open > < summary > Getting Started</ summary > < a href ="index.html " class ="mobile-nav-link first "> Introduction</ a > < a href ="UserInterfaces.html " class ="mobile-nav-link "> User Interfaces</ a > < a href ="HowToSetup.html " class ="mobile-nav-link "> How to Setup</ a > </ details > </ strong > < strong class ="mobile-nav-title "> < details open > < summary > Hardware Documentation</ summary > < a href ="ModuleIntroduction.html " class ="mobile-nav-link first "> Module Introduction</ a > < a href ="CarrierIntroduction.html " class ="mobile-nav-link "> Carrier Introduction</ a > </ details > </ strong > < strong class ="mobile-nav-title "> < details open > < summary > Software Documentation</ summary > < a href ="GPIOUtility.html " class ="mobile-nav-link current first "> GPIO Utility</ a > < a href ="UART.html " class ="mobile-nav-link "> UART</ a > </ details > </ strong > < strong class ="mobile-nav-title "> < details open > < summary > Software Guideline</ summary > < a href ="SerialLogReadUART.html " class ="mobile-nav-link first "> How to Read Console Output</ a > < a href ="LECRB5NUbuntuFlashProcedure.html " class ="mobile-nav-link "> Flashing Ubuntu</ a > </ details > </ strong > < strong class ="mobile-nav-title "> < details open > < summary > AI Inferencing on NPU</ summary > < a href ="NeuralProcessingSDKForAI.html " class ="mobile-nav-link first "> Qualcomm Neural Processing SDK</ a > </ details > </ strong >
289
301
290
302
</ div >
291
303
0 commit comments