Private
Public Access
2
0

maa: add maa_get_platform_type function and move swig common to type.h

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2014-06-20 18:00:19 +01:00
parent 5723e356db
commit 475a692638
5 changed files with 117 additions and 85 deletions

View File

@@ -36,7 +36,7 @@
//static maa_pininfo_t* pindata;
static maa_board_t* plat = NULL;
static maa_platform_t platform_type = 99;
static maa_platform_t platform_type = MAA_UNKNOWN_PLATFORM;
const char *
maa_get_version()
@@ -64,8 +64,6 @@ maa_init()
Py_InitializeEx(0);
PyEval_InitThreads();
#endif
platform_type = MAA_UNKNOWN_PLATFORM;
// detect a galileo gen2 board
char *line = NULL;
// let getline allocate memory for *line
@@ -420,3 +418,8 @@ maa_swap_complex_gpio(int pin, int out)
default: return MAA_SUCCESS;
}
}
maa_platform_t maa_get_platform_type()
{
return platform_type;
}