[hal] Expose CAN timestamp base clock (#5357)

This commit is contained in:
Ryan Blue
2023-06-07 12:54:03 -04:00
committed by GitHub
parent 91cbcea841
commit 1c00a52b67
9 changed files with 81 additions and 28 deletions

View File

@@ -18,6 +18,18 @@ using namespace hal;
using namespace wpi::java;
extern "C" {
/*
* Class: edu_wpi_first_hal_CANAPIJNI
* Method: getCANPacketBaseTime
* Signature: ()J
*/
JNIEXPORT jlong JNICALL
Java_edu_wpi_first_hal_CANAPIJNI_getCANPacketBaseTime
(JNIEnv*, jclass)
{
return HAL_GetCANPacketBaseTime();
}
/*
* Class: edu_wpi_first_hal_CANAPIJNI
* Method: initializeCAN