AP_HAL_SITL: replace header guard with pragma once
This commit is contained in:
parent
6f028502b0
commit
bcdc3336de
@ -1,6 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
#ifndef __AP_HAL_SITL_H__
|
|
||||||
#define __AP_HAL_SITL_H__
|
|
||||||
|
|
||||||
#include <AP_HAL/AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
|
|
||||||
@ -9,6 +7,3 @@
|
|||||||
#include "HAL_SITL_Class.h"
|
#include "HAL_SITL_Class.h"
|
||||||
|
|
||||||
#endif // CONFIG_HAL_BOARD
|
#endif // CONFIG_HAL_BOARD
|
||||||
|
|
||||||
#endif // __AP_HAL_SITL_H__
|
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
#ifndef __AP_HAL_SITL_NAMESPACE_H__
|
|
||||||
#define __AP_HAL_SITL_NAMESPACE_H__
|
|
||||||
|
|
||||||
namespace HALSITL {
|
namespace HALSITL {
|
||||||
class UARTDriver;
|
class UARTDriver;
|
||||||
@ -15,5 +13,3 @@ class RCInput;
|
|||||||
class Util;
|
class Util;
|
||||||
class Semaphore;
|
class Semaphore;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // __AP_HAL_SITL_NAMESPACE_H__
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
#ifndef __AP_HAL_SITL_PRIVATE_H__
|
|
||||||
#define __AP_HAL_SITL_PRIVATE_H__
|
|
||||||
|
|
||||||
#include "AP_HAL_SITL_Namespace.h"
|
#include "AP_HAL_SITL_Namespace.h"
|
||||||
#include "Scheduler.h"
|
#include "Scheduler.h"
|
||||||
@ -8,6 +6,3 @@
|
|||||||
#include "UARTDriver.h"
|
#include "UARTDriver.h"
|
||||||
#include "SITL_State.h"
|
#include "SITL_State.h"
|
||||||
#include "Semaphores.h"
|
#include "Semaphores.h"
|
||||||
|
|
||||||
#endif // __AP_HAL_SITL_PRIVATE_H__
|
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
#ifndef __AP_HAL_SITL_ANALOG_IN_H__
|
|
||||||
#define __AP_HAL_SITL_ANALOG_IN_H__
|
|
||||||
|
|
||||||
#include <AP_HAL/AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
#include "AP_HAL_SITL_Namespace.h"
|
#include "AP_HAL_SITL_Namespace.h"
|
||||||
@ -46,5 +44,3 @@ private:
|
|||||||
static ADCSource* _channels[SITL_INPUT_MAX_CHANNELS];
|
static ADCSource* _channels[SITL_INPUT_MAX_CHANNELS];
|
||||||
SITL_State *_sitlState;
|
SITL_State *_sitlState;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __AP_HAL_SITL_ANALOG_IN_H__
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
#ifndef __AP_HAL_SITL_RCOUTPUT_H__
|
|
||||||
#define __AP_HAL_SITL_RCOUTPUT_H__
|
|
||||||
|
|
||||||
#include <AP_HAL/AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||||
@ -28,5 +26,3 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#endif // __AP_HAL_SITL_RCOUTPUT_H__
|
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
#ifndef __AP_HAL_SITL_STATE_H__
|
|
||||||
#define __AP_HAL_SITL_STATE_H__
|
|
||||||
|
|
||||||
#include <AP_HAL/AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
|
|
||||||
@ -219,5 +217,3 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
#endif // CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
#endif // CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||||
#endif // __AP_HAL_SITL_STATE_H__
|
|
||||||
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
#ifndef __AP_HAL_SITL_STORAGE_H__
|
|
||||||
#define __AP_HAL_SITL_STORAGE_H__
|
|
||||||
|
|
||||||
#include <AP_HAL/AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
#include "AP_HAL_SITL_Namespace.h"
|
#include "AP_HAL_SITL_Namespace.h"
|
||||||
@ -19,5 +16,3 @@ private:
|
|||||||
int _eeprom_fd;
|
int _eeprom_fd;
|
||||||
void _eeprom_open(void);
|
void _eeprom_open(void);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __AP_HAL_SITL_STORAGE_H__
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
/// -*- 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_SITL_UART_DRIVER_H__
|
|
||||||
#define __AP_HAL_SITL_UART_DRIVER_H__
|
|
||||||
#include <AP_HAL/AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||||
|
|
||||||
@ -101,5 +100,3 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#endif // __AP_HAL_SITL_UART_DRIVER_H__
|
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
#ifndef __AP_HAL_SITL_UTIL_H__
|
|
||||||
#define __AP_HAL_SITL_UTIL_H__
|
|
||||||
|
|
||||||
#include <AP_HAL/AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
#include "AP_HAL_SITL_Namespace.h"
|
#include "AP_HAL_SITL_Namespace.h"
|
||||||
@ -33,5 +31,3 @@ public:
|
|||||||
private:
|
private:
|
||||||
SITL_State *sitlState;
|
SITL_State *sitlState;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __AP_HAL_SITL_UTIL_H__
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
#ifndef __FENV_POLYFILL_H__
|
|
||||||
#define __FENV_POLYFILL_H__
|
|
||||||
|
|
||||||
#if (defined __APPLE__) && (defined(__i386__) || defined(__x86_64__))
|
#if (defined __APPLE__) && (defined(__i386__) || defined(__x86_64__))
|
||||||
|
|
||||||
@ -27,6 +25,3 @@ feenableexcept (unsigned int excepts)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif // APPLE
|
#endif // APPLE
|
||||||
|
|
||||||
#endif // __FENV_POLYFILL_H__
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user