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

%{
    #include "l298.h"
%}

%include "l298.h"

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