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:
committed by
Brendan Le Foll
parent
6302b635aa
commit
7ada55982d
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user