galileo gen2: add uart definitions

Also added hook for setting output buffers.
fixes #36

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
edison: fix gpio mapping on j18-8

Closes #37

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
spi: expose defined CS

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
internal: add function protype for mux setup.

Now accesible from all mraa modules

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
gpio: move gpio setup from core into module

Added syslog lines for easier fault investigation

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
aio: move aio setup from core into module

Added additional syslog messages for debugging

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
i2c: move i2c setup from core into module

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
spi: move spi setup from core into module

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
pwm: move pwm setup to module

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
internal: remove un-implmented function prototype

Left over from earlier version of mraa.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
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>
edison: add mmap support. read & write

Closes #27

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
galileo gen 1: port mmap to new structure

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
galileo gen 2: port mmap to new structure

Feature parity pre mem branch.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
gpio.c: free context if we fail to write to export

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
spi.c: check memory allocation for context was succesful

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
spi.c: fix identation

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
edison.md: add 1.8V IO warning

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
i2c.hpp: reorder & style header

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
i2c: add clean {write, read}data functions

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>