refactored HAL library

builds two libraries, Athena  and Desktop.
Simulation should use Desktop, Robots should use Athena

Also:
 - copied Driverstation and Joystick from Devices into Sim
 - Descreased dependency of pthreads in JNI.
 - removed Simulation ifdef from non simulation
 - added missing decprecated attribute for msvc
 - removed usage reporting from sim
 - removed unused pom.xml and constexpr

Change-Id: If8eb540f9434dce17c77a245fda6985713e80b2d
This commit is contained in:
peter mitrano
2015-08-19 11:12:54 -04:00
parent 43960b9bca
commit 4514e4489a
27 changed files with 1240 additions and 1041 deletions

View File

@@ -123,7 +123,7 @@ public class DriverStation implements RobotState.Interface {
private void task() {
int safetyCounter = 0;
while (m_thread_keepalive) {
HALUtil.takeMultiWait(m_packetDataAvailableSem, m_packetDataAvailableMutex, 0);
HALUtil.takeMultiWait(m_packetDataAvailableSem, m_packetDataAvailableMutex);
synchronized (this) {
getData();
}

View File

@@ -30,7 +30,7 @@ public class HALUtil extends JNIWrapper {
public static native void deleteMultiWait(ByteBuffer sem);
public static native byte takeMultiWait(ByteBuffer sem, ByteBuffer m, int timeOut);
public static native byte takeMultiWait(ByteBuffer sem, ByteBuffer m);
public static native short getFPGAVersion(IntBuffer status);