Browse Source

Tools: replace header guard with pragma once

mission-4.1.18
Lucas De Marchi 9 years ago committed by Andrew Tridgell
parent
commit
36336e17b3
  1. 7
      Tools/ArduPPM/Libraries/PPM_Encoder.h
  2. 7
      Tools/ArduPPM/Libraries/PPM_Encoder_v3.h
  3. 6
      Tools/Linux_HAL_Essentials/pru/pwmpru/linux_types.h
  4. 5
      Tools/Linux_HAL_Essentials/pru/pwmpru/pru_defs.h
  5. 5
      Tools/Linux_HAL_Essentials/pru/pwmpru/prucomm.h
  6. 6
      Tools/Linux_HAL_Essentials/pru/rcinpru/linux_types.h
  7. 5
      Tools/Linux_HAL_Essentials/pru/rcinpru/pru_defs.h
  8. 5
      Tools/Linux_HAL_Essentials/pru/rcinpru/prucomm.h
  9. 5
      Tools/Replay/DataFlashFileReader.h
  10. 6
      Tools/Replay/LR_MsgHandler.h
  11. 5
      Tools/Replay/MsgHandler.h
  12. 6
      Tools/Replay/Parameters.h
  13. 5
      Tools/Replay/VehicleType.h

7
Tools/ArduPPM/Libraries/PPM_Encoder.h

@ -147,9 +147,7 @@ @@ -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 ) @@ -1055,6 +1053,3 @@ void ppm_encoder_init( void )
}
}
// ------------------------------------------------------------------------------
#endif // _PPM_ENCODER_H_

7
Tools/ArduPPM/Libraries/PPM_Encoder_v3.h

@ -14,9 +14,7 @@ @@ -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 ) @@ -1474,6 +1472,3 @@ void ppm_encoder_init( void )
}
// ------------------------------------------------------------------------------
#endif // _PPM_ENCODER_H_

6
Tools/Linux_HAL_Essentials/pru/pwmpru/linux_types.h

@ -1,5 +1,4 @@ @@ -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; @@ -14,6 +13,3 @@ typedef uint32_t u32;
typedef uint64_t u64;
#define __packed __attribute__((packed))
#endif

5
Tools/Linux_HAL_Essentials/pru/pwmpru/pru_defs.h

@ -1,5 +1,4 @@ @@ -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) @@ -645,5 +644,3 @@ static inline void pru_other_and_or_reg(u16 reg, u32 andmsk, u32 ormsk)
}
#endif
#endif

5
Tools/Linux_HAL_Essentials/pru/pwmpru/prucomm.h

@ -2,8 +2,7 @@ @@ -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 { @@ -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

6
Tools/Linux_HAL_Essentials/pru/rcinpru/linux_types.h

@ -1,5 +1,4 @@ @@ -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; @@ -14,6 +13,3 @@ typedef uint32_t u32;
typedef uint64_t u64;
#define __packed __attribute__((packed))
#endif

5
Tools/Linux_HAL_Essentials/pru/rcinpru/pru_defs.h

@ -1,5 +1,4 @@ @@ -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) @@ -645,5 +644,3 @@ static inline void pru_other_and_or_reg(u16 reg, u32 andmsk, u32 ormsk)
}
#endif
#endif

5
Tools/Linux_HAL_Essentials/pru/rcinpru/prucomm.h

@ -2,8 +2,7 @@ @@ -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 { @@ -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

5
Tools/Replay/DataFlashFileReader.h

@ -1,5 +1,4 @@ @@ -1,5 +1,4 @@
#ifndef REPLAY_DATAFLASHREADER_H
#define REPLAY_DATAFLASHREADER_H
#pragma once
#include <DataFlash/DataFlash.h>
@ -20,5 +19,3 @@ protected: @@ -20,5 +19,3 @@ protected:
#define LOGREADER_MAX_FORMATS 255 // must be >= highest MESSAGE
struct log_Format formats[LOGREADER_MAX_FORMATS] {};
};
#endif

6
Tools/Replay/LR_MsgHandler.h

@ -1,5 +1,4 @@ @@ -1,5 +1,4 @@
#ifndef AP_LR_MSGHANDLER_H
#define AP_LR_MSGHANDLER_H
#pragma once
#include "MsgHandler.h"
@ -414,6 +413,3 @@ public: @@ -414,6 +413,3 @@ public:
private:
Vector3f &sim_attitude;
};
#endif

5
Tools/Replay/MsgHandler.h

@ -1,5 +1,4 @@ @@ -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, @@ -152,5 +151,3 @@ inline void MsgHandler::field_value_for_type_at_offset(uint8_t *msg,
exit(1);
}
}
#endif

6
Tools/Replay/Parameters.h

@ -1,7 +1,5 @@ @@ -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: @@ -23,5 +21,3 @@ public:
};
extern const AP_Param::Info var_info[];
#endif // PARAMETERS_H

5
Tools/Replay/VehicleType.h

@ -1,5 +1,4 @@ @@ -1,5 +1,4 @@
#ifndef AP_VEHICLETYPE_H
#define AP_VEHICLETYPE_H
#pragma once
class VehicleType {
public:
@ -10,5 +9,3 @@ public: @@ -10,5 +9,3 @@ public:
VEHICLE_ROVER
};
};
#endif

Loading…
Cancel
Save