mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[hal] Expose CAN timestamp base clock (#5357)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user