mmap: added mmap io to gpio
* added function to gpio to use mmap * changed board definition format around mmap io (fast-gpio) * Intel Galileo Rev D updated to follow changed definitions * Example performing mmap io to pin 2 added. Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
@@ -175,6 +175,14 @@ maa_result_t maa_gpio_write(maa_gpio_context dev, int value);
|
||||
*/
|
||||
maa_result_t maa_gpio_owner(maa_gpio_context dev, maa_boolean_t owner);
|
||||
|
||||
/** Enable using memory mapped io instead of sysfs
|
||||
*
|
||||
* @param dev gpio context
|
||||
* @param mmap use mmap instead of sysfs
|
||||
* @return maa_result type
|
||||
*/
|
||||
maa_result_t maa_gpio_use_mmaped(maa_gpio_context dev, maa_boolean_t mmap);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user