URL
https://opencores.org/ocsvn/usb_fpga_1_2/usb_fpga_1_2/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 2 |
Rev 4 |
Line 361... |
Line 361... |
static {
|
static {
|
String os = System.getProperty("os.name");
|
String os = System.getProperty("os.name");
|
if (os.contains("Windows")) {
|
if (os.contains("Windows")) {
|
LibLoader.load( "libusbJava" );
|
LibLoader.load( "libusbJava" );
|
} else {
|
} else {
|
LibLoader.load( "usbJava" );
|
try {
|
|
LibLoader.load( "usbJavaSh" );
|
|
// System.err.println("loaded libusbJavaSh");
|
|
}
|
|
catch ( UnsatisfiedLinkError e ) {
|
|
LibLoader.load( "usbJavaSt" );
|
|
// System.err.println("loaded libusbJavaSt");
|
|
}
|
}
|
}
|
// define the error codes
|
// define the error codes
|
ERROR_SUCCESS = 0;
|
ERROR_SUCCESS = 0;
|
ERROR_BAD_FILE_DESCRIPTOR = -usb_error_no(1);
|
ERROR_BAD_FILE_DESCRIPTOR = -usb_error_no(1);
|
ERROR_NO_SUCH_DEVICE_OR_ADDRESS = -usb_error_no(2);
|
ERROR_NO_SUCH_DEVICE_OR_ADDRESS = -usb_error_no(2);
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.