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:
Noel Eck
2016-09-08 12:35:41 -07:00
parent fe06de86b4
commit a19678948b
20 changed files with 525 additions and 56 deletions

19
src/emg/javaupm_emg.i Normal file
View 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);
}
}
%}