Justin Cooper
baa94193ac
Fix for SPI.cshigh
2013-12-28 11:15:16 -06:00
Justin Cooper
7617c873b0
bump version to 0.0.19, and update changelog
2013-11-25 18:15:11 +00:00
Justin Cooper
408ea386f0
fix xfer and xfer2 glibc errors
2013-11-25 17:56:30 +00:00
Zach Thorson
fa1b4a3e7e
Added a retry to reading for the analog inputs to avoid a bug where reading back and forth between two analog inputs would cause the resource to be unavailable every 16 scans
...
Corrected the readback of the success bit to correctly check for a read and raise an exception on failure
2013-11-20 14:52:04 -06:00
Zach Thorson
34d7e30e1a
Updated the build_path to be more selective over what paths it chooses (This should prevent chosing the wrong helper leading to seg faults)
...
Improved error messages when ADC fails to setup
Check for null file handle when opening AIN to prevent seg fault
2013-11-14 11:10:09 -06:00
Eric Lee
715e87d2ab
Increase the size of the buffer used for storing device tree names.
...
The previous buffer size was 9 which was not log enough to hold the name of the UART device tree items.
2013-09-21 23:30:34 -07:00
Justin Cooper
9d749903b0
include UART Overlays as part of installation
2013-09-12 02:07:32 +00:00
Justin Cooper
7c130826d6
bump for 0.0.17
2013-08-19 21:52:41 +00:00
Justin Cooper
a0902d971f
further pwm cleanup
2013-08-19 21:52:16 +00:00
Justin Cooper
69b617b67d
Merge pull request #29 from bit-hacker/patch-2
...
Clean up of PWM code
2013-08-19 14:43:44 -07:00
Justin Cooper
c83f6ef38d
fix memory leaks with spimodule
2013-08-19 21:35:17 +00:00
Justin Cooper
59dff1cfee
remove print statements
2013-08-19 21:25:04 +00:00
bit-hacker
fc4df3fdf1
Update c_pwm.c
...
In definition of struct pwm_exp, extended length of key by 1 to ensure room for a terminating byte. Currently, the code doesn't check this, expecting strncpy in pwm_start to trim and NUL-terminate the string.
In lookup_exported_pwm, return "not-found" condition as NULL, not 0, per general pointer usage recommendations.
In pwm_start, added code to ensure NUL-termination of the key.
In pwm_disable, there's a path that doesn't set prev_pwm and can leave it NULL. It being NULL seems to indicate a "first-time" flag, for when the first item in the list is matched. If the search should be terminated after finding device "key", should break be used? Reasonably, a device named "key" should only be found once in the tree, but as coded, it seems that this search loop might find it more than once.
In pwm_set_polarity, the original length of the buffer as 5 will cover positive 16-bit integers, but not room for a trailing NUL byte. If accidently negative, a size of 7 will include room for the sign without breaking.
2013-08-16 09:54:26 -07:00
Justin Cooper
a322ddc2c0
fix for polarity not getting set properly, add polarity as optional parameter in start
2013-08-15 03:55:08 +00:00
Justin Cooper
5f865a1b6c
remove unused variables
2013-08-12 21:28:46 +00:00
Justin Cooper
bd1c99bf93
bump version to 0.0.15
2013-08-12 21:27:08 +00:00
Justin Cooper
210693200a
bump version to 0.0.14 and update changelog
2013-08-12 21:26:06 +00:00
Justin Cooper
b9c2b3d6d7
Fix PWM duty cycle so 0 is off and 100 is on. Set polarity to 0 by default.
2013-08-12 21:25:51 +00:00
Chris Desjardins
6f2e0cf26a
Fix compiler error in gpio_set_value
2013-08-09 10:06:36 +02:00
Chris Desjardins
af62a5c9c9
Adding common.h to event_gpio.c
2013-08-09 10:01:29 +02:00
Chris Desjardins
10229240e4
The test_direction_readback fails, because gpio_get_direction wasn't properly null terminating the direction string
2013-08-09 09:57:56 +02:00
Chris Desjardins
d80be61311
Increase buffer size of filenames for value, direction, and edge files
2013-08-08 13:35:21 +02:00
Chris Desjardins
6d4aa520e6
Give extra buffer space in export, and unexport functions for gpio that are more than 2 digits
2013-08-08 12:56:21 +02:00
Justin Cooper
670bfcbf1c
better error handling of load_device_tree through adc, pwm, and uart
2013-07-30 19:34:24 +00:00
Zach Thorson
b313f8bcfc
- Removed type in python export
2013-07-29 16:59:49 -05:00
Zach Thorson
d30657c1ae
- Fixed broke GPIO.gpio_function() It should now allow calls with the IO Name
...
- Added unit tests for GPIO.gpio_function()
2013-07-29 16:53:11 -05:00
Justin Cooper
fb56ad916e
bump version to 0.0.13
2013-07-26 17:58:42 +00:00
Justin Cooper
6ab0c0da49
Merge pull request #15 from amscins/master
...
Pass the name of the GPIO to callbacks rather than the GPIO number.
2013-07-26 10:55:46 -07:00
Justin Cooper
2047922902
bump version for pypi issue
2013-07-26 17:52:26 +00:00
Chris Desjardins
b412e17e6c
Remove the gpio parameter from callbacks (it is useless)
2013-07-26 18:05:00 +02:00
Chris Desjardins
7b18706531
Fix bug in sizeof()
2013-07-26 17:55:35 +02:00
Chris Desjardins
089141070c
Add type for channel argument
2013-07-26 17:43:51 +02:00
Chris Desjardins
f82caf8f35
Update the code to invoke callback with the channel
2013-07-26 17:31:04 +02:00
Justin Cooper
0b45f8d36c
add small delay after loading any device tree overlays
2013-07-24 02:39:16 +00:00
Justin Cooper
004530a91c
remove debug statements, add device names
2013-07-23 20:40:22 +00:00
Justin Cooper
ffc58aee30
further support for UART exporting
2013-07-22 21:38:24 +00:00
Justin Cooper
b829cc4132
initial support to export uart
2013-07-22 21:04:29 +00:00
Justin Cooper
ee45a94e2f
bump to 0.0.11
2013-07-22 21:04:17 +00:00
Justin Cooper
691efb8eaf
fix for issue 14, seg faults with gpio events
2013-07-18 21:16:00 +00:00
Justin Cooper
5f50ae9c01
fix for spi overlays
2013-07-17 18:22:03 +00:00
Justin Cooper
5c09f8915a
fix for ADC segmentation faults, bump to 0.0.9
2013-07-09 20:13:47 +00:00
Justin Cooper
2a7643a7b1
temp remove overlay compilation
2013-07-03 16:59:11 +00:00
Justin Cooper
826ca2c41c
more SPI code, not working as of yet
2000-01-01 10:28:44 +00:00
Justin Cooper
c8b2057e1e
update copyright
2000-01-01 10:28:25 +00:00
Justin Cooper
a17284d4bf
update copyright notices
2013-07-01 21:01:58 +00:00
Justin Cooper
ab6dab6519
fix tests, initial non-working spi, refactor loading device tree
2000-01-01 00:06:09 +00:00
Justin Cooper
9f679aad42
bump to 0.0.6 for i2c
2000-01-01 00:51:45 +00:00
Justin Cooper
de7186368f
rename BBIO to Adafruit_BBIO
2013-06-27 02:50:45 +00:00
Justin Cooper
5df7f2fe10
update for pip and easy_install
2013-06-26 15:38:34 +00:00
Justin Cooper
f85ce1217a
update installation to support pip and easy_install
2013-06-26 01:32:16 +00:00
Justin Cooper
1da7cd7449
Remove debugging fprintf statements
2013-06-25 15:25:43 -05:00
Justin Cooper
c61b5ad4c5
Increase string size for adc directories.
2013-06-25 12:50:19 -05:00
Justin Cooper
1cb744f956
bump version for adc, and update readme with adc
2000-01-01 04:01:11 +00:00
Justin Cooper
bdafa9a6c5
working adc, remove cleanup, add read_raw
2000-01-01 03:57:40 +00:00
Justin Cooper
78610e35a2
clean up adc, and add test
2000-01-01 00:03:14 +00:00
Justin Cooper
651395582a
initial adc commit
2000-01-03 02:00:52 +00:00
Justin Cooper
51182a3163
add ain lookup
2000-01-03 02:00:37 +00:00
Justin Cooper
465ce81caa
remove unused code
2000-01-03 02:00:27 +00:00
Justin Cooper
c10c172443
remove c_gpio.h include
2013-06-12 21:47:52 -05:00
Justin Cooper
5343ed160a
add copyright and license notices
2000-01-01 00:04:25 +00:00
Justin Cooper
c358731349
working wait_for_edge and event_detect functionality
2013-06-12 17:00:29 +00:00
Justin Cooper
95e10ef4a0
fix reading gpio inputs
2013-06-12 04:41:57 +00:00
Justin Cooper
8bfd2680e7
remove debug statement
2013-06-12 04:41:40 +00:00
Justin Cooper
2a459f3c8c
remove debugging statement
2013-06-12 03:31:07 +00:00
Justin Cooper
f3e1f64224
add pwm mux mode to pwm struct, and check for pwm key validity
2013-06-12 02:46:48 +00:00
Justin Cooper
e240e73bb1
fix return for failed pwm key lookup
2013-06-11 20:46:25 +00:00
Justin Cooper
844a19570e
pwm working per the tests
2013-06-11 20:45:46 +00:00
Justin Cooper
1a31f1714e
initial duty and frequency settings for pwm
2013-06-11 05:55:46 +00:00
Justin Cooper
1258c651cb
Initial Commit
2013-06-10 20:16:39 +00:00