x86.c/mraa_x86_platform: added dedicated block for Galileo Gen1 init
authorAlex Tereschenko <alext.mkrs@gmail.com>
Sun, 25 Jan 2015 18:52:40 +0000 (19:52 +0100)
committerThomas Ingleby <thomas.c.ingleby@intel.com>
Mon, 26 Jan 2015 15:16:32 +0000 (15:16 +0000)
Closes #99.

Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
src/x86/x86.c

index ce02e62..a02943d 100644 (file)
@@ -60,6 +60,9 @@ mraa_x86_platform()
             } else if (strncasecmp(line, "MinnowBoard MAX", 15) == 0) {
                 platform_type = MRAA_INTEL_MINNOWBOARD_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 {
                 syslog(LOG_ERR, "Platform not supported, initialising as MRAA_INTEL_GALILEO_GEN1");
                 platform_type = MRAA_INTEL_GALILEO_GEN1;