Private
Public Access
2
0
Commit Graph

118 Commits

Author SHA1 Message Date
Brendan Le Foll
8c9650caa3 gpio: reworking of gpio IO calls
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-06 09:32:07 +01:00
Brendan Le Foll
60c90be693 gpio: use strtol instead of atoi
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-02 16:33:36 +01:00
Brendan Le Foll
09cec0931b swig: add unexport() calls to be used by destructors in object api
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-02 16:33:36 +01:00
Thomas Ingleby
e96df16f75 pinmap: GPIO pin map added.
* maa_gpio_init can take the IO number read physically off the board.
* maa_check_gpio will also set up mutiplexers if needed
* Intel Galileo Rev D board data added

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-01 16:55:23 +01:00
Thomas Ingleby
0c0633e724 gpio: Add support for setting GPIO ouput drive.
*Supports all exposed to sysfs

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-04-29 16:55:54 +01:00
Thomas Ingleby
226c6bcb66 gpio: Matured the GPIO API.
* Greater use of return values.
* Uses defined enum instead of char arrays

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-04-29 16:46:10 +01:00
Brendan Le Foll
f280b3c0f6 maa: change struct names to be more unique and fix allocs
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-28 11:31:53 +01:00
Brendan Le Foll
ed0a1f6085 maa: change the linking of maa and make gpio functions match maa_ spec
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-27 23:11:31 +01:00
Brendan Le Foll
04017cd5d9 gpio.c: fix styling of functions
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-23 09:30:27 +01:00
Brendan Le Foll
173b81c206 gpio.c: simplify gpio_get_valfp and make static
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-23 09:28:04 +01:00
Brendan Le Foll
aee2087a42 maa: general licensing + styling cleanup
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-22 15:51:28 +01:00
Thomas Ingleby
791c4b4d71 gpio: Tempory fix when changing direction
* Added unexport feature

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-04-14 17:13:31 +01:00
Thomas Ingleby
40438d709a gpio: Add cpp example to use IO.
* Patch direction setting

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-04-11 17:57:53 +01:00
Thomas Ingleby
e64ffcf77d gpio: gpio in/out both work
* Python example included.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-04-11 15:55:01 +01:00
Thomas Ingleby
6d13a41c96 gpio: get file handle if none exists
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-04-11 13:33:46 +01:00
Thomas Ingleby
aa2ed728be gpio: work done to export,read,write to gpio
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-04-11 11:41:48 +01:00
Thomas Ingleby
5168538894 gpio: modified api to include close.
Add file descriptor to gpio_t

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-04-11 09:05:04 +01:00
Brendan Le Foll
e59b8b2038 gpio: enable very basic gpio control from swig
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-10 18:00:57 +01:00