Remember
Register
Home
/
Support
/
Support Forum
/
GPIO on 9210 EL - looking for steps on how to access GPIO 1 - not visible when using GPIO Module
Digi Forum
All Activity
Q&A
Questions
Hot!
Unanswered
Tags
Categories
Users
Ask a Question
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.
All categories
Digi Remote Manager
(389)
Python
(1,022)
RF Solutions and XBee
(8,455)
Digi TransPort
(791)
Digi Connect Cellular
(448)
DAL
(5)
Embedded Devices
(4,173)
Android
(45)
NET+OS
(2,445)
Linux
(964)
Windows CE
(86)
Plug N' Play
(466)
Google Coral
(2)
Rabbit
(3,202)
Console Servers
(354)
Modbus and Industrial Automation
(246)
Realport
(603)
Serial Servers
(837)
Satellite Modules
(25)
USB
(1,274)
Serial Cards
(715)
ConnectPort Display
(58)
Feedback/Wish List
(93)
Other/Legacy
(380)
GPIO on 9210 EL - looking for steps on how to access GPIO 1 - not visible when using GPIO Module
0
votes
gpio
embedded-linux
asked
May 8, 2018
in
Embedded Devices
by
pernsdorff
New to the Community
(
0
points)
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1 Answer
0
votes
If you can not access the pin it is probably taken by one of the enabled peripherals. In this case problably UART
0CTS UART A
Change your Uart to 2 wire only in kernel config and the pin should become free as GPIO
answered
May 8, 2018
by
LeonidM
Veteran of the Digi Community
(
4,454
points)
Thanks for the info.
I did finally do better reading of the documentation and realized I needed to correctly edit the makedevs.d resources.
I am having trouble trying to find appropriate examples of how to handle a pin to be interrupt driven. How to define the callback function.
There are two ways to work with GPIO
1) using GPIO example app & sample gpio kernel module.
Example app shows how to use interrupts.
2) using sysfs (recommended):
https://elinux.org/EBC_Exercise_11_gpio_Polling_and_Interrupts
With actual C example here:
https://developer.ridgerun.com/wiki/index.php?title=Gpio-int-test.c
Another good article here:
http://derekmolloy.ie/kernel-gpio-programming-buttons-and-leds/#Interrupts
Please
log in
or
register
to add a comment.
...