mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
This prevents excessive logging from the HAL. Put it back as needed Change-Id: I217f8bf20dd092dd6205444b08c98c9a7c3c83de
36 lines
978 B
C++
36 lines
978 B
C++
#include <jni.h>
|
|
#include <assert.h>
|
|
#include "Log.hpp"
|
|
|
|
#include "edu_wpi_first_wpilibj_hal_I2CJNI.h"
|
|
|
|
|
|
// set the logging level
|
|
TLogLevel i2cJNILogLevel = logWARNING;
|
|
|
|
#define I2CJNI_LOG(level) \
|
|
if (level > i2cJNILogLevel) ; \
|
|
else Log().Get(level)
|
|
|
|
/*
|
|
* Class: edu_wpi_first_wpilibj_hal_I2CJNI
|
|
* Method: doI2CTransaction
|
|
* Signature: (BBLjava/nio/ByteBuffer;BLjava/nio/ByteBuffer;BLjava/nio/IntBuffer;)B
|
|
*/
|
|
JNIEXPORT jbyte JNICALL Java_edu_wpi_first_wpilibj_hal_I2CJNI_doI2CTransaction
|
|
(JNIEnv *, jclass, jbyte, jbyte, jobject, jbyte, jobject, jbyte, jobject)
|
|
{
|
|
assert(false);
|
|
}
|
|
|
|
/*
|
|
* Class: edu_wpi_first_wpilibj_hal_I2CJNI
|
|
* Method: doI2CTransactionWithModule
|
|
* Signature: (BBBLjava/nio/ByteBuffer;BLjava/nio/ByteBuffer;BLjava/nio/IntBuffer;)B
|
|
*/
|
|
JNIEXPORT jbyte JNICALL Java_edu_wpi_first_wpilibj_hal_I2CJNI_doI2CTransactionWithModule
|
|
(JNIEnv *, jclass, jbyte, jbyte, jbyte, jobject, jbyte, jobject, jbyte, jobject)
|
|
{
|
|
assert(false);
|
|
}
|