Comments (4)
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.
Thank for your reply @xtacocorex . Great explanation
from chip_io.
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.
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)
- adding callback functions on any pin that supports edge detection not work HOT 8
- setup doesn't work twice HOT 6
- Per PWM Cleanup
- Think about ability to specify GPIO number for all functions
- Investigate SBC determination using model number in the device tree HOT 2
- CHIP_IO low-level library for using in other scripting languages HOT 1
- Allow callback functionality for PWM1, I2S-MCLK, and I2S-DI on the CHIP Pro
- Edge/Interrupt detection on the C.H.I.P. Pro HOT 9
- bounce time HOT 1
- Could not open GPIO 1015 value file HOT 2
- Verify module level documentation
- Create API Documentation HOT 1
- wait_for_edge() timeout
- Adding error catching for pins in event_gpio.c that are being used by the system while in debug mode
- binary wheel pypi package? HOT 2
- gpio_export: something went wrong: No such file or directory HOT 5
- Cleanup Servo code to leverage SoftPWM as a basis HOT 1
- Intermittent GPIO RuntimeError
- Segmentation fault HOT 2
- No signs of life with Servo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chip_io.