2015-09-29 16:24:04 +03:00
|
|
|
%module(directors="1") javaupm_a110x
|
2015-08-05 19:43:31 +03:00
|
|
|
%include "../upm.i"
|
|
|
|
%include "stdint.i"
|
|
|
|
%include "typemaps.i"
|
2015-08-19 19:27:16 +03:00
|
|
|
|
|
|
|
%feature("director") IsrCallback;
|
2015-12-09 14:34:19 +02:00
|
|
|
SWIG_DIRECTOR_OWNED(IsrCallback)
|
2015-08-19 19:27:16 +03:00
|
|
|
%ignore generic_callback_isr;
|
|
|
|
%include "../IsrCallback.h"
|
|
|
|
|
2015-08-05 19:43:31 +03:00
|
|
|
%{
|
|
|
|
#include "a110x.h"
|
|
|
|
%}
|
|
|
|
%include "a110x.h"
|
2015-11-23 17:04:32 +02:00
|
|
|
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
|
|
static {
|
|
|
|
try {
|
|
|
|
System.loadLibrary("javaupm_a110x");
|
|
|
|
} catch (UnsatisfiedLinkError e) {
|
|
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
|
|
System.exit(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%}
|