Skip to content

Commit

Permalink
add cpp guards
Browse files Browse the repository at this point in the history
  • Loading branch information
oclyke authored Oct 24, 2019
1 parent 16b744c commit 3f3ef2f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion common/third_party/lis2dh12/lis2dh12_platform_apollo3.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ SOFTWARE.
#include "am_mcu_apollo.h"
#include "lis2dh12_reg.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef struct _lis2dh12_platform_apollo3_if_t {
void* iomHandle; // IO Master instance
uint8_t addCS; // I2C mode: the 7-bit I2C address (either 0x18 or 0x19 depeding on SA0 pin)
Expand All @@ -36,4 +40,8 @@ typedef struct _lis2dh12_platform_apollo3_if_t {
int32_t lis2dh12_write_platform_apollo3(void *handle, uint8_t reg, uint8_t *bufp, uint16_t len);
int32_t lis2dh12_read_platform_apollo3(void *handle, uint8_t reg, uint8_t *bufp, uint16_t len);

#endif // _LIS2DH12_PLATFORM_APOLLO3_H_
#ifdef __cplusplus
}
#endif

#endif // _LIS2DH12_PLATFORM_APOLLO3_H_

0 comments on commit 3f3ef2f

Please sign in to comment.