Private
Public Access
2
0

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:
Brendan Le Foll
2015-10-02 16:48:47 +01:00
parent b192e7a223
commit 2c97fd5953
5 changed files with 251 additions and 15 deletions

View File

@@ -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);