x86.c/mraa_x86_platform: added dedicated block for Galileo Gen1 init
Closes #99. Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com> Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
committed by
Thomas Ingleby
parent
82bb1c573d
commit
e68546ad85
@@ -60,6 +60,9 @@ mraa_x86_platform()
|
|||||||
} else if (strncasecmp(line, "MinnowBoard MAX", 15) == 0) {
|
} else if (strncasecmp(line, "MinnowBoard MAX", 15) == 0) {
|
||||||
platform_type = MRAA_INTEL_MINNOWBOARD_MAX;
|
platform_type = MRAA_INTEL_MINNOWBOARD_MAX;
|
||||||
plat = mraa_intel_minnow_max();
|
plat = mraa_intel_minnow_max();
|
||||||
|
} else if (strncasecmp(line, "Galileo", 7) == 0) {
|
||||||
|
platform_type = MRAA_INTEL_GALILEO_GEN1;
|
||||||
|
plat = mraa_intel_galileo_rev_d();
|
||||||
} else {
|
} else {
|
||||||
syslog(LOG_ERR, "Platform not supported, initialising as MRAA_INTEL_GALILEO_GEN1");
|
syslog(LOG_ERR, "Platform not supported, initialising as MRAA_INTEL_GALILEO_GEN1");
|
||||||
platform_type = MRAA_INTEL_GALILEO_GEN1;
|
platform_type = MRAA_INTEL_GALILEO_GEN1;
|
||||||
|
|||||||
Reference in New Issue
Block a user