api: Added mraa_get_sub_platform_type()
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
30cf8ec560
commit
13118e949b
10
src/mraa.c
10
src/mraa.c
@@ -305,6 +305,16 @@ mraa_get_platform_type()
|
||||
return plat->platform_type;
|
||||
}
|
||||
|
||||
|
||||
mraa_platform_t
|
||||
mraa_get_sub_platform_type()
|
||||
{
|
||||
if (plat == NULL || plat->sub_platform == NULL)
|
||||
return MRAA_UNKNOWN_PLATFORM;
|
||||
return plat->sub_platform->platform_type;
|
||||
}
|
||||
|
||||
|
||||
unsigned int
|
||||
mraa_adc_raw_bits()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user