AP_HAL_FLYMAPLE: replace header guard with pragma once

This commit is contained in:
Lucas De Marchi 2016-02-17 23:25:24 -02:00 committed by Andrew Tridgell
parent cd266fbf4f
commit f7a983e525
16 changed files with 16 additions and 80 deletions

View File

@ -15,9 +15,7 @@
/*
Flymaple port by Mike McCauley
*/
#ifndef __AP_HAL_FLYMAPLE_H__
#define __AP_HAL_FLYMAPLE_H__
#pragma once
/* Your layer exports should depend on AP_HAL.h ONLY. */
#include <AP_HAL/AP_HAL.h>
@ -49,6 +47,3 @@
#include "HAL_FLYMAPLE_Class.h"
#endif // CONFIG_HAL_BOARD
#endif //__AP_HAL_FLYMAPLE_H__

View File

@ -15,9 +15,7 @@
/*
Flymaple port by Mike McCauley
*/
#ifndef __AP_HAL_FLYMAPLE_NAMESPACE_H__
#define __AP_HAL_FLYMAPLE_NAMESPACE_H__
#pragma once
/* While not strictly required, names inside the FLYMAPLE namespace are prefixed
* AP_HAL_FLYMAPLE_NS for clarity. (Some of our users aren't familiar with all of the
@ -40,6 +38,3 @@ namespace AP_HAL_FLYMAPLE_NS {
class FLYMAPLEScheduler;
class FLYMAPLEUtil;
}
#endif // __AP_HAL_FLYMAPLE_NAMESPACE_H__

View File

@ -15,9 +15,7 @@
/*
Flymaple port by Mike McCauley
*/
#ifndef __AP_HAL_FLYMAPLE_PRIVATE_H__
#define __AP_HAL_FLYMAPLE_PRIVATE_H__
#pragma once
/* Umbrella header for all private headers of the AP_HAL_FLYMAPLE module.
* Only import this header from inside AP_HAL_FLYMAPLE
@ -34,6 +32,3 @@
#include "Semaphores.h"
#include "Scheduler.h"
#include "Util.h"
#endif // __AP_HAL_FLYMAPLE_PRIVATE_H__

View File

@ -15,9 +15,7 @@
/*
Flymaple port by Mike McCauley
*/
#ifndef __AP_HAL_FLYMAPLE_ANALOGIN_H__
#define __AP_HAL_FLYMAPLE_ANALOGIN_H__
#pragma once
#include "AP_HAL_FLYMAPLE.h"
@ -101,4 +99,3 @@ private:
// divider (25k/5k)
FLYMAPLEAnalogSource _vcc;
};
#endif // __AP_HAL_FLYMAPLE_ANALOGIN_H__

View File

@ -15,9 +15,7 @@
/*
Flymaple port by Mike McCauley
*/
#ifndef __AP_HAL_FLYMAPLE_GPIO_H__
#define __AP_HAL_FLYMAPLE_GPIO_H__
#pragma once
#include "AP_HAL_FLYMAPLE.h"
@ -54,5 +52,3 @@ public:
private:
uint8_t _v;
};
#endif // __AP_HAL_FLYMAPLE_GPIO_H__

View File

@ -15,9 +15,7 @@
/*
Flymaple port by Mike McCauley
*/
#ifndef __AP_HAL_FLYMAPLE_I2CDRIVER_H__
#define __AP_HAL_FLYMAPLE_I2CDRIVER_H__
#pragma once
#include "AP_HAL_FLYMAPLE.h"
@ -60,5 +58,3 @@ private:
AP_HAL::Semaphore* _semaphore;
uint16_t _timeout_ms;
};
#endif // __AP_HAL_FLYMAPLE_I2CDRIVER_H__

View File

@ -15,9 +15,7 @@
/*
Flymaple port by Mike McCauley
*/
#ifndef __AP_HAL_FLYMAPLE_RCINPUT_H__
#define __AP_HAL_FLYMAPLE_RCINPUT_H__
#pragma once
#include "AP_HAL_FLYMAPLE.h"
@ -50,5 +48,3 @@ private:
/* override state */
uint16_t _override[FLYMAPLE_RC_INPUT_NUM_CHANNELS];
};
#endif // __AP_HAL_FLYMAPLE_RCINPUT_H__

View File

