AP_HAL_Linux: standardize inclusion of libaries headers

This commit changes the way libraries headers are included in source files:

 - If the header is in the same directory the source belongs to, so the
 notation '#include ""' is used with the path relative to the directory
 containing the source.

 - If the header is outside the directory containing the source, then we use
 the notation '#include <>' with the path relative to libraries folder.

Some of the advantages of such approach:

 - Only one search path for libraries headers.

 - OSs like Windows may have a better lookup time.
This commit is contained in:
Gustavo Jose de Sousa 2015-08-11 16:28:43 +10:00 committed by Randy Mackay
parent c33fdc7b71
commit 7ac51f60d0
59 changed files with 72 additions and 72 deletions

View File

@ -3,7 +3,7 @@
#define __AP_HAL_LINUX_H__ #define __AP_HAL_LINUX_H__
/* Your layer exports should depend on AP_HAL.h ONLY. */ /* Your layer exports should depend on AP_HAL.h ONLY. */
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
/** /**
* Umbrella header for AP_HAL_Linux module. * Umbrella header for AP_HAL_Linux module.

View File

@ -1,4 +1,4 @@
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX
#include "AnalogIn.h" #include "AnalogIn.h"

View File

@ -2,7 +2,7 @@
#ifndef __AP_HAL_LINUX_ANALOGIN_H__ #ifndef __AP_HAL_LINUX_ANALOGIN_H__
#define __AP_HAL_LINUX_ANALOGIN_H__ #define __AP_HAL_LINUX_ANALOGIN_H__
#include <AP_HAL_Linux.h> #include "AP_HAL_Linux.h"
class Linux::LinuxAnalogSource : public AP_HAL::AnalogSource { class Linux::LinuxAnalogSource : public AP_HAL::AnalogSource {
public: public:

View File

@ -1,4 +1,4 @@
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX

View File

@ -1,8 +1,8 @@
#ifndef __NavioAnalogIn_H__ #ifndef __NavioAnalogIn_H__
#define __NavioAnalogIn_H__ #define __NavioAnalogIn_H__
#include <AP_HAL_Linux.h> #include "AP_HAL_Linux.h"
#include <AP_ADC.h> #include <AP_ADC/AP_ADC.h>
#define NAVIO_ADC_MAX_CHANNELS 6 #define NAVIO_ADC_MAX_CHANNELS 6

View File

@ -1,4 +1,4 @@
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX
#include "ConsoleDevice.h" #include "ConsoleDevice.h"

View File

@ -1,4 +1,4 @@
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#include "GPIO.h" #include "GPIO.h"
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX

View File

@ -1,7 +1,7 @@
#ifndef __AP_HAL_LINUX_GPIO_H__ #ifndef __AP_HAL_LINUX_GPIO_H__
#define __AP_HAL_LINUX_GPIO_H__ #define __AP_HAL_LINUX_GPIO_H__
#include <AP_HAL_Linux.h> #include "AP_HAL_Linux.h"
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_PXF || CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_ERLE || CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BBBMINI #if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_PXF || CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_ERLE || CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BBBMINI

View File

@ -1,4 +1,4 @@
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_PXF || \ #if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_PXF || \
CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_ERLE || \ CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_ERLE || \

View File

@ -2,7 +2,7 @@
#ifndef __AP_HAL_LINUX_GPIO_BBB_H__ #ifndef __AP_HAL_LINUX_GPIO_BBB_H__
#define __AP_HAL_LINUX_GPIO_BBB_H__ #define __AP_HAL_LINUX_GPIO_BBB_H__
#include <AP_HAL_Linux.h> #include "AP_HAL_Linux.h"
#define SYSFS_GPIO_DIR "/sys/class/gpio" #define SYSFS_GPIO_DIR "/sys/class/gpio"

View File

@ -1,4 +1,4 @@
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_NAVIO #if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_NAVIO

View File

@ -3,7 +3,7 @@
#define __AP_HAL_LINUX_GPIO_RPI_H__ #define __AP_HAL_LINUX_GPIO_RPI_H__
#include <stdint.h> #include <stdint.h>
#include <AP_HAL_Linux.h> #include "AP_HAL_Linux.h"
#define LOW 0 #define LOW 0
#define HIGH 1 #define HIGH 1

View File

@ -1,16 +1,16 @@
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX
#include "HAL_Linux_Class.h" #include "HAL_Linux_Class.h"
#include "AP_HAL_Linux_Private.h" #include "AP_HAL_Linux_Private.h"
#include <utility/getopt_cpp.h> #include <AP_HAL/utility/getopt_cpp.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include <stdlib.h> #include <stdlib.h>
#include <AP_HAL_Empty.h> #include <AP_HAL_Empty/AP_HAL_Empty.h>
#include <AP_HAL_Empty_Private.h> #include <AP_HAL_Empty/AP_HAL_Empty_Private.h>
using namespace Linux; using namespace Linux;

View File

@ -2,7 +2,7 @@
#ifndef __AP_HAL_LINUX_CLASS_H__ #ifndef __AP_HAL_LINUX_CLASS_H__
#define __AP_HAL_LINUX_CLASS_H__ #define __AP_HAL_LINUX_CLASS_H__
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#include "AP_HAL_Linux_Namespace.h" #include "AP_HAL_Linux_Namespace.h"

View File

@ -1,4 +1,4 @@
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX
#include "I2CDriver.h" #include "I2CDriver.h"

View File

@ -2,7 +2,7 @@
#ifndef __AP_HAL_LINUX_I2CDRIVER_H__ #ifndef __AP_HAL_LINUX_I2CDRIVER_H__
#define __AP_HAL_LINUX_I2CDRIVER_H__ #define __AP_HAL_LINUX_I2CDRIVER_H__
#include <AP_HAL_Linux.h> #include "AP_HAL_Linux.h"
class Linux::LinuxI2CDriver : public AP_HAL::I2CDriver { class Linux::LinuxI2CDriver : public AP_HAL::I2CDriver {
public: public:

View File

@ -1,4 +1,4 @@
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX
#include <stdio.h> #include <stdio.h>

View File

@ -2,7 +2,7 @@
#ifndef __AP_HAL_LINUX_RCINPUT_H__ #ifndef __AP_HAL_LINUX_RCINPUT_H__
#define __AP_HAL_LINUX_RCINPUT_H__ #define __AP_HAL_LINUX_RCINPUT_H__
#include <AP_HAL_Linux.h> #include "AP_HAL_Linux.h"
#define LINUX_RC_INPUT_NUM_CHANNELS 16 #define LINUX_RC_INPUT_NUM_CHANNELS 16

View File

@ -10,7 +10,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BBBMINI #if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BBBMINI

View File

@ -18,7 +18,7 @@
doing the edge detection of the PPM sum input doing the edge detection of the PPM sum input
*/ */
#include <AP_HAL_Linux.h> #include "AP_HAL_Linux.h"
#define RCIN_PRUSS_RAM_BASE 0x4a303000 #define RCIN_PRUSS_RAM_BASE 0x4a303000
// we use 300 ring buffer entries to guarantee that a full 25 byte // we use 300 ring buffer entries to guarantee that a full 25 byte

