24 lines
469 B
C
24 lines
469 B
C
// more than once.
|
|
#ifndef HELPER_I2C_H
|
|
#define HELPER_I2C_H
|
|
|
|
#include <xc.h> // include processor files - each processor file is guarded.
|
|
#include <avr/io.h>
|
|
|
|
|
|
void i2c_init(void);
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
// TODO If C++ is being used, regular C code needs function names to have C
|
|
// linkage so the functions can be used by the c code.
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* XC_HEADER_TEMPLATE_H */
|
|
|