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:
@@ -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/
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user