mirror of
https://github.com/eclipse/upm.git
synced 2025-03-25 09:49:59 +03:00

Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
29 lines
537 B
OpenEdge ABL
29 lines
537 B
OpenEdge ABL
%module (directors="1", docstring="Basic Grove sensors") javaupm_grove
|
|
|
|
%include "../upm.i"
|
|
|
|
%feature("director") IsrCallback;
|
|
|
|
%ignore generic_callback_isr;
|
|
%include "../IsrCallback.h"
|
|
|
|
%apply int {mraa::Edge}
|
|
|
|
%{
|
|
#include "grove.h"
|
|
%}
|
|
|
|
%include "grove.h"
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
static {
|
|
try {
|
|
System.loadLibrary("javaupm_grove");
|
|
} catch (UnsatisfiedLinkError e) {
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
System.exit(1);
|
|
}
|
|
}
|
|
%}
|
|
|