blob: 1ab59ea7c12fc972e7c7549889a8d6483ebaa003 (
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
25
26
27
28
|
%module javaupm_servo
%include "../upm.i"
%include "servo.hpp"
%{
#include "servo.hpp"
%}
%include "es08a.hpp"
%{
#include "es08a.hpp"
%}
%include "es9257.hpp"
%{
#include "es9257.hpp"
%}
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_servo");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}
|