aboutsummaryrefslogtreecommitdiff
path: root/src/rpr220/javaupm_rpr220.i
blob: f6d6e5e5cbf2545972891f2dda0dbc050cd564ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
%module(directors="1") javaupm_rpr220
%include "../upm.i"


%feature("director") IsrCallback;

%ignore generic_callback_isr;
%include "../IsrCallback.h"

%{
    #include "rpr220.h"
%}
%include "rpr220.h"

%pragma(java) jniclasscode=%{
    static {
        try {
            System.loadLibrary("javaupm_rpr220");
        } catch (UnsatisfiedLinkError e) {
            System.err.println("Native code library failed to load. \n" + e);
            System.exit(1);
        }
    }
%}