SjB
5f8a0fced0
Stop Watching pin when Closing
...
Closing a pin will automatically check and close any pin that where being
watch for interrupt.
2014-04-09 00:38:19 -04:00
SjB
e1a90ade4f
Code cleanup in NewGPIODriver func.
...
Don't assign the object to a variable just return it right away.
2014-04-09 00:09:13 -04:00
SjB
919b01a3a2
Refactored Interruptable GPIO codes
...
Created two new Interface and hid implementation details as much as possible.
2014-04-09 00:01:05 -04:00
SjB
a54e7dc7ff
Initial attempt to implemented GPIO Interrupts
...
Basicly imported Dave Cheney's code from
http://github.com/davecheney/gpio
2014-04-08 23:09:21 -04:00
Karan Misra
c35deeb17c
host specific drivers can now be loaded separately
...
this ensures cleaner abstractions/code and will ensure that the produced
binary is as small as possible. a convenience package is provided to
easily load all hosts easily: "github.com/kidoman/embd/host/all"
2014-04-06 06:50:09 +05:30
Karan Misra
57328c979d
gpio: implement pin caching
...
this allows for the short version of the API to work as expected as
consecutive calls to the same pin would now be internally working on the
pin instance (all the 3 currently supported types). closing a pin busts
the cache
2014-04-06 05:30:54 +05:30
Karan Misra
6f90af377d
gpio: create types for the pin factory methods
2014-04-06 04:52:11 +05:30
Kunal Powar
14b078a43e
gpio: pwm support for bbb
2014-03-28 08:32:22 +05:30
Karan Misra
2d627aad67
gpio: CapNormal -> CapAnalog
2014-03-23 14:11:09 +05:30
Karan Misra
0002d02c28
add documentation
2014-03-23 14:09:31 +05:30
Karan Misra
0405cf3f14
- GPIO -> GPIODriver
...
- I2C -> I2CDriver
2014-03-23 06:32:24 +05:30
Karan Misra
d64682bf34
gpio: analog pin support for the bbb
2014-03-23 04:59:35 +05:30
Karan Misra
f667c93b7a
gpio: simplify and test the logic
2014-03-23 02:32:26 +05:30
Karan Misra
d193c200ea
gpio: rename
2014-03-23 02:10:23 +05:30