deadprogram
ea371766fb
sysfs: define DigitalPinnerProvider and PWMPinnerProvider interfaces
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-05-01 09:23:15 +02:00
deadprogram
7429a159f4
sysfs: export DigitalPin to make it more like PWMPin
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-28 12:50:36 +02:00
deadprogram
54228b39e2
chip: increase test coverage
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-27 11:22:15 +02:00
deadprogram
df11a4e6af
sysfs: add file read/write testing for failure conditions
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-27 08:41:34 +02:00
deadprogram
62ebd67dea
sysfs: address race condition from udev rules when exporting GPIO pins
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-01 22:07:47 +02:00
deadprogram
fa9f6aefc3
sysfs: some additional cleanup suggested by golint
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-02 19:32:04 +01:00
Brian Stengaard
642ab409c1
Use Seek to speed up read/write in sysfs
...
This maintains `direction` and `value` `File`s for each DigitalPin
implementation. Instead of Open/Read/Close we now only do Seek/Read,
this speeds up Read/Write operations a bit.
A silly benchmark on the mock FS gives:
benchmark old ns/op new ns/op delta
BenchmarkDigitalRead-8 647 7.36 -98.86%
benchmark old allocs new allocs delta
BenchmarkDigitalRead-8 5 0 -100.00%
benchmark old bytes new bytes delta
BenchmarkDigitalRead-8 96 0 -100.00%
2016-02-18 21:18:45 +01:00
Adrian Zankich
22b84cc6ef
go lint and documentation tweaks for the sysfs package
2014-12-31 06:12:25 -08:00
Adrian Zankich
25919240c2
Account for already exported pins and unexportable pins
2014-12-23 12:43:55 -08:00
Adrian Zankich
a0bcef77fe
Refactor sysfs to use internal fs
2014-11-07 16:21:39 -08:00
Adrian Zankich
bf30571234
DigitalPin is now an interface
2014-11-03 19:02:20 -08:00
Adrian Zankich
e78257c201
Add docs
2014-10-30 16:22:25 -07:00
Adrian Zankich
a7cee22918
Add sysfs tests
2014-10-30 16:06:04 -07:00
Adrian Zankich
45c51400fc
beaglebone now uses sysfs package
2014-10-30 15:26:31 -07:00
Adrian Zankich
08c74113fb
Add label property to DigitalPin
2014-10-30 13:41:27 -07:00
Adrian Zankich
72bd6961e0
WIP switching linux sysfs io to shared package
2014-10-29 17:51:47 -07:00