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

@@ -104,6 +104,9 @@ mraa_init()
#if defined(X86PLAT)
// Use runtime x86 platform detection
platform_type = mraa_x86_platform();
// x86 platforms have advanced_func stable in board config structure
free(advance_func);
advance_func = plat->adv_func;
#elif defined(ARMPLAT)
// Use runtime ARM platform detection
platform_type = mraa_arm_platform();