summaryrefslogtreecommitdiff
path: root/peripheral/libupm/src/maxds3231m/javaupm_maxds3231m.i
blob: 4dcf6f33ff293e32ba107477bb2b1ee368b98984 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
%module javaupm_maxds3231m
%include "../upm.i"

%{
    #include "maxds3231m.h"
%}

%include "maxds3231m.h"

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