Rotary: Added C source
Added C source for rotary angle sensor
* Renamed all files from groverrotary to rotary
* Replaced all instances of groverrotary with rotary
* Added C source for rotary angle sensor
* Updated all CMake files
Signed-off-by: Sisinty Sasmita Patra <sisinty.s.patra@intel.com>
This commit is contained in:
committed by
Noel Eck
parent
b266f87450
commit
bded0a07d9
19
src/rotary/javaupm_rotary.i
Normal file
19
src/rotary/javaupm_rotary.i
Normal file
@@ -0,0 +1,19 @@
|
||||
%module javaupm_rotary
|
||||
%include "../upm.i"
|
||||
|
||||
%{
|
||||
#include "rotary.hpp"
|
||||
%}
|
||||
|
||||
%include "rotary.hpp"
|
||||
|
||||
%pragma(java) jniclasscode=%{
|
||||
static {
|
||||
try {
|
||||
System.loadLibrary("javaupm_rotary");
|
||||
} catch (UnsatisfiedLinkError e) {
|
||||
System.err.println("Native code library failed to load. \n" + e);
|
||||
System.exit(1);
|
||||
}
|
||||
}
|
||||
%}
|
||||
Reference in New Issue
Block a user