View File

@ -1,4 +1,4 @@
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_NAVIO #if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_NAVIO
#include "GPIO.h" #include "GPIO.h"

View File

@ -1,7 +1,7 @@
#ifndef __AP_HAL_LINUX_RCINPUT_NAVIO_H__ #ifndef __AP_HAL_LINUX_RCINPUT_NAVIO_H__
#define __AP_HAL_LINUX_RCINPUT_NAVIO_H__ #define __AP_HAL_LINUX_RCINPUT_NAVIO_H__
#include <AP_HAL_Linux.h> #include "AP_HAL_Linux.h"
#include "RCInput.h" #include "RCInput.h"
#include <signal.h> #include <signal.h>
#include <pthread.h> #include <pthread.h>

View File

@ -1,4 +1,4 @@
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_PXF || \ #if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_PXF || \
CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_ERLE || \ CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_ERLE || \

View File

@ -7,7 +7,7 @@
doing the edge detection of the PPM sum input doing the edge detection of the PPM sum input
*/ */
#include <AP_HAL_Linux.h> #include "AP_HAL_Linux.h"
#define RCIN_PRUSS_SHAREDRAM_BASE 0x4a312000 #define RCIN_PRUSS_SHAREDRAM_BASE 0x4a312000
// we use 300 ring buffer entries to guarantee that a full 25 byte // we use 300 ring buffer entries to guarantee that a full 25 byte

