Logo
Explore Help
Register Sign In
Raspberries/upm
Public Access
2
0
Fork 0
You've already forked upm
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
b3a8fd71726151115bcec6dfccf625e7ed6e285f
upm/src/hcsr04/javaupm_hcsr04.i

21 lines
372 B
OpenEdge ABL
Raw Normal View History

java: Use Runnables instead of IsrCallbacks in Java Signed-off-by: Petre Eftime <petre.p.eftime@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-12-23 17:47:26 +02:00
%module javaupm_hcsr04
Added Java support and bindings Signed-off-by: Andrei Vasiliu <andrei.vasiliu@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-08-05 19:43:31 +03:00
%include "../upm.i"
%{
#include "hcsr04.h"
%}
%include "hcsr04.h"
java: Added auto load library code in upm SWIG interfaces Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-11-23 17:04:32 +02:00
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_hcsr04");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
hcsr04: Made ISR be used internally and not be exposed to the user. Changed access modifier to private. Removed passing ISR to constructor. Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-11-27 17:03:34 +02:00
%}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.1 Page: 92ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API