Brendan Le Foll
07343e2ee7
mraa: Remove global advance_func struct and place it in platform configuration
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:04 +01:00
Henry Bruce
453eefc56a
usb: Added gpio isr support to ft4222
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
802c5af986
usb: Added gpio read/write support for ft4222 with i/o expander
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Henry Bruce
8f48df0533
usb: Skeleton platform code for FTDI FT4222 USB to i2c bridge
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-08 14:42:03 +01:00
Brendan Le Foll
f080a74497
gpio: all gpio enums prefixed with _mraa
...
Enum C types for gpio where not all prefixed with mraa correctly, now fixed
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-07-01 10:59:03 +01:00
Alex Tereschenko
5adc951f57
spi.c: introduced a _replace hook for spi_lsbmode()
...
This could be generally useful and more specifically is a
prerequisite for issue #178 .
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-06-15 09:55:54 +01:00
Michael Ring
d0c466e81c
mraa_adv_func.h: Added pwm initialization replace
...
current code in pwm does not work for beaglebone src/pwm/pwm.c Implemented
check for pwm_init_replace
Signed-off-by: Michael Ring <mail@michael-ring.org >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-04 17:29:24 +01:00
Brendan Le Foll
cc9a4f59b5
edison: add mraa_i2c_frequency replace hook for i2c-6
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-01-05 14:38:50 +00:00
Kurt Eckhardt
21d88d15eb
gpio.c: add advance_func->gpio_close_pre
...
Signed-off-by: Kurt Eckhardt <kurte@rockisland.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-12-19 14:40:01 +00:00
Thomas Ingleby
3865bebe8d
mmap: remove implementation of mmap gpio
...
Instead of trying to have an implementation that covers most platforms
Leave all mmap up to platform definition. Through function pointers.
gpio_mmap_setup sets up the mmap
Within the internal gpio context struct two more function pointers now
exist mmap_read & mmap_write. They exist there so each context can its
own function for handling a write and read.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-17 17:41:47 +00:00
Thomas Ingleby
77be6da29c
uart: add pre uart hook
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-20 18:43:58 +01:00
Thomas Ingleby
071951e926
uart: add init post hook
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-19 16:14:24 +01:00
Thomas Ingleby
fb1034b2b0
hook: add spi init hooks
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-09-09 18:01:23 +01:00
Thomas Ingleby
dd9129d411
hook: add pwm hook around init
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-09-09 18:01:23 +01:00
Thomas Ingleby
92cbb6097c
aio: add init hooks, and fp hook
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-09-09 18:00:23 +01:00
Thomas Ingleby
715863cd28
pwm: add period write replace hook
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-07-24 14:20:01 +01:00
Thomas Ingleby
57d58b66ca
i2c: add init(pre-post) hooks
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-07-14 18:19:07 +01:00
Thomas Ingleby
b74759e973
mraa: rename internal adv func mraa_adv_func_t
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-07-14 15:12:08 +01:00
Thomas Ingleby
1fafd97f5e
hook: rename from declared struct to adance_func
...
* Removed bitfield, now checks if pointer NULL.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-07-11 09:14:49 +01:00
Thomas Ingleby
d0ea43f8d1
mraa: initial implementation of "hooks"
...
* Should allow for more platform quirks to be handled by mraa without
* massive conditional areas per platform.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-06-27 15:37:48 +01:00