mirror of https://github.com/ArduPilot/ardupilot
Tools: replace header guard with pragma once
This commit is contained in:
parent
e01d49ff53
commit
36336e17b3
|
@ -147,9 +147,7 @@
|
|||
// - ppm_encoder_init() will now make sure PPM output always starts with fail-safe (900us) value on throttle after a brown-out reset
|
||||
|
||||
// -------------------------------------------------------------
|
||||
|
||||
#ifndef _PPM_ENCODER_H_
|
||||
#define _PPM_ENCODER_H_
|
||||
#pragma once
|
||||
|
||||
#include <avr/io.h>
|
||||
|
||||
|
@ -1055,6 +1053,3 @@ void ppm_encoder_init( void )
|
|||
}
|
||||
}
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
#endif // _PPM_ENCODER_H_
|
||||
|
||||
|
|
|
@ -14,9 +14,7 @@
|
|||
// -------------------------------------------------------------
|
||||
|
||||
// Not for production - Work in progress
|
||||
|
||||
#ifndef _PPM_ENCODER_H_
|
||||
#define _PPM_ENCODER_H_
|
||||
#pragma once
|
||||
|
||||
#include <avr/io.h>
|
||||
#include <avr/interrupt.h>
|
||||
|
@ -1474,6 +1472,3 @@ void ppm_encoder_init( void )
|
|||
|
||||
}
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
#endif // _PPM_ENCODER_H_
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef LINUX_TYPES_H
|
||||
#define LINUX_TYPES_H
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
@ -14,6 +13,3 @@ typedef uint32_t u32;
|
|||
typedef uint64_t u64;
|
||||
|
||||
#define __packed __attribute__((packed))
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef PRU_DEFS_H
|
||||
#define PRU_DEFS_H
|
||||
#pragma once
|
||||
|
||||
volatile register unsigned int __R31;
|
||||
volatile register unsigned int __R30;
|
||||
|
@ -645,5 +644,3 @@ static inline void pru_other_and_or_reg(u16 reg, u32 andmsk, u32 ormsk)
|
|||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
* prucomm.h - structure definitions for communication
|
||||
*
|
||||
*/
|
||||
#ifndef PRUCOMM_H
|
||||
#define PRUCOMM_H
|
||||
#pragma once
|
||||
|
||||
#include "pru_defs.h"
|
||||
|
||||
|
@ -71,5 +70,3 @@ struct cxt {
|
|||
|
||||
/* the command is at the start of shared DPRAM */
|
||||
#define PWM_CMD ((volatile struct pwm_cmd *)DPRAM_SHARED)
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef LINUX_TYPES_H
|
||||
#define LINUX_TYPES_H
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
@ -14,6 +13,3 @@ typedef uint32_t u32;
|
|||
typedef uint64_t u64;
|
||||
|
||||
#define __packed __attribute__((packed))
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef PRU_DEFS_H
|
||||
#define PRU_DEFS_H
|
||||
#pragma once
|
||||
|
||||
volatile register unsigned int __R31;
|
||||
volatile register unsigned int __R30;
|
||||
|
@ -645,5 +644,3 @@ static inline void pru_other_and_or_reg(u16 reg, u32 andmsk, u32 ormsk)
|
|||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
* prucomm.h - structure definitions for communication
|
||||
*
|
||||
*/
|
||||
#ifndef PRUCOMM_H
|
||||
#define PRUCOMM_H
|
||||
#pragma once
|
||||
|
||||
#include "pru_defs.h"
|
||||
|
||||
|
@ -23,5 +22,3 @@ struct ring_buffer {
|
|||
|
||||
/* the command is at the start of shared DPRAM */
|
||||
#define RBUFF ((volatile struct ring_buffer *)DPRAM_SHARED)
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef REPLAY_DATAFLASHREADER_H
|
||||
#define REPLAY_DATAFLASHREADER_H
|
||||
#pragma once
|
||||
|
||||
#include <DataFlash/DataFlash.h>
|
||||
|
||||
|
@ -20,5 +19,3 @@ protected:
|
|||
#define LOGREADER_MAX_FORMATS 255 // must be >= highest MESSAGE
|
||||
struct log_Format formats[LOGREADER_MAX_FORMATS] {};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef AP_LR_MSGHANDLER_H
|
||||
#define AP_LR_MSGHANDLER_H
|
||||
#pragma once
|
||||
|
||||
#include "MsgHandler.h"
|
||||
|
||||
|
@ -414,6 +413,3 @@ public:
|
|||
private:
|
||||
Vector3f &sim_attitude;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef AP_MSGHANDLER_H
|
||||
#define AP_MSGHANDLER_H
|
||||
#pragma once
|
||||
|
||||
#include <DataFlash/DataFlash.h>
|
||||
#include "VehicleType.h"
|
||||
|
@ -152,5 +151,3 @@ inline void MsgHandler::field_value_for_type_at_offset(uint8_t *msg,
|
|||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
||||
|
||||
#ifndef PARAMETERS_H
|
||||
#define PARAMETERS_H
|
||||
#pragma once
|
||||
|
||||
#include <AP_Common/AP_Common.h>
|
||||
|
||||
|
@ -23,5 +21,3 @@ public:
|
|||
};
|
||||
|
||||
extern const AP_Param::Info var_info[];
|
||||
|
||||
#endif // PARAMETERS_H
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef AP_VEHICLETYPE_H
|
||||
#define AP_VEHICLETYPE_H
|
||||
#pragma once
|
||||
|
||||
class VehicleType {
|
||||
public:
|
||||
|
@ -10,5 +9,3 @@ public:
|
|||
VEHICLE_ROVER
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue