summaryrefslogtreecommitdiff
path: root/peripheral/libupm/src/ds1307/javaupm_ds1307.i
blob: ba7de15704195d436fa4290050b64f2c2d425e3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
%module javaupm_ds1307
%include "../upm.i"
%include "arrays_java.i";
%include "../java_buffer.i"

%{
    #include "ds1307.h"
%}

%include "ds1307.h"

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