This commit is contained in:
2021-09-17 13:38:33 -04:00
parent 1614f595e3
commit b02a188a3f
27 changed files with 2732 additions and 0 deletions

23
helpers_i2c.h Normal file
View File

@@ -0,0 +1,23 @@
// 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 */