mirror of
https://github.com/eclipse/upm.git
synced 2025-07-06 11:51:10 +03:00
ssd1351: Initial implementation
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
28
src/ssd1351/javaupm_ssd1351.i
Normal file
28
src/ssd1351/javaupm_ssd1351.i
Normal file
@ -0,0 +1,28 @@
|
||||
%module javaupm_ssd1351
|
||||
%include "../upm.i"
|
||||
%include "typemaps.i"
|
||||
%include "stdint.i"
|
||||
|
||||
%ignore m_map;
|
||||
%ignore font;
|
||||
|
||||
%include "gfx.h"
|
||||
%{
|
||||
#include "gfx.h"
|
||||
%}
|
||||
|
||||
%include "ssd1351.h"
|
||||
%{
|
||||
#include "ssd1351.h"
|
||||
%}
|
||||
|
||||
%pragma(java) jniclasscode=%{
|
||||
static {
|
||||
try {
|
||||
System.loadLibrary("javaupm_ssd1351");
|
||||
} catch (UnsatisfiedLinkError e) {
|
||||
System.err.println("Native code library failed to load. \n" + e);
|
||||
System.exit(1);
|
||||
}
|
||||
}
|
||||
%}
|
Reference in New Issue
Block a user