artf4149: Removed references to VxWorks

Implemented setTaskPriority() and getTaskPriority() in Task HAL API

Removed all other unimplemented functions in HAL and removed spawnTask()

Replaced instances of pthread_t* with TASK typedef

Removed unused HAL error constants and removed commented-out classes and functions in wpilibj's HALLibrary

Changed Task class API to match the construction semantics of a std::thread

Change-Id: I3bc951a3da90d24c5589fae4d1ca2bb60225c873
This commit is contained in:
Tyler Veness
2014-08-14 00:07:02 -07:00
committed by James Kuszmaul
parent 5712565068
commit fd4c169658
41 changed files with 214 additions and 647 deletions

View File

@@ -712,56 +712,4 @@ public class HALLibrary /* implements Library */{
* <i>native declaration : AthenaJava\target\native\include\HAL\HAL.h:476</i>
*/
public static native void Occur();
/*
* public static final GlobalDouble kDefaultWatchdogExpiration = new
* GlobalDouble(HALLibrary.JNA_NATIVE_LIB, "kDefaultWatchdogExpiration");
* public static final GlobalInt HAL_NO_WAIT = new
* GlobalInt(HALLibrary.JNA_NATIVE_LIB, "HAL_NO_WAIT"); public static final
* GlobalInt HAL_WAIT_FOREVER = new GlobalInt(HALLibrary.JNA_NATIVE_LIB,
* "HAL_WAIT_FOREVER"); public static final GlobalInt SEMAPHORE_Q_FIFO = new
* GlobalInt(HALLibrary.JNA_NATIVE_LIB, "SEMAPHORE_Q_FIFO");
*/
/*
* public static final GlobalInt SEMAPHORE_DELETE_SAFE = new
* GlobalInt(HALLibrary.JNA_NATIVE_LIB, "SEMAPHORE_DELETE_SAFE"); public
* static final GlobalInt SEMAPHORE_INVERSION_SAFE = new
* GlobalInt(HALLibrary.JNA_NATIVE_LIB, "SEMAPHORE_INVERSION_SAFE"); public
* static final GlobalInt SEMAPHORE_NO_WAIT = new
* GlobalInt(HALLibrary.JNA_NATIVE_LIB, "SEMAPHORE_NO_WAIT");
*/
/*
* public static final GlobalInt SEMAPHORE_EMPTY = new
* GlobalInt(HALLibrary.JNA_NATIVE_LIB, "SEMAPHORE_EMPTY"); public static
* final GlobalInt SEMAPHORE_FULL = new GlobalInt(HALLibrary.JNA_NATIVE_LIB,
* "SEMAPHORE_FULL"); public static final GlobalInt VXWORKS_FP_TASK = new
* GlobalInt(HALLibrary.JNA_NATIVE_LIB, "VXWORKS_FP_TASK"); public static
* final GlobalInt HAL_objLib_OBJ_ID_ERROR = new
* GlobalInt(HALLibrary.JNA_NATIVE_LIB, "HAL_objLib_OBJ_ID_ERROR"); public
* static final GlobalInt HAL_objLib_OBJ_DELETED = new
* GlobalInt(HALLibrary.JNA_NATIVE_LIB, "HAL_objLib_OBJ_DELETED"); public
* static final GlobalInt HAL_taskLib_ILLEGAL_OPTIONS = new
* GlobalInt(HALLibrary.JNA_NATIVE_LIB, "HAL_taskLib_ILLEGAL_OPTIONS"); public
* static final GlobalInt HAL_memLib_NOT_ENOUGH_MEMORY = new
* GlobalInt(HALLibrary.JNA_NATIVE_LIB, "HAL_memLib_NOT_ENOUGH_MEMORY");
* public static final GlobalInt HAL_taskLib_ILLEGAL_PRIORITY = new
* GlobalInt(HALLibrary.JNA_NATIVE_LIB, "HAL_taskLib_ILLEGAL_PRIORITY");
* public static final GlobalInt dio_kNumSystems = new
* GlobalInt(HALLibrary.JNA_NATIVE_LIB, "dio_kNumSystems"); public static
* final GlobalInt solenoid_kNumDO7_0Elements = new
* GlobalInt(HALLibrary.JNA_NATIVE_LIB, "solenoid_kNumDO7_0Elements"); public
* static final GlobalInt interrupt_kNumSystems = new
* GlobalInt(HALLibrary.JNA_NATIVE_LIB, "interrupt_kNumSystems"); public
* static final GlobalInt kSystemClockTicksPerMicrosecond = new
* GlobalInt(HALLibrary.JNA_NATIVE_LIB, "kSystemClockTicksPerMicrosecond");
*/
/*
* public static class TASK extends PointerType { public TASK(Pointer address)
* { super(address); } public TASK() { super(); } }; public static class
* MUTEX_ID extends PointerType { public MUTEX_ID(Pointer address) {
* super(address); } public MUTEX_ID() { super(); } }; public static class
* MULTIWAIT_ID extends PointerType { public MULTIWAIT_ID(Pointer address) {
* super(address); } public MULTIWAIT_ID() { super(); } }; public static class
* SEMAPHORE_ID extends PointerType { public SEMAPHORE_ID(Pointer address) {
* super(address); } public SEMAPHORE_ID() { super(); } };
*/
}