intel_edision_fab_c: renamed from fab_b
authorThomas Ingleby <thomas.c.ingleby@intel.com>
Wed, 16 Jul 2014 16:24:08 +0000 (17:24 +0100)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Tue, 9 Sep 2014 16:28:43 +0000 (17:28 +0100)
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
api/mraa/types.h
include/intel_edison_fab_c.h [moved from include/intel_edison_fab_b.h with 98% similarity]
src/CMakeLists.txt
src/intel_edison_fab_c.c [moved from src/intel_edison_fab_b.c with 97% similarity]
src/mraa.c

index 55e8e33..a68e4eb 100644 (file)
@@ -39,7 +39,7 @@ extern "C" {
 typedef enum {
     MRAA_INTEL_GALILEO_GEN1 = 0, /**< The Generation 1 Galileo platform (RevD) */
     MRAA_INTEL_GALILEO_GEN2 = 1, /**< The Generation 2 Galileo platform (RevG/H) */
-    MRAA_INTEL_EDISON_FAB_B = 2, /**< The Intel Edison (FAB B) */
+    MRAA_INTEL_EDISON_FAB_C = 2, /**< The Intel Edison (FAB C) */
 
     MRAA_UNKNOWN_PLATFORM = 99 /**< An unknown platform type, typically will load INTEL_GALILEO_GEN1 */
 } mraa_platform_t;
similarity index 98%
rename from include/intel_edison_fab_b.h
rename to include/intel_edison_fab_c.h
index 4d6d101..dc59576 100644 (file)
@@ -33,7 +33,7 @@ extern "C" {
 #define MRAA_INTEL_EDISON_PINCOUNT 25
 
 mraa_board_t*
-mraa_intel_edison_fab_b();
+mraa_intel_edison_fab_c();
 
 #ifdef __cplusplus
 }
index 9c7d71c..d3be1ed 100644 (file)
@@ -15,7 +15,7 @@ set (mraa_LIB_SRCS
   ${PROJECT_SOURCE_DIR}/src/uart/uart.c
   ${PROJECT_SOURCE_DIR}/src/intel_galileo_rev_d.c
   ${PROJECT_SOURCE_DIR}/src/intel_galileo_rev_g.c
-  ${PROJECT_SOURCE_DIR}/src/intel_edison_fab_b.c
+  ${PROJECT_SOURCE_DIR}/src/intel_edison_fab_c.c
 # autogenerated version file
   ${CMAKE_CURRENT_BINARY_DIR}/version.c
 )
similarity index 97%
rename from src/intel_edison_fab_b.c
rename to src/intel_edison_fab_c.c
index 170da57..eb464c5 100644 (file)
 #include <string.h>
 
 #include "common.h"
-#include "intel_edison_fab_b.h"
+#include "intel_edison_fab_c.h"
 
 mraa_board_t*
-mraa_intel_edison_fab_b()
+mraa_intel_edison_fab_c()
 {
     mraa_board_t* b = (mraa_board_t*) malloc(sizeof(mraa_board_t));
     if (b == NULL)
index bd0ba13..2545699 100644 (file)
@@ -31,7 +31,7 @@
 #include "mraa_internal.h"
 #include "intel_galileo_rev_d.h"
 #include "intel_galileo_rev_g.h"
-#include "intel_edison_fab_b.h"
+#include "intel_edison_fab_c.h"
 #include "gpio.h"
 #include "version.h"
 
@@ -70,9 +70,9 @@ mraa_init()
             if (strncmp(line, "GalileoGen2", 10) == 0) {
                 platform_type = MRAA_INTEL_GALILEO_GEN2;
             } else if (strncmp(line, "BODEGA BAY", 10) == 0) {
-                platform_type = MRAA_INTEL_EDISON_FAB_B;
+                platform_type = MRAA_INTEL_EDISON_FAB_C;
             } else if (strncmp(line, "SALT BAY", 7) == 0) {
-                platform_type = MRAA_INTEL_EDISON_FAB_B;
+                platform_type = MRAA_INTEL_EDISON_FAB_C;
             } else {
                 platform_type = MRAA_INTEL_GALILEO_GEN1;
             }
@@ -91,8 +91,8 @@ mraa_init()
         case MRAA_INTEL_GALILEO_GEN1:
             plat = mraa_intel_galileo_rev_d();
             break;
-        case MRAA_INTEL_EDISON_FAB_B:
-            plat = mraa_intel_edison_fab_b(&advance_func);
+        case MRAA_INTEL_EDISON_FAB_C:
+            plat = mraa_intel_edison_fab_c();
             break;
         default:
             plat = mraa_intel_galileo_rev_d();