From 4b04073389f7c06aac75224d9324a7fb9f43c2f6 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Tue, 15 Dec 2015 20:56:34 -0800 Subject: [PATCH] Remove broken and unused HALLibrary.java. Change-Id: Iec501cdf2f05fcdee115471e5fa1ce2a6dfb6d57 --- .../edu/wpi/first/wpilibj/DigitalSource.java | 4 +- .../java/edu/wpi/first/wpilibj/I2C.java | 1 - .../java/edu/wpi/first/wpilibj/SPI.java | 1 - .../edu/wpi/first/wpilibj/SensorBase.java | 4 - .../edu/wpi/first/wpilibj/SerialPort.java | 1 - .../edu/wpi/first/wpilibj/hal/HALLibrary.java | 714 ------------------ 6 files changed, 1 insertion(+), 724 deletions(-) delete mode 100644 wpilibj/src/athena/java/edu/wpi/first/wpilibj/hal/HALLibrary.java diff --git a/wpilibj/src/athena/java/edu/wpi/first/wpilibj/DigitalSource.java b/wpilibj/src/athena/java/edu/wpi/first/wpilibj/DigitalSource.java index e5a98bb3e3..b11e6d57b5 100644 --- a/wpilibj/src/athena/java/edu/wpi/first/wpilibj/DigitalSource.java +++ b/wpilibj/src/athena/java/edu/wpi/first/wpilibj/DigitalSource.java @@ -28,9 +28,7 @@ public abstract class DigitalSource extends InterruptableSensorBase { m_channel = channel; - checkDigitalChannel(m_channel); // XXX: Replace with - // HALLibrary.checkDigitalChannel when - // implemented + checkDigitalChannel(m_channel); try { channels.allocate(m_channel); diff --git a/wpilibj/src/athena/java/edu/wpi/first/wpilibj/I2C.java b/wpilibj/src/athena/java/edu/wpi/first/wpilibj/I2C.java index a686cef3eb..f425620076 100644 --- a/wpilibj/src/athena/java/edu/wpi/first/wpilibj/I2C.java +++ b/wpilibj/src/athena/java/edu/wpi/first/wpilibj/I2C.java @@ -11,7 +11,6 @@ import java.nio.ByteBuffer; import edu.wpi.first.wpilibj.communication.FRCNetworkCommunicationsLibrary.tResourceType; import edu.wpi.first.wpilibj.communication.UsageReporting; -import edu.wpi.first.wpilibj.hal.HALLibrary; import edu.wpi.first.wpilibj.hal.I2CJNI; import edu.wpi.first.wpilibj.util.BoundaryException; diff --git a/wpilibj/src/athena/java/edu/wpi/first/wpilibj/SPI.java b/wpilibj/src/athena/java/edu/wpi/first/wpilibj/SPI.java index b92a359e59..5c916f372b 100644 --- a/wpilibj/src/athena/java/edu/wpi/first/wpilibj/SPI.java +++ b/wpilibj/src/athena/java/edu/wpi/first/wpilibj/SPI.java @@ -7,7 +7,6 @@ import java.nio.LongBuffer; import edu.wpi.first.wpilibj.communication.FRCNetworkCommunicationsLibrary.tResourceType; import edu.wpi.first.wpilibj.communication.UsageReporting; -import edu.wpi.first.wpilibj.hal.HALLibrary; import edu.wpi.first.wpilibj.hal.SPIJNI; /** diff --git a/wpilibj/src/athena/java/edu/wpi/first/wpilibj/SensorBase.java b/wpilibj/src/athena/java/edu/wpi/first/wpilibj/SensorBase.java index a8d8120c22..41222ed439 100644 --- a/wpilibj/src/athena/java/edu/wpi/first/wpilibj/SensorBase.java +++ b/wpilibj/src/athena/java/edu/wpi/first/wpilibj/SensorBase.java @@ -82,10 +82,6 @@ public abstract class SensorBase { // TODO: Refactor * @param moduleNumber The solenoid module module number to check. */ protected static void checkSolenoidModule(final int moduleNumber) { - // if(HALLibrary.checkSolenoidModule((byte) (moduleNumber - 1)) != 0) { - // System.err.println("Solenoid module " + moduleNumber + - // " is not present."); - // } } /** diff --git a/wpilibj/src/athena/java/edu/wpi/first/wpilibj/SerialPort.java b/wpilibj/src/athena/java/edu/wpi/first/wpilibj/SerialPort.java index ff2e9c1f78..4439f5ffb8 100644 --- a/wpilibj/src/athena/java/edu/wpi/first/wpilibj/SerialPort.java +++ b/wpilibj/src/athena/java/edu/wpi/first/wpilibj/SerialPort.java @@ -12,7 +12,6 @@ import java.nio.ByteBuffer; import edu.wpi.first.wpilibj.communication.FRCNetworkCommunicationsLibrary.tResourceType; import edu.wpi.first.wpilibj.communication.UsageReporting; -import edu.wpi.first.wpilibj.hal.HALLibrary; import edu.wpi.first.wpilibj.hal.SerialPortJNI; /** diff --git a/wpilibj/src/athena/java/edu/wpi/first/wpilibj/hal/HALLibrary.java b/wpilibj/src/athena/java/edu/wpi/first/wpilibj/hal/HALLibrary.java deleted file mode 100644 index 20e7741a38..0000000000 --- a/wpilibj/src/athena/java/edu/wpi/first/wpilibj/hal/HALLibrary.java +++ /dev/null @@ -1,714 +0,0 @@ -package edu.wpi.first.wpilibj.hal; - -// import com.ochafik.lang.jnaerator.runtime.LibraryExtractor; -// import com.ochafik.lang.jnaerator.runtime.MangledFunctionMapper; -// import com.ochafik.lang.jnaerator.runtime.globals.GlobalDouble; -// import com.ochafik.lang.jnaerator.runtime.globals.GlobalInt; -// import com.sun.jna.Callback; -// import com.sun.jna.Library; -// import com.sun.jna.Native; -// import com.sun.jna.NativeLibrary; -// import com.sun.jna.Pointer; -// import com.sun.jna.PointerType; -// import com.sun.jna.ptr.IntByReference; -// import com.sun.jna.ptr.LongByReference; -// import java.nio.IntBuffer; - -/** - * JNA Wrapper for library HAL
- * This file was autogenerated by JNAerator,
- * a tool written by Olivier Chafik that uses a few - * opensource projects..
- * For help, please visit NativeLibs4Java , Rococoa, or JNA. - */ -public class HALLibrary /* implements Library */{ - // public static final String JNA_LIBRARY_NAME = - // LibraryExtractor.getLibraryPath("HALAthenaJava", true, HALLibrary.class); - // public static final NativeLibrary JNA_NATIVE_LIB = - // NativeLibrary.getInstance(HALLibrary.JNA_LIBRARY_NAME, - // MangledFunctionMapper.DEFAULT_OPTIONS); - static { - System.loadLibrary("JNIWrappers"); - // Native.register(HALLibrary.class, HALLibrary.JNA_NATIVE_LIB); - } - - /** - * native declaration : - * AthenaJava\target\native\include\HAL\Digital.h:148
- * enum values - */ - public static interface Mode { - /** - * native declaration : - * AthenaJava\target\native\include\HAL\Digital.h:144 - */ - public static final int kTwoPulse = 0; - /** - * native declaration : - * AthenaJava\target\native\include\HAL\Digital.h:145 - */ - public static final int kSemiperiod = 1; - /** - * native declaration : - * AthenaJava\target\native\include\HAL\Digital.h:146 - */ - public static final int kPulseLength = 2; - /** - * native declaration : - * AthenaJava\target\native\include\HAL\Digital.h:147 - */ - public static final int kExternalDirection = 3; - }; - /** - * native declaration : - * AthenaJava\target\native\include\HAL\Digital.h:235
- * enum values - */ - public static interface tSPIConstants { - /** - * native declaration : - * AthenaJava\target\native\include\HAL\Digital.h:233 - */ - public static final int kReceiveFIFODepth = 512; - /** - * native declaration : - * AthenaJava\target\native\include\HAL\Digital.h:234 - */ - public static final int kTransmitFIFODepth = 512; - }; - /** - * native declaration : - * AthenaJava\target\native\include\HAL\Digital.h:241
- * enum values - */ - public static interface tFrameMode { - /** - * native declaration : - * AthenaJava\target\native\include\HAL\Digital.h:237 - */ - public static final int kChipSelect = 0; - /** - * native declaration : - * AthenaJava\target\native\include\HAL\Digital.h:238 - */ - public static final int kPreLatchPulse = 1; - /** - * native declaration : - * AthenaJava\target\native\include\HAL\Digital.h:239 - */ - public static final int kPostLatchPulse = 2; - /** - * native declaration : - * AthenaJava\target\native\include\HAL\Digital.h:240 - */ - public static final int kPreAndPostLatchPulse = 3; - }; - - /** native declaration : AthenaJava\target\native\include\HAL\Errors.h */ - public static final String NULL_PARAMETER_MESSAGE = "A pointer parameter to a method is NULL"; - /** native declaration : AthenaJava\target\native\include\HAL\Errors.h */ - public static final String NO_AVAILABLE_RESOURCES_MESSAGE = "No available resources to allocate"; - /** native declaration : AthenaJava\target\native\include\HAL\Errors.h */ - public static final String INCOMPATIBLE_STATE_MESSAGE = - "Incompatible State: The operation cannot be completed"; - /** native declaration : AthenaJava\target\native\include\HAL\Errors.h */ - public static final String ANALOG_TRIGGER_PULSE_OUTPUT_ERROR_MESSAGE = - "Attempted to read AnalogTrigger pulse output."; - /** native declaration : AthenaJava\target\native\include\HAL\Errors.h */ - public static final int ANALOG_TRIGGER_LIMIT_ORDER_ERROR = -10; - /** native declaration : AthenaJava\target\native\include\HAL\Errors.h */ - public static final int SPI_READ_NO_DATA = 14; - /** native declaration : AthenaJava\target\native\include\HAL\Errors.h */ - public static final String VOLTAGE_OUT_OF_RANGE_MESSAGE = - "Voltage to convert to raw value is out of range [-10; 10]"; - /** native declaration : AthenaJava\target\native\include\HAL\Errors.h */ - public static final String ANALOG_TRIGGER_LIMIT_ORDER_ERROR_MESSAGE = - "AnalogTrigger limits error. Lower limit > Upper Limit"; - /** native declaration : AthenaJava\target\native\include\HAL\Errors.h */ - public static final int SPI_WRITE_NO_MOSI = 12; - /** native declaration : AthenaJava\target\native\include\HAL\Errors.h */ - public static final String PARAMETER_OUT_OF_RANGE_MESSAGE = "A parameter is out of range."; - /** native declaration : AthenaJava\target\native\include\HAL\Task.h */ - public static final int OK = 0; - /** native declaration : AthenaJava\target\native\include\HAL\Task.h */ - public static final int ERROR = (-1); - /** native declaration : AthenaJava\target\native\include\HAL\Errors.h */ - public static final String SAMPLE_RATE_TOO_HIGH_MESSAGE = "Analog module sample rate is too high"; - /** native declaration : AthenaJava\target\native\include\HAL\Errors.h */ - public static final String SPI_WRITE_NO_MOSI_MESSAGE = - "Cannot write to SPI port with no MOSI output"; - /** native declaration : AthenaJava\target\native\include\HAL\Errors.h */ - public static final int SPI_READ_NO_MISO = 13; - /** native declaration : AthenaJava\target\native\include\HAL\Errors.h */ - public static final String SPI_READ_NO_DATA_MESSAGE = "No data available to read from SPI"; - /** native declaration : AthenaJava\target\native\include\HAL\Errors.h */ - /** native declaration : AthenaJava\target\native\include\HAL\Errors.h */ - public static final String SPI_READ_NO_MISO_MESSAGE = - "Cannot read from SPI port with no MISO input"; - /** native declaration : AthenaJava\target\native\include\HAL\Errors.h */ - public static final String LOOP_TIMING_ERROR_MESSAGE = - "Digital module loop timing is not the expected value"; - - /** - * native declaration : - * AthenaJava\target\native\include\HAL\Notifier.h:339 - */ - // public interface initializeNotifier_ProcessQueue_callback extends Callback - // { - // void apply(int uint32_t1, Pointer voidPtr1); - // }; - /** - * native declaration : - * AthenaJava\target\native\include\HAL\Interrupts.h:342 - */ - /** - * native declaration : AthenaJava\target\native\include\HAL\Task.h:409 - */ - // public interface FUNCPTR extends Callback { - // int apply(Object... varargs); - // }; - /** - * Original signature : bool checkPWMChannel(void*)
- * native declaration : - * AthenaJava\target\native\include\HAL\Digital.h:84 - */ - // public static native byte checkPWMChannel(Pointer digital_port_pointer); - /** - * Original signature : bool checkRelayChannel(void*)
- * native declaration : - * AthenaJava\target\native\include\HAL\Digital.h:86 - */ - // public static native byte checkRelayChannel(Pointer digital_port_pointer); - /** - * Original signature : - * void* initializeNotifier(initializeNotifier_ProcessQueue_callback*, int32_t*) - *
- * native declaration : - * AthenaJava\target\native\include\HAL\Notifier.h:334
- *$ - * @deprecated use the safer methods - * {@link #initializeNotifier(edu.wpi.first.wpilibj.hal.HALLibrary.initializeNotifier_ProcessQueue_callback, java.nio.IntBuffer)} - * and - * {@link #initializeNotifier(edu.wpi.first.wpilibj.hal.HALLibrary.initializeNotifier_ProcessQueue_callback, com.sun.jna.ptr.IntByReference)} - * instead - */ - // @Deprecated - // public static native Pointer - // initializeNotifier(HALLibrary.initializeNotifier_ProcessQueue_callback - // ProcessQueue, IntByReference status); - /** - * Original signature : - * void* initializeNotifier(initializeNotifier_ProcessQueue_callback*, int32_t*) - *
- * native declaration : - * AthenaJava\target\native\include\HAL\Notifier.h:334 - */ - // public static native Pointer - // initializeNotifier(HALLibrary.initializeNotifier_ProcessQueue_callback - // ProcessQueue, IntBuffer status); - /** - * Original signature : void cleanNotifier(void*, int32_t*)
- * native declaration : - * AthenaJava\target\native\include\HAL\Notifier.h:336
- *$ - * @deprecated use the safer methods - * {@link #cleanNotifier(com.sun.jna.Pointer, java.nio.IntBuffer)} - * and - * {@link #cleanNotifier(com.sun.jna.Pointer, com.sun.jna.ptr.IntByReference)} - * instead - */ - // @Deprecated - // public static native void cleanNotifier(Pointer notifier_pointer, - // IntByReference status); - /** - * Original signature : void cleanNotifier(void*, int32_t*)
- * native declaration : - * AthenaJava\target\native\include\HAL\Notifier.h:336 - */ - // public static native void cleanNotifier(Pointer notifier_pointer, IntBuffer - // status); - /** - * Original signature : - * void updateNotifierAlarm(void*, uint32_t, int32_t*)
- * native declaration : - * AthenaJava\target\native\include\HAL\Notifier.h:338
- *$ - * @deprecated use the safer methods - * {@link #updateNotifierAlarm(com.sun.jna.Pointer, int, java.nio.IntBuffer)} - * and - * {@link #updateNotifierAlarm(com.sun.jna.Pointer, int, com.sun.jna.ptr.IntByReference)} - * instead - */ - // @Deprecated - // public static native void updateNotifierAlarm(Pointer notifier_pointer, int - // triggerTime, IntByReference status); - /** - * Original signature : - * void updateNotifierAlarm(void*, uint32_t, int32_t*)
- * native declaration : - * AthenaJava\target\native\include\HAL\Notifier.h:338 - */ - // public static native void updateNotifierAlarm(Pointer notifier_pointer, int - // triggerTime, IntBuffer status); - /** - * Original signature : void delayTicks(int32_t)
- * native declaration : - * AthenaJava\target\native\include\HAL\Utilities.h:366 - */ - public static native void delayTicks(int ticks); - - /** - * Original signature : void delayMillis(double)
- * native declaration : - * AthenaJava\target\native\include\HAL\Utilities.h:368 - */ - public static native void delayMillis(double ms); - - /** - * Original signature : void delaySeconds(double)
- * native declaration : - * AthenaJava\target\native\include\HAL\Utilities.h:370 - */ - public static native void delaySeconds(double s); - - /** - * Original signature : MUTEX_ID initializeMutex(uint32_t)
- * native declaration : - * AthenaJava\target\native\include\HAL\Semaphore.h:385 - */ - public static native long initializeMutex(int flags); - - /** - * Original signature : void deleteMutex(MUTEX_ID)
- * native declaration : - * AthenaJava\target\native\include\HAL\Semaphore.h:387
- *$ - * @deprecated use the safer methods - * {@link #deleteMutex(edu.wpi.first.wpilibj.hal.HALLibrary.MUTEX_ID)} - * and {@link #deleteMutex(com.sun.jna.Pointer)} instead - */ - // @Deprecated - // public static native void deleteMutex(Pointer sem); - /** - * Original signature : void deleteMutex(MUTEX_ID)
- * native declaration : - * AthenaJava\target\native\include\HAL\Semaphore.h:387 - */ - public static native void deleteMutex(long sem); - - /** - * Original signature : int8_t takeMutex(MUTEX_ID, int32_t)
- * native declaration : - * AthenaJava\target\native\include\HAL\Semaphore.h:389
- *$ - * @deprecated use the safer methods - * {@link #takeMutex(edu.wpi.first.wpilibj.hal.HALLibrary.MUTEX_ID, int)} - * and {@link #takeMutex(com.sun.jna.Pointer, int)} instead - */ - // @Deprecated - // public static native byte takeMutex(Pointer sem, int timeout); - /** - * Original signature : int8_t takeMutex(MUTEX_ID, int32_t)
- * native declaration : - * AthenaJava\target\native\include\HAL\Semaphore.h:389 - */ - public static native byte takeMutex(long sem, int timeout); - - /** - * Original signature : int8_t giveMutex(MUTEX_ID)
- * native declaration : - * AthenaJava\target\native\include\HAL\Semaphore.h:391
- *$ - * @deprecated use the safer methods - * {@link #giveMutex(edu.wpi.first.wpilibj.hal.HALLibrary.MUTEX_ID)} - * and {@link #giveMutex(com.sun.jna.Pointer)} instead - */ - // @Deprecated - // public static native byte giveMutex(Pointer sem); - /** - * Original signature : int8_t giveMutex(MUTEX_ID)
- * native declaration : - * AthenaJava\target\native\include\HAL\Semaphore.h:391 - */ - // public static native byte giveMutex(HALLibrary.MUTEX_ID sem); - /** - * Original signature : - * SEMAPHORE_ID initializeSemaphore(uint32_t, uint32_t)
- * native declaration : - * AthenaJava\target\native\include\HAL\Semaphore.h:393 - */ - // public static native HALLibrary.SEMAPHORE_ID initializeSemaphore(int flags, - // int initial_value); - /** - * Original signature : void deleteSemaphore(SEMAPHORE_ID)
- * native declaration : - * AthenaJava\target\native\include\HAL\Semaphore.h:395
- *$ - * @deprecated use the safer methods - * {@link #deleteSemaphore(edu.wpi.first.wpilibj.hal.HALLibrary.SEMAPHORE_ID)} - * and {@link #deleteSemaphore(com.sun.jna.Pointer)} instead - */ - // @Deprecated - // public static native void deleteSemaphore(Pointer sem); - /** - * Original signature : void deleteSemaphore(SEMAPHORE_ID)
- * native declaration : - * AthenaJava\target\native\include\HAL\Semaphore.h:395 - */ - // public static native void deleteSemaphore(HALLibrary.SEMAPHORE_ID sem); - /** - * Original signature : - * int8_t takeSemaphore(SEMAPHORE_ID, int32_t)
- * native declaration : - * AthenaJava\target\native\include\HAL\Semaphore.h:397
- *$ - * @deprecated use the safer methods - * {@link #takeSemaphore(edu.wpi.first.wpilibj.hal.HALLibrary.SEMAPHORE_ID, int)} - * and {@link #takeSemaphore(com.sun.jna.Pointer, int)} instead - */ - // @Deprecated - // public static native byte takeSemaphore(Pointer sem, int timeout); - /** - * Original signature : - * int8_t takeSemaphore(SEMAPHORE_ID, int32_t)
- * native declaration : - * AthenaJava\target\native\include\HAL\Semaphore.h:397 - */ - // public static native byte takeSemaphore(HALLibrary.SEMAPHORE_ID sem, int - // timeout); - /** - * Original signature : int8_t giveSemaphore(SEMAPHORE_ID)
- * native declaration : - * AthenaJava\target\native\include\HAL\Semaphore.h:399
- *$ - * @deprecated use the safer methods - * {@link #giveSemaphore(edu.wpi.first.wpilibj.hal.HALLibrary.SEMAPHORE_ID)} - * and {@link #giveSemaphore(com.sun.jna.Pointer)} instead - */ - // @Deprecated - // public static native byte giveSemaphore(Pointer sem); - /** - * Original signature : int8_t giveSemaphore(SEMAPHORE_ID)
- * native declaration : - * AthenaJava\target\native\include\HAL\Semaphore.h:399 - */ - // public static native byte giveSemaphore(HALLibrary.SEMAPHORE_ID sem); - /** - * Original signature : MULTIWAIT_ID initializeMultiWait()
- * native declaration : - * AthenaJava\target\native\include\HAL\Semaphore.h:401 - */ - // public static native HALLibrary.MULTIWAIT_ID initializeMultiWait(); - /** - * Original signature : void deleteMultiWait(MULTIWAIT_ID)
- * native declaration : - * AthenaJava\target\native\include\HAL\Semaphore.h:403
- *$ - * @deprecated use the safer methods - * {@link #deleteMultiWait(edu.wpi.first.wpilibj.hal.HALLibrary.MULTIWAIT_ID)} - * and {@link #deleteMultiWait(com.sun.jna.Pointer)} instead - */ - // @Deprecated - // public static native void deleteMultiWait(Pointer sem); - /** - * Original signature : void deleteMultiWait(MULTIWAIT_ID)
- * native declaration : - * AthenaJava\target\native\include\HAL\Semaphore.h:403 - */ - // public static native void deleteMultiWait(HALLibrary.MULTIWAIT_ID sem); - /** - * Original signature : - * int8_t takeMultiWait(MULTIWAIT_ID, int32_t)
- * native declaration : - * AthenaJava\target\native\include\HAL\Semaphore.h:405
- *$ - * @deprecated use the safer methods - * {@link #takeMultiWait(edu.wpi.first.wpilibj.hal.HALLibrary.MULTIWAIT_ID, int)} - * and {@link #takeMultiWait(com.sun.jna.Pointer, int)} instead - */ - // @Deprecated - // public static native byte takeMultiWait(Pointer sem, int timeout); - /** - * Original signature : - * int8_t takeMultiWait(MULTIWAIT_ID, int32_t)
- * native declaration : - * AthenaJava\target\native\include\HAL\Semaphore.h:405 - */ - // public static native byte takeMultiWait(HALLibrary.MULTIWAIT_ID sem, int - // timeout); - /** - * Original signature : int8_t giveMultiWait(MULTIWAIT_ID)
- * native declaration : - * AthenaJava\target\native\include\HAL\Semaphore.h:407
- *$ - * @deprecated use the safer methods - * {@link #giveMultiWait(edu.wpi.first.wpilibj.hal.HALLibrary.MULTIWAIT_ID)} - * and {@link #giveMultiWait(com.sun.jna.Pointer)} instead - */ - // @Deprecated - // public static native byte giveMultiWait(Pointer sem); - /** - * Original signature : int8_t giveMultiWait(MULTIWAIT_ID)
- * native declaration : - * AthenaJava\target\native\include\HAL\Semaphore.h:407 - */ - // public static native byte giveMultiWait(HALLibrary.MULTIWAIT_ID sem); - /** - * Original signature : - * TASK spawnTask(char*, int, int, int, FUNCPTR, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t) - *
- * native declaration : AthenaJava\target\native\include\HAL\Task.h:420
- *$ - * @deprecated use the safer methods - * {@link #spawnTask(java.nio.ByteBuffer, int, int, int, edu.wpi.first.wpilibj.hal.HALLibrary.FUNCPTR, int, int, int, int, int, int, int, int, int, int)} - * and - * {@link #spawnTask(com.sun.jna.Pointer, int, int, int, edu.wpi.first.wpilibj.hal.HALLibrary.FUNCPTR, int, int, int, int, int, int, int, int, int, int)} - * instead - */ - // @Deprecated - // public static native HALLibrary.TASK spawnTask(Pointer name, int priority, - // int options, int stackSize, HALLibrary.FUNCPTR entryPt, int arg0, int arg1, - // int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int - // arg9); - /** - * Original signature : - * TASK spawnTask(char*, int, int, int, FUNCPTR, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t) - *
- * native declaration : AthenaJava\target\native\include\HAL\Task.h:420 - */ - // public static native HALLibrary.TASK spawnTask(ByteBuffer name, int - // priority, int options, int stackSize, HALLibrary.FUNCPTR entryPt, int arg0, - // int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int - // arg8, int arg9); - /** - * Original signature : STATUS restartTask(TASK)
- * native declaration : AthenaJava\target\native\include\HAL\Task.h:422
- *$ - * @deprecated use the safer methods - * {@link #restartTask(edu.wpi.first.wpilibj.hal.HALLibrary.TASK)} - * and {@link #restartTask(com.sun.jna.Pointer)} instead - */ - // @Deprecated - // public static native int restartTask(Pointer task); - /** - * Original signature : STATUS restartTask(TASK)
- * native declaration : AthenaJava\target\native\include\HAL\Task.h:422 - */ - // public static native int restartTask(HALLibrary.TASK task); - /** - * Original signature : STATUS deleteTask(TASK)
- * native declaration : AthenaJava\target\native\include\HAL\Task.h:424
- *$ - * @deprecated use the safer methods - * {@link #deleteTask(edu.wpi.first.wpilibj.hal.HALLibrary.TASK)} - * and {@link #deleteTask(com.sun.jna.Pointer)} instead - */ - // @Deprecated - // public static native int deleteTask(Pointer task); - /** - * Original signature : STATUS deleteTask(TASK)
- * native declaration : AthenaJava\target\native\include\HAL\Task.h:424 - */ - // public static native int deleteTask(HALLibrary.TASK task); - /** - * Original signature : STATUS isTaskReady(TASK)
- * native declaration : AthenaJava\target\native\include\HAL\Task.h:426
- *$ - * @deprecated use the safer methods - * {@link #isTaskReady(edu.wpi.first.wpilibj.hal.HALLibrary.TASK)} - * and {@link #isTaskReady(com.sun.jna.Pointer)} instead - */ - // @Deprecated - // public static native int isTaskReady(Pointer task); - /** - * Original signature : STATUS isTaskReady(TASK)
- * native declaration : AthenaJava\target\native\include\HAL\Task.h:426 - */ - // public static native int isTaskReady(HALLibrary.TASK task); - /** - * Original signature : STATUS isTaskSuspended(TASK)
- * native declaration : AthenaJava\target\native\include\HAL\Task.h:428
- *$ - * @deprecated use the safer methods - * {@link #isTaskSuspended(edu.wpi.first.wpilibj.hal.HALLibrary.TASK)} - * and {@link #isTaskSuspended(com.sun.jna.Pointer)} instead - */ - // @Deprecated - // public static native int isTaskSuspended(Pointer task); - /** - * Original signature : STATUS isTaskSuspended(TASK)
- * native declaration : AthenaJava\target\native\include\HAL\Task.h:428 - */ - // public static native int isTaskSuspended(HALLibrary.TASK task); - /** - * Original signature : STATUS suspendTask(TASK)
- * native declaration : AthenaJava\target\native\include\HAL\Task.h:430
- *$ - * @deprecated use the safer methods - * {@link #suspendTask(edu.wpi.first.wpilibj.hal.HALLibrary.TASK)} - * and {@link #suspendTask(com.sun.jna.Pointer)} instead - */ - // @Deprecated - // public static native int suspendTask(Pointer task); - /** - * Original signature : STATUS suspendTask(TASK)
- * native declaration : AthenaJava\target\native\include\HAL\Task.h:430 - */ - // public static native int suspendTask(HALLibrary.TASK task); - /** - * Original signature : STATUS resumeTask(TASK)
- * native declaration : AthenaJava\target\native\include\HAL\Task.h:432
- *$ - * @deprecated use the safer methods - * {@link #resumeTask(edu.wpi.first.wpilibj.hal.HALLibrary.TASK)} - * and {@link #resumeTask(com.sun.jna.Pointer)} instead - */ - // @Deprecated - // public static native int resumeTask(Pointer task); - /** - * Original signature : STATUS resumeTask(TASK)
- * native declaration : AthenaJava\target\native\include\HAL\Task.h:432 - */ - // public static native int resumeTask(HALLibrary.TASK task); - /** - * Original signature : STATUS verifyTaskID(TASK)
- * native declaration : AthenaJava\target\native\include\HAL\Task.h:434
- *$ - * @deprecated use the safer methods - * {@link #verifyTaskID(edu.wpi.first.wpilibj.hal.HALLibrary.TASK)} - * and {@link #verifyTaskID(com.sun.jna.Pointer)} instead - */ - // @Deprecated - // public static native int verifyTaskID(Pointer task); - /** - * Original signature : STATUS verifyTaskID(TASK)
- * native declaration : AthenaJava\target\native\include\HAL\Task.h:434 - */ - // public static native int verifyTaskID(HALLibrary.TASK task); - /** - * Original signature : STATUS setTaskPriority(TASK, int)
- * native declaration : AthenaJava\target\native\include\HAL\Task.h:436
- *$ - * @deprecated use the safer methods - * {@link #setTaskPriority(edu.wpi.first.wpilibj.hal.HALLibrary.TASK, int)} - * and {@link #setTaskPriority(com.sun.jna.Pointer, int)} instead - */ - // @Deprecated - // public static native int setTaskPriority(Pointer task, int priority); - /** - * Original signature : STATUS setTaskPriority(TASK, int)
- * native declaration : AthenaJava\target\native\include\HAL\Task.h:436 - */ - // public static native int setTaskPriority(HALLibrary.TASK task, int - // priority); - /** - * Original signature : STATUS getTaskPriority(TASK, int*)
- * native declaration : AthenaJava\target\native\include\HAL\Task.h:438
- *$ - * @deprecated use the safer methods - * {@link #getTaskPriority(edu.wpi.first.wpilibj.hal.HALLibrary.TASK, java.nio.IntBuffer)} - * and - * {@link #getTaskPriority(com.sun.jna.Pointer, com.sun.jna.ptr.IntByReference)} - * instead - */ - // @Deprecated - // public static native int getTaskPriority(Pointer task, IntByReference - // priority); - /** - * Original signature : STATUS getTaskPriority(TASK, int*)
- * native declaration : AthenaJava\target\native\include\HAL\Task.h:438 - */ - // public static native int getTaskPriority(HALLibrary.TASK task, IntBuffer - // priority); - /** - * Original signature : void* getPort(uint8_t)
- * native declaration : AthenaJava\target\native\include\HAL\HAL.h:446 - */ - // public static native Pointer getPort(byte pin); - /** - * Original signature : uint16_t getFPGAVersion(int32_t*)
- * native declaration : AthenaJava\target\native\include\HAL\HAL.h:452
- *$ - * @deprecated use the safer methods - * {@link #getFPGAVersion(java.nio.IntBuffer)} and - * {@link #getFPGAVersion(com.sun.jna.ptr.IntByReference)} instead - */ - // @Deprecated - // public static native short getFPGAVersion(IntByReference status); - /** - * Original signature : uint16_t getFPGAVersion(int32_t*)
- * native declaration : AthenaJava\target\native\include\HAL\HAL.h:452 - */ - // public static native short getFPGAVersion(IntBuffer status); - /** - * Original signature : uint32_t getFPGARevision(int32_t*)
- * native declaration : AthenaJava\target\native\include\HAL\HAL.h:454
- *$ - * @deprecated use the safer methods - * {@link #getFPGARevision(java.nio.IntBuffer)} and - * {@link #getFPGARevision(com.sun.jna.ptr.IntByReference)} - * instead - */ - // @Deprecated - // public static native int getFPGARevision(IntByReference status); - /** - * Original signature : uint32_t getFPGARevision(int32_t*)
- * native declaration : AthenaJava\target\native\include\HAL\HAL.h:454 - */ - // public static native int getFPGARevision(IntBuffer status); - /** - * Original signature : uint32_t getFPGATime(int32_t*)
- * native declaration : AthenaJava\target\native\include\HAL\HAL.h:456
- *$ - * @deprecated use the safer methods {@link #getFPGATime(java.nio.IntBuffer)} - * and {@link #getFPGATime(com.sun.jna.ptr.IntByReference)} - * instead - */ - // @Deprecated - // public static native int getFPGATime(IntByReference status); - /** - * Original signature : uint32_t getFPGATime(int32_t*)
- * native declaration : AthenaJava\target\native\include\HAL\HAL.h:456 - */ - // public static native int getFPGATime(IntBuffer status); - /** - * Original signature : double testDouble(double)
- * native declaration : AthenaJava\target\native\include\HAL\HAL.h:462 - */ - public static native double testDouble(double param); - - /** - * Original signature : int32_t testInt32(int32_t)
- * native declaration : AthenaJava\target\native\include\HAL\HAL.h:464 - */ - public static native int testInt32(int param); - - /** - * Original signature : void NumericArrayResize()
- * native declaration : AthenaJava\target\native\include\HAL\HAL.h:470 - */ - public static native void NumericArrayResize(); - - /** - * Original signature : void RTSetCleanupProc()
- * native declaration : AthenaJava\target\native\include\HAL\HAL.h:472 - */ - public static native void RTSetCleanupProc(); - - /** - * Original signature : void EDVR_CreateReference()
- * native declaration : AthenaJava\target\native\include\HAL\HAL.h:474 - */ - public static native void EDVR_CreateReference(); - - /** - * Original signature : void Occur()
- * native declaration : AthenaJava\target\native\include\HAL\HAL.h:476 - */ - public static native void Occur(); -}