Private
Public Access
2
0

x86: advance_func now stored in mraa_board_t instance

Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Henry Bruce
2015-07-02 17:56:24 -07:00
committed by Brendan Le Foll
parent d5e5539be3
commit 5740e46ae0
7 changed files with 21 additions and 5 deletions

View File

@@ -34,8 +34,10 @@ extern "C" {
#include "mraa_internal_types.h"
#include "mraa_adv_func.h"
extern mraa_adv_func_t* advance_func;
extern mraa_board_t* plat;
// TODO: Remove global advance_func and use module context instead
extern mraa_adv_func_t* advance_func;
/**
* Takes in pin information and sets up the multiplexors.

View File

@@ -247,7 +247,7 @@ typedef struct _board_t {
int pwm_default_period; /**< The default PWM period is US */
int pwm_max_period; /**< Maximum period in us */
int pwm_min_period; /**< Minimum period in us */
mraa_platform_t platform_type;
mraa_platform_t platform_type; /**< Platform type */
const char* platform_name; /**< Platform Name pointer */
mraa_pininfo_t* pins; /**< Pointer to pin array */
mraa_adv_func_t* adv_func; /**< Pointer to advanced function disptach table */