AP_HAL_VRBRAIN: replace header guard with pragma once

This commit is contained in:
Lucas De Marchi 2016-02-17 23:25:29 -02:00 committed by Andrew Tridgell
parent bcdc3336de
commit 44bc2eceb4
10 changed files with 10 additions and 52 deletions

View File

@ -1,6 +1,4 @@
#ifndef __AP_HAL_VRBRAIN_H__
#define __AP_HAL_VRBRAIN_H__
#pragma once
#include <AP_HAL/AP_HAL.h>
@ -8,5 +6,3 @@
#include "HAL_VRBRAIN_Class.h"
#endif // CONFIG_HAL_BOARD
#endif // __AP_HAL_VRBRAIN_H__

View File

@ -1,6 +1,4 @@
#ifndef __AP_HAL_VRBRAIN_NAMESPACE_H__
#define __AP_HAL_VRBRAIN_NAMESPACE_H__
#pragma once
namespace VRBRAIN {
class VRBRAINScheduler;
@ -14,6 +12,3 @@ namespace VRBRAIN {
class VRBRAINGPIO;
class VRBRAINDigitalSource;
}
#endif //__AP_HAL_VRBRAIN_NAMESPACE_H__

View File

@ -1,7 +1,5 @@
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
#ifndef __AP_HAL_VRBRAIN_ANALOGIN_H__
#define __AP_HAL_VRBRAIN_ANALOGIN_H__
#pragma once
#include "AP_HAL_VRBRAIN.h"
#include <pthread.h>
@ -83,4 +81,3 @@ private:
void next_stop_pin(void);
};
#endif // __AP_HAL_VRBRAIN_ANALOGIN_H__

View File

@ -1,7 +1,5 @@
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
#ifndef __AP_HAL_VRBRAIN_GPIO_H__
#define __AP_HAL_VRBRAIN_GPIO_H__
#pragma once
#include "AP_HAL_VRBRAIN.h"
@ -52,5 +50,3 @@ public:
private:
uint8_t _v;
};
#endif // __AP_HAL_VRBRAIN_GPIO_H__

View File

@ -1,6 +1,4 @@
#ifndef __AP_HAL_VRBRAIN_RCINPUT_H__
#define __AP_HAL_VRBRAIN_RCINPUT_H__
#pragma once
#include "AP_HAL_VRBRAIN.h"
#include <drivers/drv_rc_input.h>
@ -31,5 +29,3 @@ private:
perf_counter_t _perf_rcin;
pthread_mutex_t rcin_mutex;
};
#endif // __AP_HAL_VRBRAIN_RCINPUT_H__

View File

@ -1,6 +1,4 @@
#ifndef __AP_HAL_VRBRAIN_RCOUTPUT_H__
#define __AP_HAL_VRBRAIN_RCOUTPUT_H__
#pragma once
#include "AP_HAL_VRBRAIN.h"
#include <systemlib/perf_counter.h>
@ -41,5 +39,3 @@ private:
void _init_alt_channels(void);
};
#endif // __AP_HAL_VRBRAIN_RCOUTPUT_H__

View File

@ -1,6 +1,4 @@
#ifndef __AP_HAL_VRBRAIN_SCHEDULER_H__
#define __AP_HAL_VRBRAIN_SCHEDULER_H__
#pragma once
#include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN
@ -78,6 +76,3 @@ private:
perf_counter_t _perf_delay;
};
#endif
#endif // __AP_HAL_VRBRAIN_SCHEDULER_H__

View File

@ -1,7 +1,4 @@
#ifndef __AP_HAL_VRBRAIN_STORAGE_H__
#define __AP_HAL_VRBRAIN_STORAGE_H__
#pragma once
#include <AP_HAL/AP_HAL.h>
#include "AP_HAL_VRBRAIN_Namespace.h"
@ -38,5 +35,3 @@ private:
uint32_t _mtd_signature(void);
void _mtd_write_signature(void);
};
#endif // __AP_HAL_VRBRAIN_STORAGE_H__

View File

@ -1,6 +1,4 @@
#ifndef __AP_HAL_VRBRAIN_UARTDRIVER_H__
#define __AP_HAL_VRBRAIN_UARTDRIVER_H__
#pragma once
#include "AP_HAL_VRBRAIN.h"
#include <systemlib/perf_counter.h>
@ -77,5 +75,3 @@ private:
uint32_t _total_written;
enum flow_control _flow_control;
};
#endif // __AP_HAL_VRBRAIN_UARTDRIVER_H__

View File

@ -1,6 +1,4 @@
#ifndef __AP_HAL_VRBRAIN_UTIL_H__
#define __AP_HAL_VRBRAIN_UTIL_H__
#pragma once
#include <AP_HAL/AP_HAL.h>
#include "AP_HAL_VRBRAIN_Namespace.h"
@ -27,5 +25,3 @@ public:
private:
int _safety_handle;
};
#endif // __AP_HAL_VRBRAIN_UTIL_H__