Private
Public Access
2
0

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:
Thomas Ingleby
2015-01-21 15:11:03 +00:00
parent 456646ca53
commit 067487f9ec
3 changed files with 26 additions and 0 deletions

View File

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