internal: add function protype for mux setup.
authorThomas Ingleby <thomas.c.ingleby@intel.com>
Thu, 30 Oct 2014 18:09:27 +0000 (18:09 +0000)
committerThomas Ingleby <thomas.c.ingleby@intel.com>
Mon, 17 Nov 2014 17:40:48 +0000 (17:40 +0000)
Now accesible from all mraa modules

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
include/mraa_internal.h
src/mraa.c

index 5b1cf2d..8b22520 100644 (file)
@@ -38,6 +38,14 @@ extern mraa_adv_func_t* advance_func;
 extern mraa_board_t* plat;
 
 /**
+ * Takes in pin information and sets up the multiplexors.
+ *
+ * @param meta
+ * @return mraa result type indicating success of actions.
+ */
+mraa_result_t mraa_setup_mux_mapped(mraa_pin_t meta);
+
+/**
  * Will check input is valid for gpio and will also setup required multiplexers.
  * @param pin the pin as read from the board surface. i.e IO3 would be 3/
  * @return the pin as found in the pinmap
index d35c9ee..966c366 100644 (file)
@@ -149,7 +149,7 @@ mraa_set_priority(const unsigned int priority)
     return sched_setscheduler(0, SCHED_RR, &sched_s);
 }
 
-static mraa_result_t
+mraa_result_t
 mraa_setup_mux_mapped(mraa_pin_t meta)
 {
     int mi;