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>
This commit is contained in:
Petre Eftime
2015-12-23 17:47:26 +02:00
committed by Mihai Tudor Panu
parent e1c66c351a
commit 2cd043c2a1
35 changed files with 96 additions and 162 deletions

View File

@ -30,6 +30,10 @@
#include <stdlib.h>
#include <functional>
#ifdef JAVACALLBACK
#undef JAVACALLBACK
#endif
#include "hcsr04.h"
using namespace upm;

View File

@ -30,10 +30,6 @@
#include <mraa/pwm.h>
#include <sys/time.h>
#if defined(SWIGJAVA) || defined(JAVACALLBACK)
#include "../IsrCallback.h"
#endif
#define CM 1
#define INC 0

View File

@ -1,4 +1,4 @@
%module(directors="1") javaupm_hcsr04
%module javaupm_hcsr04
%include "../upm.i"
%{