Private
Public Access
2
0

platform_type: platform_type now in mraa_board_t

Now platform_type is no longer global it tracks with board instance
so that platform and sub-platform can report different types.

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-01 10:24:39 -07:00
committed by Brendan Le Foll
parent 6302b635aa
commit 7ada55982d
4 changed files with 27 additions and 12 deletions

View File

@@ -332,6 +332,7 @@ mraa_ftdi_ft4222(mraa_board_t* board)
int pinIndex = 0;
int numUsbGpio = 0;
int numUsbPins = numUsbGpio + 2; // Add SDA and SCL
sub_plat->platform_type = MRAA_FTDI_FT4222;
sub_plat->platform_name = PLATFORM_NAME;
sub_plat->phy_pin_count = numUsbPins;
sub_plat->gpio_count = numUsbGpio;