mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-28 10:43:58 -04:00
AP_HAL_PX4: replace header guard with pragma once
This commit is contained in:
parent
f7a983e525
commit
28f67f0947
@ -1,6 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
#ifndef __AP_HAL_PX4_H__
|
|
||||||
#define __AP_HAL_PX4_H__
|
|
||||||
|
|
||||||
#include <AP_HAL/AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
|
|
||||||
@ -8,5 +6,3 @@
|
|||||||
#include "HAL_PX4_Class.h"
|
#include "HAL_PX4_Class.h"
|
||||||
|
|
||||||
#endif // CONFIG_HAL_BOARD
|
#endif // CONFIG_HAL_BOARD
|
||||||
#endif // __AP_HAL_PX4_H__
|
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
#ifndef __AP_HAL_PX4_NAMESPACE_H__
|
|
||||||
#define __AP_HAL_PX4_NAMESPACE_H__
|
|
||||||
|
|
||||||
namespace PX4 {
|
namespace PX4 {
|
||||||
class PX4Scheduler;
|
class PX4Scheduler;
|
||||||
@ -18,6 +16,3 @@ namespace PX4 {
|
|||||||
class PX4_I2C;
|
class PX4_I2C;
|
||||||
class Semaphore;
|
class Semaphore;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif //__AP_HAL_PX4_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_PX4_ANALOGIN_H__
|
|
||||||
#define __AP_HAL_PX4_ANALOGIN_H__
|
|
||||||
|
|
||||||
#include "AP_HAL_PX4.h"
|
#include "AP_HAL_PX4.h"
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
@ -82,4 +80,3 @@ private:
|
|||||||
|
|
||||||
void next_stop_pin(void);
|
void next_stop_pin(void);
|
||||||
};
|
};
|
||||||
#endif // __AP_HAL_PX4_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_PX4_GPIO_H__
|
|
||||||
#define __AP_HAL_PX4_GPIO_H__
|
|
||||||
|
|
||||||
#include "AP_HAL_PX4.h"
|
#include "AP_HAL_PX4.h"
|
||||||
|
|
||||||
@ -67,5 +65,3 @@ public:
|
|||||||
private:
|
private:
|
||||||
uint8_t _v;
|
uint8_t _v;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __AP_HAL_PX4_GPIO_H__
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
#ifndef __AP_HAL_PX4_I2CDRIVER_H__
|
|
||||||
#define __AP_HAL_PX4_I2CDRIVER_H__
|
|
||||||
|
|
||||||
#include "AP_HAL_PX4.h"
|
#include "AP_HAL_PX4.h"
|
||||||
#include <AP_HAL_Empty/AP_HAL_Empty.h>
|
#include <AP_HAL_Empty/AP_HAL_Empty.h>
|
||||||
@ -47,5 +45,3 @@ private:
|
|||||||
Empty::Semaphore semaphore;
|
Empty::Semaphore semaphore;
|
||||||
PX4_I2C *px4_i2c = nullptr;
|
PX4_I2C *px4_i2c = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __AP_HAL_PX4_I2CDRIVER_H__
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
#ifndef __AP_HAL_PX4_RCINPUT_H__
|
|
||||||
#define __AP_HAL_PX4_RCINPUT_H__
|
|
||||||
|
|
||||||
#include "AP_HAL_PX4.h"
|
#include "AP_HAL_PX4.h"
|
||||||
#include <drivers/drv_rc_input.h>
|
#include <drivers/drv_rc_input.h>
|
||||||
@ -38,5 +36,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_PX4_RCINPUT_H__
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
#ifndef __AP_HAL_PX4_RCOUTPUT_H__
|
|
||||||
#define __AP_HAL_PX4_RCOUTPUT_H__
|
|
||||||
|
|
||||||
#include "AP_HAL_PX4.h"
|
#include "AP_HAL_PX4.h"
|
||||||
#include <systemlib/perf_counter.h>
|
#include <systemlib/perf_counter.h>
|
||||||
@ -63,5 +61,3 @@ private:
|
|||||||
void _arm_actuators(bool arm);
|
void _arm_actuators(bool arm);
|
||||||
void set_freq_fd(int fd, uint32_t chmask, uint16_t freq_hz);
|
void set_freq_fd(int fd, uint32_t chmask, uint16_t freq_hz);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __AP_HAL_PX4_RCOUTPUT_H__
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
#ifndef __AP_HAL_PX4_SCHEDULER_H__
|
|
||||||
#define __AP_HAL_PX4_SCHEDULER_H__
|
|
||||||
|
|
||||||
#include <AP_HAL/AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4
|
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4
|
||||||
@ -102,6 +100,3 @@ private:
|
|||||||
perf_counter_t _perf_delay;
|
perf_counter_t _perf_delay;
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
#endif // __AP_HAL_PX4_SCHEDULER_H__
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
#ifndef __AP_HAL_PX4_STORAGE_H__
|
|
||||||
#define __AP_HAL_PX4_STORAGE_H__
|
|
||||||
|
|
||||||
#include <AP_HAL/AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
#include "AP_HAL_PX4_Namespace.h"
|
#include "AP_HAL_PX4_Namespace.h"
|
||||||
@ -43,5 +40,3 @@ private:
|
|||||||
#endif
|
#endif
|
||||||
void bus_lock(bool lock);
|
void bus_lock(bool lock);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __AP_HAL_PX4_STORAGE_H__
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
#ifndef __AP_HAL_PX4_UARTDRIVER_H__
|
|
||||||
#define __AP_HAL_PX4_UARTDRIVER_H__
|
|
||||||
|
|
||||||
#include "AP_HAL_PX4.h"
|
#include "AP_HAL_PX4.h"
|
||||||
#include <systemlib/perf_counter.h>
|
#include <systemlib/perf_counter.h>
|
||||||
@ -80,5 +78,3 @@ private:
|
|||||||
pid_t _uart_owner_pid;
|
pid_t _uart_owner_pid;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __AP_HAL_PX4_UARTDRIVER_H__
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
#ifndef __AP_HAL_PX4_UTIL_H__
|
|
||||||
#define __AP_HAL_PX4_UTIL_H__
|
|
||||||
|
|
||||||
#include <AP_HAL/AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
#include "AP_HAL_PX4_Namespace.h"
|
#include "AP_HAL_PX4_Namespace.h"
|
||||||
@ -64,5 +62,3 @@ private:
|
|||||||
int _safety_handle;
|
int _safety_handle;
|
||||||
PX4::NSHShellStream _shell_stream;
|
PX4::NSHShellStream _shell_stream;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __AP_HAL_PX4_UTIL_H__
|
|
||||||
|
Loading…
Reference in New Issue
Block a user