Skip to content

Commit 258c517

Browse files
committed
drivers/include: applied the script to the driver headers
1 parent e8be6ee commit 258c517

File tree

216 files changed

+852
-852
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

216 files changed

+852
-852
lines changed

drivers/include/ad7746.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
* directory for more details.
77
*/
88

9+
#ifndef AD7746_H
10+
#define AD7746_H
11+
912
/**
1013
* @defgroup drivers_ad7746 AD7746 Capacitance-to-digital converter driver
1114
* @ingroup drivers_sensors
@@ -41,9 +44,6 @@
4144
* @author Leandro Lanzieri <[email protected]>
4245
*/
4346

44-
#ifndef AD7746_H
45-
#define AD7746_H
46-
4747
#ifdef __cplusplus
4848
extern "C" {
4949
#endif
@@ -331,5 +331,5 @@ int ad7746_set_cap_sr(const ad7746_t *dev, ad7746_cap_sample_rate_t sr);
331331
}
332332
#endif
333333

334-
#endif /* AD7746_H */
335334
/** @} */
335+
#endif /* AD7746_H */

drivers/include/adcxx1c.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
* directory for more details.
77
*/
88

9+
#ifndef ADCXX1C_H
10+
#define ADCXX1C_H
11+
912
/**
1013
* @defgroup drivers_adcxx1c ADCXX1C ADC device driver
1114
* @ingroup drivers_sensors
@@ -23,9 +26,6 @@
2326
* @author Vincent Dupont <[email protected]>
2427
*/
2528

26-
#ifndef ADCXX1C_H
27-
#define ADCXX1C_H
28-
2929
#ifdef __cplusplus
3030
extern "C" {
3131
#endif
@@ -181,5 +181,5 @@ int adcxx1c_get_and_clear_alert(const adcxx1c_t *dev);
181181
}
182182
#endif
183183

184-
#endif /* ADCXX1C_H */
185184
/** @} */
185+
#endif /* ADCXX1C_H */

drivers/include/ads101x.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
* directory for more details.
88
*/
99

10+
#ifndef ADS101X_H
11+
#define ADS101X_H
12+
1013
/**
1114
* @defgroup drivers_ads101x ADS101x/111x ADC device driver
1215
* @ingroup drivers_sensors
@@ -28,9 +31,6 @@
2831
* @author Matthew Blue <[email protected]>
2932
*/
3033

31-
#ifndef ADS101X_H
32-
#define ADS101X_H
33-
3434
#ifdef __cplusplus
3535
extern "C" {
3636
#endif
@@ -181,5 +181,5 @@ int ads101x_set_alert_parameters(const ads101x_alert_t *dev,
181181
}
182182
#endif
183183

184-
#endif /* ADS101X_H */
185184
/** @} */
185+
#endif /* ADS101X_H */

drivers/include/adt7310.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
* directory for more details.
77
*/
88

9+
#ifndef ADT7310_H
10+
#define ADT7310_H
11+
912
/**
1013
* @defgroup drivers_adt7310 ADT7310 SPI temperature sensor
1114
* @ingroup drivers_sensors
@@ -47,9 +50,6 @@
4750
* @author Joakim Nohlgård <[email protected]>
4851
*/
4952

50-
#ifndef ADT7310_H
51-
#define ADT7310_H
52-
5353
#include <stdint.h>
5454
#include <stdbool.h>
5555
#include "periph/spi.h"
@@ -177,5 +177,5 @@ float adt7310_read_float(const adt7310_t *dev);
177177
}
178178
#endif
179179

180-
#endif /* ADT7310_H */
181180
/** @} */
181+
#endif /* ADT7310_H */

drivers/include/adxl345.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
* directory for more details.
77
*/
88

9+
#ifndef ADXL345_H
10+
#define ADXL345_H
11+
912
/**
1013
* @defgroup drivers_adxl345 ADXL345 3-Axis accelerometer
1114
* @ingroup drivers_sensors
@@ -21,9 +24,6 @@
2124
* @author Dylan Laduranty <[email protected]>
2225
*/
2326

