mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 01:41:12 +03:00
Added new macros for installISR and applied where possible.
This commit is contained in:
@ -16,13 +16,7 @@
|
||||
|
||||
%ignore installISR(LSM6DSL_INTERRUPT_PINS_T , int , mraa::Edge , void *, void *);
|
||||
|
||||
%extend upm::LSM6DSL {
|
||||
void installISR(LSM6DSL_INTERRUPT_PINS_T intr, int gpio,
|
||||
mraa::Edge level, jobject runnable)
|
||||
{
|
||||
$self->installISR(intr, gpio, level, mraa_java_isr_callback,
|
||||
runnable);
|
||||
}
|
||||
}
|
||||
|
||||
%define INTERRUPT LSM6DSL_INTERRUPT_PINS_T
|
||||
%enddef
|
||||
JAVA_ADD_INSTALLISR_INTERRUPT(upm::LSM6DSL)
|
||||
JAVA_JNI_LOADLIBRARY(javaupm_lsm6dsl)
|
||||
|
Reference in New Issue
Block a user