Private
Public Access
2
0

swig: Add support for isr/callbacks from python

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2014-05-13 20:45:00 +00:00
parent b8e0ca76b1
commit f7169cc5c5
6 changed files with 70 additions and 0 deletions

View File

@@ -55,6 +55,12 @@ maa_init()
if (plat != NULL) {
return MAA_ERROR_PLATFORM_ALREADY_INITIALISED;
}
#ifdef SWIG
// Initialise python threads, this allows use to grab the GIL when we are
// required to do so
Py_InitializeEx(0);
PyEval_InitThreads();
#endif
plat = maa_intel_galileo_rev_d();
return MAA_SUCCESS;
}