2015-08-05 19:43:31 +03:00
|
|
|
%module javaupm_servo
|
|
|
|
%include "../upm.i"
|
|
|
|
|
2016-04-25 14:27:51 -07:00
|
|
|
%include "servo.hpp"
|
2015-08-05 19:43:31 +03:00
|
|
|
%{
|
2016-04-25 14:27:51 -07:00
|
|
|
#include "servo.hpp"
|
2015-08-05 19:43:31 +03:00
|
|
|
%}
|
|
|
|
|
2016-04-25 14:27:51 -07:00
|
|
|
%include "es08a.hpp"
|
2015-08-05 19:43:31 +03:00
|
|
|
%{
|
2016-04-25 14:27:51 -07:00
|
|
|
#include "es08a.hpp"
|
2015-08-05 19:43:31 +03:00
|
|
|
%}
|
2015-08-14 16:43:36 -07:00
|
|
|
|
2016-04-25 14:27:51 -07:00
|
|
|
%include "es9257.hpp"
|
2015-08-14 16:43:36 -07:00
|
|
|
%{
|
2016-04-25 14:27:51 -07:00
|
|
|
#include "es9257.hpp"
|
2015-08-14 16:43:36 -07:00
|
|
|
%}
|
2015-11-23 17:04:32 +02:00
|
|
|
|
|
|
|
%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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%}
|