24-
#ifndef ADXL345_H
25-
#define ADXL345_H
26-
2727
#ifdef __cplusplus
2828
extern "C" {
2929
#endif
@@ -245,5 +245,5 @@ void adxl345_set_fifo_mode(const adxl345_t *dev, uint8_t mode,
245245
}
246246
#endif
247247

248-
#endif /* ADXL345_H */
249248
/** @} */
249+
#endif /* ADXL345_H */

drivers/include/aip31068.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
* directory for more details.
77
*/
88

9+
#ifndef AIP31068_H
10+
#define AIP31068_H
11+
912
/**
1013
* @defgroup drivers_aip31068 AIP31068 I2C LCD controller
1114
* @ingroup drivers_display
@@ -17,9 +20,6 @@
1720
* @file
1821
*/
1922

20-
#ifndef AIP31068_H
21-
#define AIP31068_H
22-
2323
#ifdef __cplusplus
2424
extern "C"
2525
{
@@ -422,5 +422,5 @@ int aip31068_print_char(aip31068_t *dev, char c);
422422
}
423423
#endif
424424

425-
#endif /* AIP31068_H */
426425
/** @} */
426+
#endif /* AIP31068_H */

drivers/include/apa102.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
* directory for more details.
77
*/
88

9+
#ifndef APA102_H
10+
#define APA102_H
11+
912
/**
1013
* @defgroup drivers_apa102 APA102 RGB LED
1114
* @ingroup drivers_actuators
@@ -18,9 +21,6 @@
1821
* @author Hauke Petersen <[email protected]>
1922
*/
2023

21-
#ifndef APA102_H
22-
#define APA102_H
23-
2424
#include "color.h"
2525
#include "periph/gpio.h"
2626

@@ -68,5 +68,5 @@ void apa102_load_rgba(const apa102_t *dev, const color_rgba_t vals[]);
6868
}
6969
#endif
7070

71-
#endif /* APA102_H */
7271
/** @} */
72+
#endif /* APA102_H */

drivers/include/apds99xx.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
* directory for more details.
77
*/
88

9+
#ifndef APDS99XX_H
10+
#define APDS99XX_H
11+
912
/**
1013
* @defgroup drivers_apds99xx APDS99XX proximity and ambient light sensors
1114
* @ingroup drivers_sensors
@@ -199,9 +202,6 @@
199202
* @file
200203
*/
201204

202-
#ifndef APDS99XX_H
203-
#define APDS99XX_H
204-
205205
#ifdef __cplusplus
206206
extern "C"
207207
{
@@ -683,5 +683,5 @@ int apds99xx_int_source(apds99xx_t *dev, apds99xx_int_source_t* src);
683683
}
684684
#endif
685685

686-
#endif /* APDS99XX_H */
687686
/** @} */
687+
#endif /* APDS99XX_H */

drivers/include/arduino_pinmap.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
* directory for more details.
77
*/
88

9+
#ifndef ARDUINO_PINMAP_H
10+
#define ARDUINO_PINMAP_H
11+
912
/**
1013
* @ingroup drivers
1114
* @{
@@ -18,9 +21,6 @@
1821
* @author Marian Buschsieweke <[email protected]>
1922
*/
2023

21-
#ifndef ARDUINO_PINMAP_H
22-
#define ARDUINO_PINMAP_H
23-
2424
#include "arduino_iomap.h"
2525

2626
#ifdef __cplusplus
@@ -34,5 +34,5 @@ extern "C" {
3434
}
3535
#endif
3636

37-
#endif /* ARDUINO_PINMAP_H */
3837
/** @} */
38+
#endif /* ARDUINO_PINMAP_H */

drivers/include/at.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
* directory for more details.
77
*/
88

9+
#ifndef AT_H
10+
#define AT_H
11+
912
/**
1013
* @defgroup drivers_at AT (Hayes) command set library
1114
* @ingroup drivers_misc
@@ -111,9 +114,6 @@
111114
* @author Kaspar Schleiser <[email protected]>
112115
*/
113116

114-
#ifndef AT_H
115-
#define AT_H
116-
117117
#include <stdint.h>
118118
#include <unistd.h>
119119
#include <stdbool.h>
@@ -662,5 +662,5 @@ void at_postprocess_urc_all(at_dev_t *dev, char *buf);
662662
}
663663
#endif
664664

665-
#endif /* AT_H */
666665
/** @} */
666+
#endif /* AT_H */

0 commit comments

Comments
 (0)