Add include guard in headers files (#8108)

Signed-off-by: Sugnan Prabhu S <sugnan.prabhu.s@intel.com>
This commit is contained in:
Sugnan Prabhu
2017-10-11 19:17:52 +05:30
committed by Daniel Agar
parent 553c8b38d2
commit 81809be7cd
28 changed files with 56 additions and 1 deletions
+2
View File
@@ -31,6 +31,8 @@
*
****************************************************************************/
#pragma once
#include <drivers/device/i2c.h>
#include <drivers/drv_airspeed.h>
#include <drivers/drv_hrt.h>
+2
View File
@@ -1,3 +1,5 @@
#pragma once
/*
* I2C busses
*/
+2
View File
@@ -38,6 +38,8 @@
* @author Mark Charlebois <charlebm@gmail.com>
*/
#pragma once
#include <px4_tasks.h>
#include <drivers/drv_device.h>
#include "device.h"
+1
View File
@@ -41,6 +41,7 @@
* @author Nicolae Rosia <nicolae.rosia@gmail.com>
*/
#pragma once
class LinuxGPIO
{
+2
View File
@@ -33,6 +33,8 @@
*
****************************************************************************/
#pragma once
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ipc.h>
+2
View File
@@ -37,6 +37,8 @@
* Shared defines for the mpl3115a2 driver.
*/
#pragma once
#define MPL3115A2_REG_WHO_AM_I 0x0c
#define MPL3115A2_WHO_AM_I 0xC4
+3 -1
View File
@@ -38,6 +38,8 @@
* Declarations of parser for the Lightware SF0x laser rangefinder series
*/
#pragma once
enum SF0X_PARSE_STATE {
SF0X_PARSE_STATE0_UNSYNC = 0,
SF0X_PARSE_STATE1_SYNC,
@@ -48,4 +50,4 @@ enum SF0X_PARSE_STATE {
SF0X_PARSE_STATE6_GOT_CARRIAGE_RETURN
};
int sf0x_parser(char c, char *parserbuf, unsigned *parserbuf_index, enum SF0X_PARSE_STATE *state, float *dist);
int sf0x_parser(char c, char *parserbuf, unsigned *parserbuf_index, enum SF0X_PARSE_STATE *state, float *dist);