AP_HAL_VRBRAIN: replace header guard with pragma once
This commit is contained in:
parent
bcdc3336de
commit
44bc2eceb4
@ -1,6 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
#ifndef __AP_HAL_VRBRAIN_H__
|
|
||||||
#define __AP_HAL_VRBRAIN_H__
|
|
||||||
|
|
||||||
#include <AP_HAL/AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
|
|
||||||
@ -8,5 +6,3 @@
|
|||||||
#include "HAL_VRBRAIN_Class.h"
|
#include "HAL_VRBRAIN_Class.h"
|
||||||
|
|
||||||
#endif // CONFIG_HAL_BOARD
|
#endif // CONFIG_HAL_BOARD
|
||||||
#endif // __AP_HAL_VRBRAIN_H__
|
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
#ifndef __AP_HAL_VRBRAIN_NAMESPACE_H__
|
|
||||||
#define __AP_HAL_VRBRAIN_NAMESPACE_H__
|
|
||||||
|
|
||||||
namespace VRBRAIN {
|
namespace VRBRAIN {
|
||||||
class VRBRAINScheduler;
|
class VRBRAINScheduler;
|
||||||
@ -14,6 +12,3 @@ namespace VRBRAIN {
|
|||||||
class VRBRAINGPIO;
|
class VRBRAINGPIO;
|
||||||
class VRBRAINDigitalSource;
|
class VRBRAINDigitalSource;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif //__AP_HAL_VRBRAIN_NAMESPACE_H__
|
|
||||||
|
|
||||||
|
@ -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 __AP_HAL_VRBRAIN_ANALOGIN_H__
|
|
||||||
#define __AP_HAL_VRBRAIN_ANALOGIN_H__
|
|
||||||
|
|
||||||
#include "AP_HAL_VRBRAIN.h"
|
#include "AP_HAL_VRBRAIN.h"
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
@ -83,4 +81,3 @@ private:
|
|||||||
|
|
||||||
void next_stop_pin(void);
|
void next_stop_pin(void);
|
||||||
};
|
};
|
||||||
#endif // __AP_HAL_VRBRAIN_ANALOGIN_H__
|
|
||||||
|
@ -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 __AP_HAL_VRBRAIN_GPIO_H__
|
|
||||||
#define __AP_HAL_VRBRAIN_GPIO_H__
|
|
||||||
|
|
||||||
#include "AP_HAL_VRBRAIN.h"
|
#include "AP_HAL_VRBRAIN.h"
|
||||||
|
|
||||||
@ -52,5 +50,3 @@ public:
|
|||||||
private:
|
private:
|
||||||
uint8_t _v;
|
uint8_t _v;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __AP_HAL_VRBRAIN_GPIO_H__
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
#ifndef __AP_HAL_VRBRAIN_RCINPUT_H__
|
|
||||||
#define __AP_HAL_VRBRAIN_RCINPUT_H__
|
|
||||||
|
|
||||||
#include "AP_HAL_VRBRAIN.h"
|
#include "AP_HAL_VRBRAIN.h"
|
||||||
#include <drivers/drv_rc_input.h>
|
#include <drivers/drv_rc_input.h>
|
||||||
@ -31,5 +29,3 @@ private:
|
|||||||
perf_counter_t _perf_rcin;
|
perf_counter_t _perf_rcin;
|
||||||
pthread_mutex_t rcin_mutex;
|
pthread_mutex_t rcin_mutex;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __AP_HAL_VRBRAIN_RCINPUT_H__
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
#ifndef __AP_HAL_VRBRAIN_RCOUTPUT_H__
|
|
||||||
#define __AP_HAL_VRBRAIN_RCOUTPUT_H__
|
|
||||||
|
|
||||||
#include "AP_HAL_VRBRAIN.h"
|
#include "AP_HAL_VRBRAIN.h"
|
||||||
#include <systemlib/perf_counter.h>
|
#include <systemlib/perf_counter.h>
|
||||||
@ -41,5 +39,3 @@ private:
|
|||||||
|
|
||||||
void _init_alt_channels(void);
|
void _init_alt_channels(void);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __AP_HAL_VRBRAIN_RCOUTPUT_H__
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
#ifndef __AP_HAL_VRBRAIN_SCHEDULER_H__
|
|
||||||
#define __AP_HAL_VRBRAIN_SCHEDULER_H__
|
|
||||||
|
|
||||||
#include <AP_HAL/AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN
|
#if CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN
|
||||||
@ -78,6 +76,3 @@ private:
|
|||||||
perf_counter_t _perf_delay;
|
perf_counter_t _perf_delay;
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
#endif // __AP_HAL_VRBRAIN_SCHEDULER_H__
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
#ifndef __AP_HAL_VRBRAIN_STORAGE_H__
|
|
||||||
#define __AP_HAL_VRBRAIN_STORAGE_H__
|
|
||||||
|
|
||||||
#include <AP_HAL/AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
#include "AP_HAL_VRBRAIN_Namespace.h"
|
#include "AP_HAL_VRBRAIN_Namespace.h"
|
||||||
@ -38,5 +35,3 @@ private:
|
|||||||
uint32_t _mtd_signature(void);
|
uint32_t _mtd_signature(void);
|
||||||
void _mtd_write_signature(void);
|
void _mtd_write_signature(void);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __AP_HAL_VRBRAIN_STORAGE_H__
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
#ifndef __AP_HAL_VRBRAIN_UARTDRIVER_H__
|
|
||||||
#define __AP_HAL_VRBRAIN_UARTDRIVER_H__
|
|
||||||
|
|
||||||
#include "AP_HAL_VRBRAIN.h"
|
#include "AP_HAL_VRBRAIN.h"
|
||||||
#include <systemlib/perf_counter.h>
|
#include <systemlib/perf_counter.h>
|
||||||
@ -77,5 +75,3 @@ private:
|
|||||||
uint32_t _total_written;
|
uint32_t _total_written;
|
||||||
enum flow_control _flow_control;
|
enum flow_control _flow_control;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __AP_HAL_VRBRAIN_UARTDRIVER_H__
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
#ifndef __AP_HAL_VRBRAIN_UTIL_H__
|
|
||||||
#define __AP_HAL_VRBRAIN_UTIL_H__
|
|
||||||
|
|
||||||
#include <AP_HAL/AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
#include "AP_HAL_VRBRAIN_Namespace.h"
|
#include "AP_HAL_VRBRAIN_Namespace.h"
|
||||||
@ -27,5 +25,3 @@ public:
|
|||||||
private:
|
private:
|
||||||
int _safety_handle;
|
int _safety_handle;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __AP_HAL_VRBRAIN_UTIL_H__
|
|
||||||
|
Loading…
Reference in New Issue
Block a user