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