Changes HAL Headers to be C compliant. (#171)

This commit is contained in:
Thad House
2016-07-12 21:53:06 -07:00
committed by Peter Johnson
parent 1b1ee7f9f3
commit edf5ecd4a0
26 changed files with 117 additions and 15 deletions

View File

@@ -9,7 +9,9 @@
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
void HAL_InitializeI2C(int32_t port, int32_t* status);
int32_t HAL_TransactionI2C(int32_t port, int32_t deviceAddress,
uint8_t* dataToSend, int32_t sendSize,
@@ -19,4 +21,6 @@ int32_t HAL_WriteI2C(int32_t port, int32_t deviceAddress, uint8_t* dataToSend,
int32_t HAL_ReadI2C(int32_t port, int32_t deviceAddress, uint8_t* buffer,
int32_t count);
void HAL_CloseI2C(int32_t port);
#ifdef __cplusplus
}
#endif