mirror of
https://github.com/eclipse/upm.git
synced 2025-12-13 12:25:39 +03:00
Added the C source for the O2 sensor with necessary changes to cmake,
examples, docs.
* Renamed all files with groveo2 to o2
* Replaced all instances of groveo2 with o2
* Added C source for o2 sensor
* Updated all cmake files
* Added C example for o2 sensor
Signed-off-by: Noel Eck <noel.eck@intel.com>
19 lines
358 B
OpenEdge ABL
19 lines
358 B
OpenEdge ABL
%module javaupm_o2
|
|
%include "../upm.i"
|
|
|
|
%{
|
|
#include "o2.hpp"
|
|
%}
|
|
|
|
%include "o2.hpp"
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
static {
|
|
try {
|
|
System.loadLibrary("javaupm_o2");
|
|
} catch (UnsatisfiedLinkError e) {
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
System.exit(1);
|
|
}
|
|
}
|
|
%} |