Private
Public Access
2
0

internal: add function protype for mux setup.

Now accesible from all mraa modules

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
Thomas Ingleby
2014-10-30 18:09:27 +00:00
parent 2be24d8887
commit 1cbdef1ab3
2 changed files with 9 additions and 1 deletions

View File

@@ -37,6 +37,14 @@ extern "C" {
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/

View 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;