Skip to content
Snippets Groups Projects
Commit 18ac4dfc authored by Ludwig Knüpfer's avatar Ludwig Knüpfer
Browse files

Merge pull request #1856 from BytesGalore/extern_C_in_headers_drivers_add_new_headers

drivers: added missing `extern "C"` guards in new files
parents dd379220 469f28bf
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,10 @@
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
uint8_t cc110x_txrx(uint8_t c);
void cc110x_gdo0_enable(void);
......@@ -29,3 +33,7 @@ void cc110x_init_interrupts(void);
void cc110x_before_send(void);
void cc110x_after_send(void);
#ifdef __cplusplus
}
#endif
......@@ -24,6 +24,10 @@
#include <stdint.h>
#include "periph/i2c.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief The sensors default I2C address
*/
......@@ -101,5 +105,9 @@ int isl29020_enable(isl29020_t *dev);
*/
int isl29020_disable(isl29020_t *dev);
#ifdef __cplusplus
}
#endif
#endif /* __ISL29020_H */
/** @} */
......@@ -19,6 +19,10 @@
#ifndef __ISL29020_INTERNAL_H
#define __ISL29020_INTERNAL_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name ISL29020 registers
* @{
......@@ -61,5 +65,9 @@
#define ISL29020_RANGE_4 0x03
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* __ISL29020_INTERNAL_H */
/** @} */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment