GithubHelp home page GithubHelp logo

GPIO.PUD_DOWN about chip_io HOT 4 CLOSED

xtacocorex avatar xtacocorex commented on May 9, 2024
GPIO.PUD_DOWN

from chip_io.

Comments (4)

xtacocorex avatar xtacocorex commented on May 9, 2024

The options are there, but they don't actually do anything. In RPi.GPIO, it sets that setting in the GPIO registers of the Broadcom SOC. In the BeagleBone Black IO library (from which this is ported), it only set the initial value. The BBB IO and CHIP_IO don't do direct access to the processor like the the Raspberry Pi library.

I'm pretty sure the code for it got removed in the shuffle when the CHIP moved from a 4.3 kernel to a 4.4 kernel. I need to look at the prior commits and try to resurrect that code, if it exists.

I'm pretty busy tomorrow with some car maintenance I have to take care of, but I'll change this to a bug to make sure i re-implement whatever I find.

from chip_io.

nalakawula avatar nalakawula commented on May 9, 2024

Thank for your reply @xtacocorex . Great explanation

from chip_io.

xtacocorex avatar xtacocorex commented on May 9, 2024

So in looking at the old code for handling the pull up down stuff, all it did was look to see if it was specified. If it was set it incorrectly wrote the value to the Pin you were trying to export (in looking I found out why I had some stupid case for just the XIO because I introduced a bug in the code early on in the port).

There is no need for me to actually bring code back in, since what I wanted to bring in is incorrect and doesn't do anything.

I did go look at the BeagleBone Black IO Library just a bit ago and they now use the pull up and down stuff to set the mode on the BBB's OMAP processor. Their way is specific to that processor, so it won't work on the CHIP. But their method of doing so involves writing to sysfs, so there is hope that I can find a similar way for the CHIP.

Going to keep this open while I determine what I can actually do to get this actually working.

from chip_io.

xtacocorex avatar xtacocorex commented on May 9, 2024

Big thanks to @WereCatf for the code help with getting this implemented. I have verified that the registers are getting set with my code that I'm about to push up that will close this issue.

from chip_io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.