1
0
mirror of https://github.com/xtacocorex/CHIP_IO synced 2025-07-19 12:23:22 +00:00

184 Commits

Author SHA1 Message Date
71b6829804 Reworked a lot of error handling. 2016-07-02 18:57:03 -05:00
093922567a Added a bunch of sanity checking 2016-06-26 14:28:06 -05:00
5ad81066b2 Merge branch 'master' into new_xio
# Conflicts:
#	source/common.h
#	source/py_gpio.c
2016-06-25 20:13:09 -05:00
1f4714a351 Got rid of last of GPIO port constants from code. 2016-06-25 20:02:45 -05:00
34167a9574 Some (not all) of the changes for the new XIO base addr 2016-06-21 17:40:00 -05:00
baaa5774db Updating the gpio_direction array to contain all the possible gpio. Not sure how this wasn't fubaring the code. 2016-06-20 20:25:17 -05:00
409c803aa5 Forgot about the XIO checking in py_gpio.c for edge detection code. 2016-06-20 20:24:18 -05:00
0f89ae462c Simple updated to the XIO base logic based upon suggestions by fordsford 2016-06-18 15:06:39 -05:00
99193144f1 Stupid logic error preventing XIO-P1 or higher to work. Fixed now 2016-06-18 14:44:36 -05:00
818be5202e Fixing the code to handle pulling the right XIO base number due to the change in the CHIP OS 1.1 with the 4.4 kernel, thanks to howientc and fordsfords for their help 2016-06-18 14:34:41 -05:00
133453c57e Merge pull request #3 from aninternetof/feature/Add_softpwm_rebased
Add software PWM
2016-05-09 13:45:31 -05:00
2ebbffd137 Edits copyright name on SOFTPWM files 2016-05-09 18:42:36 +00:00
bfb660e371 Fixes gpio name in SOFTPWM examples 2016-05-09 18:33:48 +00:00
3c912ecb72 Reverts accidental change to c_pwm 2016-05-06 17:38:51 +00:00
f5063c199c Corrects backwards polarity 2016-05-06 17:30:14 +00:00
0cae62be43 Update README.rst 2016-05-06 17:30:14 +00:00
67dd919fed Adds softpwm test 2016-05-06 17:30:13 +00:00
9ef55ede59 Makes default polarity 1 2016-05-06 17:30:13 +00:00
2f3172568a Fixes bugs with creating thread. Forces 0 and 100 duty cycles 2016-05-06 17:30:13 +00:00
9538a4f52b Adds softpwm dependency on event_gpio 2016-05-06 17:30:13 +00:00
41203a46a6 Adds mutex protection 2016-05-06 17:30:12 +00:00
d7bf982b11 Adds softpwm disabling and restructures thread 2016-05-06 17:30:12 +00:00
9645d2aae3 Sets up softpwm struct and thread 2016-05-06 17:30:11 +00:00
9ac22c32cd Adds softpwm files 2016-05-06 17:30:11 +00:00
777fda06a3 Fixing issue #2, edge detection for the XIO pins now works, simple logic issue in the if statement for throwing errors if gpio number is bad 2016-04-18 19:31:08 -05:00
6e7dd4984c Updating the README to include notes on edge detection and fixing the first line since it wasn't formatted the way I wanted 2016-04-09 10:27:53 -05:00
0e1cf46c4e Addressing Issue #1, adding the ability to set the AP-EINT1 and AP-EINT3 pins as useable for edge detection and callbacks 2016-04-08 21:47:42 -05:00
c2ab013a5d Adding protection for to the GPIO to only allow edge detection and call back on the XIO pins, clean up of the PWM, updated test code 2016-04-02 19:48:57 -05:00
cea44c287d PWM support fixed, the test fails when trying to change the frequency, but I don't think that's an issue. Have not run this against something that needs PWM to operate, but the .dtb I have loaded has /sys/class/pwm/pwmchip0 and it can be configured with this code 2016-02-29 13:04:35 -06:00
1b7beac587 Updating the readme for PWM instructions and added a test case for PRM which hasn't been tested 2016-02-26 08:48:07 -06:00
9d593828ae Initial PWM support for the CHIP even though the base .dtb does not support, this is untested 2016-02-25 22:38:58 -06:00
91918f8f36 Removing accidentally commited bytecompiled test code 2016-02-25 18:53:51 -06:00
01ae605491 Initial commit, working GPIO for all available CHIP GPIO pins, have not tested edge detection and callbacks 2016-02-24 21:48:40 -06:00
3f17904ea1 Initial commit 2016-02-22 18:54:52 -06:00