mraa: make platform info more available internally
authorThomas Ingleby <thomas.c.ingleby@intel.com>
Mon, 14 Jul 2014 15:56:12 +0000 (16:56 +0100)
committerThomas Ingleby <thomas.c.ingleby@intel.com>
Mon, 14 Jul 2014 15:56:12 +0000 (16:56 +0100)
* available with mraa_internal header

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
include/mraa_internal.h
src/mraa.c

index 4d71aa1..a98b6e3 100644 (file)
@@ -33,6 +33,7 @@ extern "C" {
 #include "mraa_adv_func.h"
 
 extern mraa_adv_func_t* advance_func;
+extern mraa_board_t* plat;
 
 /** Setup gpio
  *
index 99c35d3..e4ef939 100644 (file)
@@ -34,8 +34,7 @@
 #include "gpio.h"
 #include "version.h"
 
-//static mraa_pininfo_t* pindata;
-static mraa_board_t* plat = NULL;
+mraa_board_t* plat = NULL;
 static mraa_platform_t platform_type = MRAA_UNKNOWN_PLATFORM;
 mraa_adv_func_t* advance_func;