iio: initial pass at getting channel information from scan_elements
This commit creates a new structure inside each _iio device when used and can then be used to understand the data being read after a trigger is run/executed Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
@@ -132,7 +132,6 @@ mraa_init()
|
||||
if (plat != NULL)
|
||||
plat->platform_type = platform_type;
|
||||
|
||||
#if defined(USBPLAT)
|
||||
// This is a platform extender so create null base platform if one doesn't already exist
|
||||
if (plat == NULL) {
|
||||
plat = (mraa_board_t*) calloc(1, sizeof(mraa_board_t));
|
||||
@@ -141,6 +140,7 @@ mraa_init()
|
||||
plat->platform_name = "Null platform";
|
||||
}
|
||||
}
|
||||
#if defined(USBPLAT)
|
||||
// Now detect sub platform
|
||||
if (plat != NULL) {
|
||||
mraa_platform_t usb_platform_type = mraa_usb_platform_extender(plat);
|
||||
|
||||
Reference in New Issue
Block a user