View File

@ -1,4 +1,4 @@
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX
#include <stdio.h> #include <stdio.h>

View File

@ -7,7 +7,7 @@
logic doing the edge detection of the PPM sum input logic doing the edge detection of the PPM sum input
*/ */
#include <AP_HAL_Linux.h> #include "AP_HAL_Linux.h"
// FIXME A puppie dies when you hard code an address // FIXME A puppie dies when you hard code an address
#define RCIN_ZYNQ_PULSE_INPUT_BASE 0x43c10000 #define RCIN_ZYNQ_PULSE_INPUT_BASE 0x43c10000

View File

@ -10,7 +10,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX

View File

@ -13,7 +13,7 @@
#ifndef __AP_HAL_LINUX_RCOUTPUT_AIOPRU_H__ #ifndef __AP_HAL_LINUX_RCOUTPUT_AIOPRU_H__
#define __AP_HAL_LINUX_RCOUTPUT_AIOPRU_H__ #define __AP_HAL_LINUX_RCOUTPUT_AIOPRU_H__
#include <AP_HAL_Linux.h> #include "AP_HAL_Linux.h"
#define RCOUT_PRUSS_RAM_BASE 0x4a302000 #define RCOUT_PRUSS_RAM_BASE 0x4a302000
#define RCOUT_PRUSS_CTRL_BASE 0x4a324000 #define RCOUT_PRUSS_CTRL_BASE 0x4a324000
#define RCOUT_PRUSS_IRAM_BASE 0x4a338000 #define RCOUT_PRUSS_IRAM_BASE 0x4a338000

View File

@ -1,4 +1,4 @@
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BEBOP #if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BEBOP
#include <endian.h> #include <endian.h>

View File

