1
0
mirror of https://github.com/kidoman/embd synced 2024-10-31 23:38:44 +01:00
Commit Graph

51 Commits

Author SHA1 Message Date
Wu Jiang
aee34f1a02 Merge b02fcae87d into d3d8c0c5c6 2017-05-08 01:30:54 +00:00
Thorsten von Eicken
b6706df9a8 make fork ready for merge-back 2016-09-06 21:07:29 -07:00
Thorsten von Eicken
49e6cc504d Merge pull request #4 from gotang/master
fix fatal error: concurrent map read and map write
2016-09-05 23:36:21 -07:00
Thorsten von Eicken
6cfa481f30 Support SPI minor devices >255 (PR #33) 2016-09-05 23:13:14 -07:00
Thorsten von Eicken
e16818f0aa add support for NextThing CHIP, part 3 2016-08-27 00:35:21 -07:00
Thorsten von Eicken
4503849da9 Merge pull request #3 from gavincabbage/gavincabbage-readbytes
Gavincabbage readbytes
2016-08-27 00:34:45 -07:00
Thorsten von Eicken
e7d28415a8 Merge pull request #1 from wiless/master
Fix SPIController issue with missing fields
2016-08-27 00:32:08 -07:00
Thorsten von Eicken
091d6f5588 gpio: don't fail if pin is already exported 2016-08-26 23:02:41 -07:00
Thorsten von Eicken
938a071c1a add minimal support for NextThing CHIP, part 2 2016-08-26 23:02:11 -07:00
gotang
6021814731 fix fatal error: concurrent map read and map write 2016-08-20 14:10:49 +08:00
wiless
c3462ff178 Merge branch 'master' of github.com:kidoman/embd 2016-04-22 07:02:11 +05:30
Wu Jiang
b02fcae87d Give rpi some time to link digital pin property
It looks like Raspberry pi needs some time to get a digital pin
link properly after it is being exported.

Sample code to run:

```go
package main

import (
        "fmt"

        "github.com/kidoman/embd"
         _ "github.com/kidoman/embd/host/rpi"
)

func main() {
        defer embd.CloseGPIO()
        fmt.Println(embd.SetDirection(10, embd.Out))
}

```

- before the change, the output is:
`open /sys/class/gpio/gpio10/direction: permission denied`

- after the change, the output is `<nil>`

Close #52
2016-01-21 15:42:27 -05:00
Wu Jiang
42be169804 Fix typo
TransferAndRecieveData --> TransferAndReceiveData
2015-12-22 12:54:33 -05:00
ssk
c1886eb5bf Fixed SPIController issue with missing fields 2015-11-03 19:24:27 +05:30
Gavin Cabbage
b296368a05 removing failed Stat use 2015-10-10 23:58:24 -04:00
Gavin Cabbage
9d8285ca01 changed ReadBytes to get file size from stat 2015-10-10 23:23:40 -04:00
Gavin Cabbage
2e6bd46354 i2c: added ReadBytes to I2CBus 2015-08-29 00:42:44 -04:00
Karan Misra
69dfee5f75 rpi: add link to revision number details 2015-01-15 07:28:59 +05:30
Karan Misra
de0ad53f3f rpi: add support for rpi a+/b+ 2015-01-15 06:55:55 +05:30
Karan Misra
6003f2249d gpio: consistent naming 2015-01-15 05:35:21 +05:30
Ben Delarre
b6f5d8d640 spi: added write method to allow writing without transfer delays 2015-01-15 05:33:49 +05:30
Karan Misra
c76ff101c6 Merge pull request #11 from SjB/gpio/interrupt
gpio: adding interrupt
2014-09-10 09:23:36 +05:30
alsm
9401acd013 embd, rpi: determine pi revision, make rev2 pinmap default
added a function to determine the revision of the pi the program is
running on from "Revision" field in /proc/cpuinfo, also made the rev2
gpio pinmap the default
2014-09-09 15:57:27 +01:00
SjB
0fa1d1b61c gpio: adding interrupt
this is inspired by Dave Cheney's gpio library and his work on EPOLL
2014-09-02 23:12:55 -04:00
kunalpowar
5965ddf789 spi: fix for breaking build 2014-05-22 03:03:22 +05:30
kunalpowar
32c9a96af5 spi: remove types from const declarations and added few more go docs 2014-05-22 02:58:15 +05:30
kunalpowar
67d316851a spi: finishing touches 2014-05-22 02:22:18 +05:30
kunalpowar
454eca42d0 spi: got rid of shouldInitialize arg in spibus (redundant). 2014-05-22 02:22:18 +05:30
kunalpowar
9206358abe spi: refactoring for err handling 2014-05-22 02:22:18 +05:30
kunalpowar
1bb2bac8f1 spi: variables/method name, err handling changes to follow idiomatic go 2014-05-22 02:22:18 +05:30
kunalpowar
59958d7dfc mcp3008: added package and samples for mcp3008 10-bit 8-channel adc 2014-05-03 21:35:09 +05:30
kunalpowar
42033238e2 spi: use a initializer if required by any host 2014-05-01 22:44:41 +05:30
Kunal Powar
faa686f01c spi: changes in fields/symbols to follow idiomatic go 2014-04-28 03:13:57 +05:30
Kunal Powar
12db8443b0 spi: added spi feature for all bbb and rpi 2014-04-28 01:18:14 +05:30
Karan Misra
9ac0872493 rpi: led support
this adds support for controlling the green LED (the one next to the red
power LED)
2014-04-11 09:12:45 +05:30
Kunal Powar
68ba342e1b i2c: added debug logs 2014-04-10 07:38:14 +05:30
Kunal Powar
2ee0cbc899 i2c: fixed missing init call 2014-04-10 07:29:06 +05:30
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
36f2c0486d simplify package structure 2014-03-03 00:51:23 +05:30
Karan Misra
3cae4064dc be specific about the unsupported host 2014-03-02 19:39:30 +05:30
Karan Misra
1ebbe540a5 remove trailing white space 2014-03-02 19:39:04 +05:30
Karan Misra
4e67e7eb11 fix a bunch of build errors 2014-03-02 12:09:57 +05:30
Karan Misra
d0cc5f4e35 fixed parsing of the raspberry pi's kernel version 2014-03-02 01:54:01 +05:30
Karan Misra
02defd2cc0 adhere to the go style guide 2014-03-02 01:21:52 +05:30
Karan Misra
3d08995000 make the framework easier to begin with 2014-03-01 20:19:44 +05:30
Karan Misra
ef87ad7879 make the process of registered available hosts less clunky 2014-02-27 05:59:38 +05:30
Karan Misra
2504678ba9 move the generic gpio/i2c drivers to their own folder 2014-02-27 05:34:36 +05:30
Karan Misra
860de34cb2 bbb: do not export pins 2014-02-27 05:21:24 +05:30
Kunal Powar
66d0ab22fd added BeagleBone Black (bbb) as one of the supported hosts 2014-02-27 05:17:21 +05:30
Karan Misra
6ea4e31399 more streamlining 2014-02-27 04:44:50 +05:30