mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 01:41:12 +03:00
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:

committed by
Mihai Tudor Panu

parent
e1c66c351a
commit
2cd043c2a1
@ -30,6 +30,10 @@
|
||||
#include <stdlib.h>
|
||||
#include <functional>
|
||||
|
||||
#ifdef JAVACALLBACK
|
||||
#undef JAVACALLBACK
|
||||
#endif
|
||||
|
||||
#include "hcsr04.h"
|
||||
|
||||
using namespace upm;
|
||||
|
@ -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
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
%module(directors="1") javaupm_hcsr04
|
||||
%module javaupm_hcsr04
|
||||
%include "../upm.i"
|
||||
|
||||
%{
|
||||
|
Reference in New Issue
Block a user