1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-17 10:33:49 +01:00

Merge pull request #1856 from BytesGalore/extern_C_in_headers_drivers_add_new_headers

drivers: added missing `extern "C"` guards in new files
This commit is contained in:
Ludwig Ortmann 2014-10-23 01:51:23 -07:00
commit 18ac4dfcb9
3 changed files with 24 additions and 0 deletions

View File

@ -19,6 +19,10 @@
#include <stdint.h> #include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
uint8_t cc110x_txrx(uint8_t c); uint8_t cc110x_txrx(uint8_t c);
void cc110x_gdo0_enable(void); void cc110x_gdo0_enable(void);
@ -29,3 +33,7 @@ void cc110x_init_interrupts(void);
void cc110x_before_send(void); void cc110x_before_send(void);
void cc110x_after_send(void); void cc110x_after_send(void);
#ifdef __cplusplus
}
#endif

View File

@ -24,6 +24,10 @@
#include <stdint.h> #include <stdint.h>
#include "periph/i2c.h" #include "periph/i2c.h"
#ifdef __cplusplus
extern "C" {
#endif
/** /**
* @brief The sensors default I2C address * @brief The sensors default I2C address
*/ */
@ -101,5 +105,9 @@ int isl29020_enable(isl29020_t *dev);
*/ */
int isl29020_disable(isl29020_t *dev); int isl29020_disable(isl29020_t *dev);
#ifdef __cplusplus
}
#endif
#endif /* __ISL29020_H */ #endif /* __ISL29020_H */
/** @} */ /** @} */

View File

@ -19,6 +19,10 @@
#ifndef __ISL29020_INTERNAL_H #ifndef __ISL29020_INTERNAL_H
#define __ISL29020_INTERNAL_H #define __ISL29020_INTERNAL_H
#ifdef __cplusplus
extern "C" {
#endif
/** /**
* @name ISL29020 registers * @name ISL29020 registers
* @{ * @{
@ -61,5 +65,9 @@
#define ISL29020_RANGE_4 0x03 #define ISL29020_RANGE_4 0x03
/** @} */ /** @} */
#ifdef __cplusplus
}
#endif
#endif /* __ISL29020_INTERNAL_H */ #endif /* __ISL29020_INTERNAL_H */
/** @} */ /** @} */