@ -1,7 +1,7 @@
#ifndef __AP_HAL_LINUX_RCOUTPUT_BEBOP_H__ #ifndef __AP_HAL_LINUX_RCOUTPUT_BEBOP_H__
#define __AP_HAL_LINUX_RCOUTPUT_BEBOP_H__ #define __AP_HAL_LINUX_RCOUTPUT_BEBOP_H__
#include <AP_HAL_Linux.h> #include "AP_HAL_Linux.h"
enum bebop_bldc_motor { enum bebop_bldc_motor {
BEBOP_BLDC_RIGHT_FRONT = 0, BEBOP_BLDC_RIGHT_FRONT = 0,

View File

@ -1,5 +1,5 @@
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#include "GPIO.h" #include "GPIO.h"
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_NAVIO #if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_NAVIO

View File

@ -2,7 +2,7 @@
#ifndef __AP_HAL_LINUX_RCOUTPUT_NAVIO_H__ #ifndef __AP_HAL_LINUX_RCOUTPUT_NAVIO_H__
#define __AP_HAL_LINUX_RCOUTPUT_NAVIO_H__ #define __AP_HAL_LINUX_RCOUTPUT_NAVIO_H__
#include <AP_HAL_Linux.h> #include "AP_HAL_Linux.h"
class Linux::LinuxRCOutput_Navio : public AP_HAL::RCOutput { class Linux::LinuxRCOutput_Navio : public AP_HAL::RCOutput {
public: public:

View File

@ -1,5 +1,5 @@
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX

View File

@ -2,7 +2,7 @@
#ifndef __AP_HAL_LINUX_RCOUTPUT_PRU_H__ #ifndef __AP_HAL_LINUX_RCOUTPUT_PRU_H__
#define __AP_HAL_LINUX_RCOUTPUT_PRU_H__ #define __AP_HAL_LINUX_RCOUTPUT_PRU_H__
#include <AP_HAL_Linux.h> #include "AP_HAL_Linux.h"
#define RCOUT_PRUSS_SHAREDRAM_BASE 0x4a310000 #define RCOUT_PRUSS_SHAREDRAM_BASE 0x4a310000
#define MAX_PWMS 12 #define MAX_PWMS 12
#define PWM_CMD_MAGIC 0xf00fbaaf #define PWM_CMD_MAGIC 0xf00fbaaf

View File

@ -1,5 +1,5 @@
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX

View File

@ -2,7 +2,7 @@
#ifndef __AP_HAL_LINUX_RCOUTPUT_ZYNQ_H__ #ifndef __AP_HAL_LINUX_RCOUTPUT_ZYNQ_H__
#define __AP_HAL_LINUX_RCOUTPUT_ZYNQ_H__ #define __AP_HAL_LINUX_RCOUTPUT_ZYNQ_H__
#include <AP_HAL_Linux.h> #include "AP_HAL_Linux.h"
#define RCOUT_ZYNQ_PWM_BASE 0x43c00000 //FIXME hardcoding is the devil's work #define RCOUT_ZYNQ_PWM_BASE 0x43c00000 //FIXME hardcoding is the devil's work
#define MAX_ZYNQ_PWMS 8 /* number of pwm channels */ #define MAX_ZYNQ_PWMS 8 /* number of pwm channels */
#define PWM_CMD_CONFIG 0 /* full configuration in one go */ #define PWM_CMD_CONFIG 0 /* full configuration in one go */

View File

@ -1,5 +1,5 @@
#include <AP_Common.h> #include <AP_Common/AP_Common.h>
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX
#include "SPIDriver.h" #include "SPIDriver.h"

View File

@ -2,7 +2,7 @@
#ifndef __AP_HAL_EMPTY_SPIDRIVER_H__ #ifndef __AP_HAL_EMPTY_SPIDRIVER_H__
#define __AP_HAL_EMPTY_SPIDRIVER_H__ #define __AP_HAL_EMPTY_SPIDRIVER_H__
#include <AP_HAL_Linux.h> #include "AP_HAL_Linux.h"
#include "Semaphores.h" #include "Semaphores.h"
// Most platforms won't need to declare the spidev bus offset // Most platforms won't need to declare the spidev bus offset

View File

@ -1,4 +1,4 @@
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX

View File

@ -1,7 +1,7 @@
#ifndef __AP_HAL_LINUX_SPIUARTDRIVER_H__ #ifndef __AP_HAL_LINUX_SPIUARTDRIVER_H__
#define __AP_HAL_LINUX_SPIUARTDRIVER_H__ #define __AP_HAL_LINUX_SPIUARTDRIVER_H__
#include <AP_HAL_Linux.h> #include "AP_HAL_Linux.h"
#include "UARTDriver.h" #include "UARTDriver.h"

View File

@ -1,4 +1,4 @@
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX

View File

@ -2,7 +2,7 @@
#ifndef __AP_HAL_LINUX_SCHEDULER_H__ #ifndef __AP_HAL_LINUX_SCHEDULER_H__
#define __AP_HAL_LINUX_SCHEDULER_H__ #define __AP_HAL_LINUX_SCHEDULER_H__
#include <AP_HAL_Linux.h> #include "AP_HAL_Linux.h"
#include "Semaphores.h" #include "Semaphores.h"
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX

View File

@ -1,4 +1,4 @@
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX

View File

@ -2,10 +2,10 @@
#ifndef __AP_HAL_LINUX_SEMAPHORE_H__ #ifndef __AP_HAL_LINUX_SEMAPHORE_H__
#define __AP_HAL_LINUX_SEMAPHORE_H__ #define __AP_HAL_LINUX_SEMAPHORE_H__
#include <AP_HAL_Boards.h> #include <AP_HAL/AP_HAL_Boards.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX
#include <AP_HAL_Linux.h> #include "AP_HAL_Linux.h"
#include <pthread.h> #include <pthread.h>
class Linux::LinuxSemaphore : public AP_HAL::Semaphore { class Linux::LinuxSemaphore : public AP_HAL::Semaphore {

View File

@ -1,4 +1,4 @@
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX

View File

@ -7,7 +7,7 @@
#define LINUX_STORAGE_USE_FRAM 0 #define LINUX_STORAGE_USE_FRAM 0
#endif #endif
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#include "AP_HAL_Linux_Namespace.h" #include "AP_HAL_Linux_Namespace.h"
#define LINUX_STORAGE_SIZE HAL_STORAGE_SIZE #define LINUX_STORAGE_SIZE HAL_STORAGE_SIZE

View File

@ -1,4 +1,4 @@
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX
#include <assert.h> #include <assert.h>

View File

@ -1,7 +1,7 @@
#ifndef __AP_HAL_LINUX_STORAGE_FRAM_H__ #ifndef __AP_HAL_LINUX_STORAGE_FRAM_H__
#define __AP_HAL_LINUX_STORAGE_FRAM_H__ #define __AP_HAL_LINUX_STORAGE_FRAM_H__
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#include "AP_HAL_Linux_Namespace.h" #include "AP_HAL_Linux_Namespace.h"
#define OPCODE_WREN 0b0110 /* Write Enable Latch */ #define OPCODE_WREN 0b0110 /* Write Enable Latch */

View File

@ -1,4 +1,4 @@
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX

View File

@ -1,4 +1,4 @@
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX

View File

@ -1,7 +1,7 @@
#ifndef __TONE_ALARM_DRIVER_H__ #ifndef __TONE_ALARM_DRIVER_H__
#define __TONE_ALARM_DRIVER_H__ #define __TONE_ALARM_DRIVER_H__
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#include "AP_HAL_Linux_Namespace.h" #include "AP_HAL_Linux_Namespace.h"
#define OCTAVE_OFFSET 0 #define OCTAVE_OFFSET 0

View File

@ -1,4 +1,4 @@
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX

View File

@ -1,6 +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 -*-
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX

View File

@ -2,7 +2,7 @@
#ifndef __AP_HAL_LINUX_UARTDRIVER_H__ #ifndef __AP_HAL_LINUX_UARTDRIVER_H__
#define __AP_HAL_LINUX_UARTDRIVER_H__ #define __AP_HAL_LINUX_UARTDRIVER_H__
#include <AP_HAL_Linux.h> #include "AP_HAL_Linux.h"
#include "SerialDevice.h" #include "SerialDevice.h"

View File

@ -1,4 +1,4 @@
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX

View File

@ -1,4 +1,4 @@
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX
#include <stdio.h> #include <stdio.h>
#include <stdarg.h> #include <stdarg.h>

View File

@ -2,7 +2,7 @@
#ifndef __AP_HAL_LINUX_UTIL_H__ #ifndef __AP_HAL_LINUX_UTIL_H__
#define __AP_HAL_LINUX_UTIL_H__ #define __AP_HAL_LINUX_UTIL_H__
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#include "AP_HAL_Linux_Namespace.h" #include "AP_HAL_Linux_Namespace.h"
#include "ToneAlarmDriver.h" #include "ToneAlarmDriver.h"

View File

@ -39,7 +39,7 @@
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
#include <AP_Common.h> #include <AP_Common/AP_Common.h>
#include "dsm.h" #include "dsm.h"

View File

@ -4,14 +4,14 @@
// scan I2C and SPI buses for expected devices // scan I2C and SPI buses for expected devices
// //
#include <AP_Common.h> #include <AP_Common/AP_Common.h>
#include <AP_Progmem.h> #include <AP_Progmem/AP_Progmem.h>
#include <AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#include <AP_HAL_Linux.h> #include <AP_HAL_Linux/AP_HAL_Linux.h>
#include <AP_HAL_Empty.h> #include <AP_HAL_Empty/AP_HAL_Empty.h>
#include <AP_Math.h> #include <AP_Math/AP_Math.h>
#include <AP_Param.h> #include <AP_Param/AP_Param.h>
#include <StorageManager.h> #include <StorageManager/StorageManager.h>
const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER; const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER;