bmm150: split into new library, C port, FTI, C++ wraps C

Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
Jon Trulson
2017-03-29 13:15:45 -06:00
parent 7d789ec208
commit aeaf84ccc6
20 changed files with 2397 additions and 28 deletions

View File

@@ -0,0 +1,23 @@
%module javaupm_bmm150
%include "../upm.i"
%include "typemaps.i"
%include "../upm_vectortypes.i"
%ignore getMagnetometer(float *, float *, float *);
%include "bmm150_defs.h"
%include "bmm150.hpp"
%{
#include "bmm150.hpp"
%}
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_bmm150");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}