mraa/platform: add mraa_get_pin_count()
Will return physical pin count. Closes #75 Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
@@ -307,3 +307,12 @@ mraa_get_platform_name()
|
||||
return "Unknown";
|
||||
return plat->platform_name;
|
||||
}
|
||||
|
||||
unsigned int
|
||||
mraa_get_pin_count()
|
||||
{
|
||||
if (plat == NULL) {
|
||||
return 0;
|
||||
}
|
||||
return plat->phy_pin_count;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user