mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 10:03:50 +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:
commit
18ac4dfcb9
@ -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 */
|
||||
/** @} */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user