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>