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>
20 lines
375 B
OpenEdge ABL
20 lines
375 B
OpenEdge ABL
%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);
|
|
}
|
|
}
|
|
%}
|