@ -15,9 +15,7 @@
/*
Flymaple port by Mike McCauley
*/
#ifndef __AP_HAL_FLYMAPLE_RCOUTPUT_H__
#define __AP_HAL_FLYMAPLE_RCOUTPUT_H__
#pragma once
#include "AP_HAL_FLYMAPLE.h"
@ -45,5 +43,3 @@ private:
uint32_t _clocks_per_msecond[FLYMAPLE_RC_OUTPUT_NUM_CHANNELS];
};
#endif // __AP_HAL_FLYMAPLE_RCOUTPUT_H__

View File

@ -15,9 +15,7 @@
/*
Flymaple port by Mike McCauley
*/
#ifndef __AP_HAL_FLYMAPLE_SPIDRIVER_H__
#define __AP_HAL_FLYMAPLE_SPIDRIVER_H__
#pragma once
#include "AP_HAL_FLYMAPLE.h"
#include "Semaphores.h"
@ -47,5 +45,3 @@ public:
private:
FLYMAPLESPIDeviceDriver _device;
};
#endif // __AP_HAL_FLYMAPLE_SPIDRIVER_H__

View File

@ -15,9 +15,7 @@
/*
Flymaple port by Mike McCauley
*/
#ifndef __AP_HAL_FLYMAPLE_SCHEDULER_H__
#define __AP_HAL_FLYMAPLE_SCHEDULER_H__
#pragma once
#include "AP_HAL_FLYMAPLE.h"
@ -67,5 +65,3 @@ private:
static AP_HAL::MemberProc _timer_proc[FLYMAPLE_SCHEDULER_MAX_TIMER_PROCS];
static uint8_t _num_timer_procs;
};
#endif // __AP_HAL_FLYMAPLE_SCHEDULER_H__

View File

@ -15,9 +15,7 @@
/*
Flymaple port by Mike McCauley
*/
#ifndef __AP_HAL_FLYMAPLE_SEMAPHORE_H__
#define __AP_HAL_FLYMAPLE_SEMAPHORE_H__
#pragma once
#include "AP_HAL_FLYMAPLE.h"
@ -33,5 +31,3 @@ private:
bool _taken;
};
#endif // __AP_HAL_FLYMAPLE_SEMAPHORE_H__

View File

@ -15,9 +15,7 @@
/*
Flymaple port by Mike McCauley
*/
#ifndef __AP_HAL_FLYMAPLE_STORAGE_H__
#define __AP_HAL_FLYMAPLE_STORAGE_H__
#pragma once
#include "AP_HAL_FLYMAPLE.h"
@ -32,5 +30,3 @@ private:
uint8_t read_byte(uint16_t loc);
void write_byte(uint16_t loc, uint8_t value);
};
#endif // __AP_HAL_FLYMAPLE_STORAGE_H__

View File

@ -15,9 +15,7 @@
/*
Flymaple port by Mike McCauley
*/
#ifndef __AP_HAL_FLYMAPLE_UARTDRIVER_H__
#define __AP_HAL_FLYMAPLE_UARTDRIVER_H__
#pragma once
#include "AP_HAL_FLYMAPLE.h"
@ -51,5 +49,3 @@ private:
uint8_t* _rxBuf; // If need more than libmaple usart driver buffer of 63
uint16_t _rxBufSize; // Allocated space in _rxBuf
};
#endif // __AP_HAL_FLYMAPLE_UARTDRIVER_H__

View File

@ -15,9 +15,7 @@
/*
Flymaple port by Mike McCauley
*/
#ifndef __AP_HAL_FLYMAPLE_UTIL_H__
#define __AP_HAL_FLYMAPLE_UTIL_H__
#pragma once
#include <AP_HAL/AP_HAL.h>
#include "AP_HAL_FLYMAPLE_Namespace.h"
@ -26,5 +24,3 @@ class AP_HAL_FLYMAPLE_NS::FLYMAPLEUtil : public AP_HAL::Util {
public:
bool run_debug_shell(AP_HAL::BetterStream *stream) { return false; }
};
#endif // __AP_HAL_FLYMAPLE_UTIL_H__

View File

@ -1,5 +1,4 @@
#ifndef __EEPROM_H
#define __EEPROM_H
#pragma once
#define EEPROM_USES_16BIT_WORDS
@ -95,5 +94,3 @@ private:
};
extern EEPROMClass EEPROM;
#endif /* __EEPROM_H */

View File

@ -1,5 +1,4 @@
#ifndef __FLASH_STM32_H
#define __FLASH_STM32_H
#pragma once
#ifdef __cplusplus
extern "C" {
@ -32,5 +31,3 @@ void FLASH_Lock(void);
#ifdef __cplusplus
}
#endif
#endif /* __FLASH_STM32_H */