2016-05-25 20:23:37 -07:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2017-08-18 21:35:53 -07:00
|
|
|
/* Copyright (c) FIRST 2017. All Rights Reserved. */
|
2016-05-25 20:23:37 -07:00
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
|
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
|
|
|
/* the project. */
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
2017-08-18 21:35:53 -07:00
|
|
|
#include "HAL/I2C.h"
|
2016-05-25 22:38:11 -07:00
|
|
|
|
2016-05-24 00:58:10 -07:00
|
|
|
extern "C" {
|
2017-08-18 21:35:53 -07:00
|
|
|
void HAL_InitializeI2C(HAL_I2CPort port, int32_t* status) {}
|
2017-05-09 12:12:46 -07:00
|
|
|
int32_t HAL_TransactionI2C(HAL_I2CPort port, int32_t deviceAddress,
|
2016-07-12 10:45:14 -07:00
|
|
|
uint8_t* dataToSend, int32_t sendSize,
|
2017-08-18 21:35:53 -07:00
|
|
|
uint8_t* dataReceived, int32_t receiveSize) {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
2017-05-09 12:12:46 -07:00
|
|
|
int32_t HAL_WriteI2C(HAL_I2CPort port, int32_t deviceAddress,
|
2017-08-18 21:35:53 -07:00
|
|
|
uint8_t* dataToSend, int32_t sendSize) {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
2017-05-09 12:12:46 -07:00
|
|
|
int32_t HAL_ReadI2C(HAL_I2CPort port, int32_t deviceAddress, uint8_t* buffer,
|
2017-08-18 21:35:53 -07:00
|
|
|
int32_t count) {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
void HAL_CloseI2C(HAL_I2CPort port) {}
|
2016-05-24 00:58:10 -07:00
|
|
|
}
|