rhusb: Initial implementation

The driver implements support for the Omega RH-USB Humidity Probe with
Temperature sensor.  It connects via an integrated USB cable, and
appears as a serial port.

It does not currently work with Edison (as of this date) due to
missing ftdi_sio and usbserial kernel support.

It was implemented and tested on the Galileo 2.

Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Jon Trulson
2016-01-19 17:13:37 -07:00
committed by Mihai Tudor Panu
parent a5fd4a2c10
commit e1c66c351a
11 changed files with 586 additions and 0 deletions

23
src/rhusb/javaupm_rhusb.i Normal file
View File

@ -0,0 +1,23 @@
%module javaupm_rhusb
%include "../upm.i"
%include "typemaps.i"
%include "cpointer.i"
%include "arrays_java.i";
%include "../java_buffer.i"
%{
#include "rhusb.h"
%}
%include "rhusb.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_rhusb");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}