AP_HAL_Empty: replace header guard with pragma once

This commit is contained in:
Lucas De Marchi 2016-02-17 23:25:23 -02:00
parent 1a71c169fe
commit 2bed317c6c
13 changed files with 13 additions and 67 deletions

View File

@ -1,6 +1,4 @@
#pragma once
#ifndef __AP_HAL_EMPTY_H__
#define __AP_HAL_EMPTY_H__
/* Your layer exports should depend on AP_HAL.h ONLY. */ /* Your layer exports should depend on AP_HAL.h ONLY. */
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>
@ -21,6 +19,3 @@
*/ */
#include "HAL_Empty_Class.h" #include "HAL_Empty_Class.h"
#endif //__AP_HAL_EMPTY_H__

View File

@ -1,6 +1,4 @@
#pragma once
#ifndef __AP_HAL_EMPTY_PRIVATE_H__
#define __AP_HAL_EMPTY_PRIVATE_H__
/* Umbrella header for all private headers of the AP_HAL_Empty module. /* Umbrella header for all private headers of the AP_HAL_Empty module.
* Only import this header from inside AP_HAL_Empty * Only import this header from inside AP_HAL_Empty
@ -20,6 +18,3 @@
#include "Storage.h" #include "Storage.h"
#include "UARTDriver.h" #include "UARTDriver.h"
#include "Util.h" #include "Util.h"
#endif // __AP_HAL_EMPTY_PRIVATE_H__

View File

@ -1,6 +1,4 @@
#pragma once
#ifndef __AP_HAL_EMPTY_ANALOGIN_H__
#define __AP_HAL_EMPTY_ANALOGIN_H__
#include "AP_HAL_Empty.h" #include "AP_HAL_Empty.h"
@ -26,4 +24,3 @@ public:
AP_HAL::AnalogSource* channel(int16_t n); AP_HAL::AnalogSource* channel(int16_t n);
float board_voltage(void); float board_voltage(void);
}; };
#endif // __AP_HAL_EMPTY_ANALOGIN_H__

View File

@ -1,6 +1,4 @@
#pragma once
#ifndef __AP_HAL_EMPTY_GPIO_H__
#define __AP_HAL_EMPTY_GPIO_H__
#include "AP_HAL_Empty.h" #include "AP_HAL_Empty.h"
@ -35,5 +33,3 @@ public:
private: private:
uint8_t _v; uint8_t _v;
}; };
#endif // __AP_HAL_EMPTY_GPIO_H__

View File

@ -1,6 +1,4 @@
#pragma once
#ifndef __AP_HAL_EMPTY_I2CDRIVER_H__
#define __AP_HAL_EMPTY_I2CDRIVER_H__
#include "AP_HAL_Empty.h" #include "AP_HAL_Empty.h"
@ -49,5 +47,3 @@ public:
private: private:
AP_HAL::Semaphore* _semaphore; AP_HAL::Semaphore* _semaphore;
}; };
#endif // __AP_HAL_EMPTY_I2CDRIVER_H__

View File

@ -1,6 +1,4 @@
#pragma once
#ifndef __AP_HAL_EMPTY_PRIVATE_MEMBER_H__
#define __AP_HAL_EMPTY_PRIVATE_MEMBER_H__
/* Just a stub as an example of how to implement a private member of an /* Just a stub as an example of how to implement a private member of an
* AP_HAL module */ * AP_HAL module */
@ -14,6 +12,3 @@ public:
private: private:
uint16_t _foo; uint16_t _foo;
}; };
#endif // __AP_HAL_EMPTY_PRIVATE_MEMBER_H__

View File

@ -1,6 +1,4 @@
#pragma once
#ifndef __AP_HAL_EMPTY_RCINPUT_H__
#define __AP_HAL_EMPTY_RCINPUT_H__
#include "AP_HAL_Empty.h" #include "AP_HAL_Empty.h"
@ -17,5 +15,3 @@ public:
bool set_override(uint8_t channel, int16_t override); bool set_override(uint8_t channel, int16_t override);
void clear_overrides(); void clear_overrides();
}; };
#endif // __AP_HAL_EMPTY_RCINPUT_H__

View File

@ -1,6 +1,4 @@
#pragma once
#ifndef __AP_HAL_EMPTY_RCOUTPUT_H__
#define __AP_HAL_EMPTY_RCOUTPUT_H__
#include "AP_HAL_Empty.h" #include "AP_HAL_Empty.h"
@ -14,5 +12,3 @@ class Empty::RCOutput : public AP_HAL::RCOutput {
uint16_t read(uint8_t ch); uint16_t read(uint8_t ch);
void read(uint16_t* period_us, uint8_t len); void read(uint16_t* period_us, uint8_t len);
}; };
#endif // __AP_HAL_EMPTY_RCOUTPUT_H__

View File

@ -1,6 +1,4 @@
#pragma once
#ifndef __AP_HAL_EMPTY_SCHEDULER_H__
#define __AP_HAL_EMPTY_SCHEDULER_H__
#include "AP_HAL_Empty.h" #include "AP_HAL_Empty.h"
@ -27,5 +25,3 @@ public:
void reboot(bool hold_in_bootloader); void reboot(bool hold_in_bootloader);
}; };
#endif // __AP_HAL_EMPTY_SCHEDULER_H__

View File

@ -1,6 +1,4 @@
#pragma once
#ifndef __AP_HAL_EMPTY_SEMAPHORE_H__
#define __AP_HAL_EMPTY_SEMAPHORE_H__
#include "AP_HAL_Empty.h" #include "AP_HAL_Empty.h"
@ -13,5 +11,3 @@ public:
private: private:
bool _taken; bool _taken;
}; };
#endif // __AP_HAL_EMPTY_SEMAPHORE_H__

View File

@ -1,6 +1,4 @@
#pragma once
#ifndef __AP_HAL_EMPTY_STORAGE_H__
#define __AP_HAL_EMPTY_STORAGE_H__
#include "AP_HAL_Empty.h" #include "AP_HAL_Empty.h"
@ -11,5 +9,3 @@ public:
void read_block(void *dst, uint16_t src, size_t n); void read_block(void *dst, uint16_t src, size_t n);
void write_block(uint16_t dst, const void* src, size_t n); void write_block(uint16_t dst, const void* src, size_t n);
}; };
#endif // __AP_HAL_EMPTY_STORAGE_H__

View File

@ -1,6 +1,4 @@
#pragma once
#ifndef __AP_HAL_EMPTY_UARTDRIVER_H__
#define __AP_HAL_EMPTY_UARTDRIVER_H__
#include "AP_HAL_Empty.h" #include "AP_HAL_Empty.h"
@ -25,5 +23,3 @@ public:
size_t write(uint8_t c); size_t write(uint8_t c);
size_t write(const uint8_t *buffer, size_t size); size_t write(const uint8_t *buffer, size_t size);
}; };
#endif // __AP_HAL_EMPTY_UARTDRIVER_H__

View File

@ -1,6 +1,4 @@
#pragma once
#ifndef __AP_HAL_EMPTY_UTIL_H__
#define __AP_HAL_EMPTY_UTIL_H__
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#include "AP_HAL_Empty_Namespace.h" #include "AP_HAL_Empty_Namespace.h"
@ -9,5 +7,3 @@ class Empty::Util : public AP_HAL::Util {
public: public:
bool run_debug_shell(AP_HAL::BetterStream *stream) { return false; } bool run_debug_shell(AP_HAL::BetterStream *stream) { return false; }
}; };
#endif // __AP_HAL_EMPTY_UTIL_H__