mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Moves the DS new data wait calls down to the HAL. (#156)
This commit is contained in:
committed by
Peter Johnson
parent
0cb288ffba
commit
4a98e68815
@@ -372,80 +372,6 @@ JNIEXPORT void JNICALL JNI_OnUnload(JavaVM *vm, void *reserved) {
|
||||
jvm = nullptr;
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: edu_wpi_first_wpilibj_hal_HALUtil
|
||||
* Method: initializeMutex
|
||||
* Signature: (I)J
|
||||
*/
|
||||
JNIEXPORT jlong JNICALL
|
||||
Java_edu_wpi_first_wpilibj_hal_HALUtil_initializeMutexNormal(
|
||||
JNIEnv *env, jclass) {
|
||||
HALUTIL_LOG(logDEBUG) << "Calling HALUtil initializeMutex";
|
||||
MUTEX_ID mutex = HAL_InitializeMutexNormal();
|
||||
HALUTIL_LOG(logDEBUG) << "Mutex Ptr = " << mutex;
|
||||
return (jlong)mutex;
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: edu_wpi_first_wpilibj_hal_HALUtil
|
||||
* Method: deleteMutex
|
||||
* Signature: (J)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_HALUtil_deleteMutex(
|
||||
JNIEnv *env, jclass, jlong id) {
|
||||
HALUTIL_LOG(logDEBUG) << "Calling HALUtil deleteMutex";
|
||||
HALUTIL_LOG(logDEBUG) << "Mutex Ptr = " << (MUTEX_ID)id;
|
||||
HAL_DeleteMutex((MUTEX_ID)id);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: edu_wpi_first_wpilibj_hal_HALUtil
|
||||
* Method: takeMutex
|
||||
* Signature: (JI)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_HALUtil_takeMutex(
|
||||
JNIEnv *env, jclass, jlong id) {
|
||||
// HALUTIL_LOG(logDEBUG) << "Calling HALUtil takeMutex";
|
||||
// HALUTIL_LOG(logDEBUG) << "Mutex Ptr = " << (MUTEX_ID)id;
|
||||
HAL_TakeMutex((MUTEX_ID)id);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: edu_wpi_first_wpilibj_hal_HALUtil
|
||||
* Method: initializeMultiWait
|
||||
* Signature: ()J
|
||||
*/
|
||||
JNIEXPORT jlong JNICALL
|
||||
Java_edu_wpi_first_wpilibj_hal_HALUtil_initializeMultiWait(
|
||||
JNIEnv *env, jclass) {
|
||||
HALUTIL_LOG(logDEBUG) << "Calling HALUtil initializeMultiWait";
|
||||
MULTIWAIT_ID multiWait = HAL_InitializeMultiWait();
|
||||
HALUTIL_LOG(logDEBUG) << "MultiWait Ptr = " << multiWait;
|
||||
return (jlong)multiWait;
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: edu_wpi_first_wpilibj_hal_HALUtil
|
||||
* Method: deleteMultiWait
|
||||
* Signature: (J)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_HALUtil_deleteMultiWait(
|
||||
JNIEnv *env, jclass, jlong id) {
|
||||
HALUTIL_LOG(logDEBUG) << "Calling HALUtil deleteMultiWait";
|
||||
HALUTIL_LOG(logDEBUG) << "MultiWait Ptr = " << (MULTIWAIT_ID)id;
|
||||
HAL_DeleteMultiWait((MULTIWAIT_ID)id);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: edu_wpi_first_wpilibj_hal_HALUtil
|
||||
* Method: takeMultiWait
|
||||
* Signature: (JJ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_HALUtil_takeMultiWait(
|
||||
JNIEnv *env, jclass, jlong multiWaitId, jlong mutexId) {
|
||||
HAL_TakeMultiWait((MULTIWAIT_ID)multiWaitId, (MUTEX_ID)mutexId);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: edu_wpi_first_wpilibj_hal_HALUtil
|
||||
* Method: getFPGAVersion
|
||||
|
||||
Reference in New Issue
Block a user