Beagone Black Internall pull-up / pull-down on GPIO

62 views
Skip to first unread message

Denys Trofymenko

unread,
Dec 29, 2014, 8:43:06 AM12/29/14
to libbu...@googlegroups.com
Hi, I know (from BBB documentation) that we can configure internall pull-ups or pull-downs.
Is this implemented in the libbouldog library? if yes, how can i use it.
thanks

Hannes

unread,
Dec 29, 2014, 1:06:45 PM12/29/14
to libbu...@googlegroups.com
Not your request answer, but:

For all who work with device trees:

Very helpful!

Not sure if libbulldog overwrite this settings ... or you can call this after.


Datenheld

unread,
Dec 29, 2014, 6:36:32 PM12/29/14
to libbu...@googlegroups.com
Thanks Hannes.

This feature (pullup/pulldown) is currently not implemented but I might add it in a future release. Currently, it is questionable wether this project will be continued or be part of another project that is somewhat bigger. That's why development is currently on hold - until the other projects develops some pace or is abandoned. Let's see next year. Either way, it will be a win-win situation for users.

Denys Trofymenko

unread,
Jan 4, 2015, 10:29:57 PM1/4/15
to libbu...@googlegroups.com
Thanks Datenheld and Hannes,
I am not an expert in Embedded Linux or device tree, and how the OS kernel is related with Hw, etc.

I found this post that explains how to use gpio on BBB via sysfs (shell command line) in linux.


the example is like this: 
echo 7 > /sys/kernel/debug/omap_mux/gpmc_ad6
echo 38 > /sys/class/gpio/export
echo in > /sys/class/gpio/gpio38/direction
cat /sys/class/gpio/gpio38/value
do you think i could use this in the linux boot to set up my gpio pull up / pull down input pin (only the first line where I set the pin mode, direction and pull up/down)? or I should better use the method proposed by Hannes and compile device tree?

thanks very much, I know that its not very related to the libbouldog but I really appreciate if you give me your opinion.

Denys 


Reply all
Reply to author
Forward
0 new messages