mirror of
https://github.com/eclipse/upm.git
synced 2025-07-05 11:21:12 +03:00
emg: Added emg sensor C source
Added the C source for the emg sensor with necessary changes to cmake, examples, docs. * Renamed all files with groveemg to emg * Replaced all instances of groveemg with emg * Added C source for emg sensor * Updated all cmake files * Added C example for emg sensor Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
19
src/emg/javaupm_emg.i
Normal file
19
src/emg/javaupm_emg.i
Normal file
@ -0,0 +1,19 @@
|
||||
%module javaupm_emg
|
||||
%include "../upm.i"
|
||||
|
||||
%{
|
||||
#include "emg.hpp"
|
||||
%}
|
||||
|
||||
%include "emg.hpp"
|
||||
|
||||
%pragma(java) jniclasscode=%{
|
||||
static {
|
||||
try {
|
||||
System.loadLibrary("javaupm_emg");
|
||||
} catch (UnsatisfiedLinkError e) {
|
||||
System.err.println("Native code library failed to load. \n" + e);
|
||||
System.exit(1);
|
||||
}
|
||||
}
|
||||
%}
|
Reference in New Issue
Block a user