AP_ADC: 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:41 +10:00 committed by Andrew Tridgell
parent d13c97e112
commit a552390125
6 changed files with 16 additions and 16 deletions

View File

@ -1,7 +1,7 @@
#ifndef AP_ADC_H
#define AP_ADC_H
#include <AP_Common.h>
#include <AP_Common/AP_Common.h>
/*
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

View File

@ -1,4 +1,4 @@
#include <AP_HAL.h>
#include <AP_HAL/AP_HAL.h>
#include "AP_ADC_ADS1115.h"

View File

@ -5,7 +5,7 @@
#include <inttypes.h>
#include "AP_ADC.h"
#include <AP_HAL.h>
#include <AP_HAL/AP_HAL.h>
struct adc_report_s

View File

@ -54,9 +54,9 @@
*
*/
#include <AP_Progmem.h>
#include <AP_Common.h>
#include <AP_HAL.h>
#include <AP_Progmem/AP_Progmem.h>
#include <AP_Common/AP_Common.h>
#include <AP_HAL/AP_HAL.h>
#include "AP_ADC_ADS7844.h"

View File

@ -5,7 +5,7 @@
#include <inttypes.h>
#include "AP_ADC.h"
#include <AP_HAL.h>
#include <AP_HAL/AP_HAL.h>
class AP_ADC_ADS7844 : public AP_ADC
{

View File

@ -6,17 +6,17 @@
#include <math.h>
#include <AP_Common.h>
#include <AP_Math.h>
#include <AP_Param.h>
#include <StorageManager.h>
#include <AP_Progmem.h>
#include <AP_Common/AP_Common.h>
#include <AP_Math/AP_Math.h>
#include <AP_Param/AP_Param.h>
#include <StorageManager/StorageManager.h>
#include <AP_Progmem/AP_Progmem.h>
#include <AP_HAL.h>
#include <AP_HAL_AVR.h>
#include <AP_HAL_Linux.h>
#include <AP_HAL/AP_HAL.h>
#include <AP_HAL_AVR/AP_HAL_AVR.h>
#include <AP_HAL_Linux/AP_HAL_Linux.h>
#include <AP_ADC.h>
#include <AP_ADC/AP_ADC.h>
uint32_t timer;