uartat, le910: initial implementation.
uartat is the underlying UART driver, specifically for use with AT-style command driven devices like modems. The le910 support is provided in the form of examples that make use of the uartat driver to interact with the device. Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
21
src/uartat/javaupm_uartat.i
Normal file
21
src/uartat/javaupm_uartat.i
Normal file
@@ -0,0 +1,21 @@
|
||||
%module javaupm_uartat
|
||||
%include "../upm.i"
|
||||
%include "std_string.i"
|
||||
%include "stdint.i"
|
||||
%include "typemaps.i"
|
||||
|
||||
%include "uartat.hpp"
|
||||
%{
|
||||
#include "uartat.hpp"
|
||||
%}
|
||||
|
||||
%pragma(java) jniclasscode=%{
|
||||
static {
|
||||
try {
|
||||
System.loadLibrary("javaupm_uartat");
|
||||
} catch (UnsatisfiedLinkError e) {
|
||||
System.err.println("Native code library failed to load. \n" + e);
|
||||
System.exit(1);
|
||||
}
|
||||
}
|
||||
%}
|
||||
Reference in New Issue
Block a user