yacwc
This commit is contained in:
23
helpers_i2c.h
Normal file
23
helpers_i2c.h
Normal 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 */
|
||||
|
||||
Reference in New Issue
Block a user