mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-06 16:08:28 -04:00
19b4ca60c4
Move the macros to a single place and reduce the variations not based on board, but based on - The name of the entry-point function, specified by AP_MAIN; - Whether it contains argc/argv arguments or not. The goal here is that programs (vehicles and examples) don't need to include all possible boards to define a main function. Further patches will change the programs.
35 lines
639 B
C
35 lines
639 B
C
|
|
#ifndef __AP_HAL_H__
|
|
#define __AP_HAL_H__
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#include "AP_HAL_Namespace.h"
|
|
#include "AP_HAL_Boards.h"
|
|
#include "AP_HAL_Macros.h"
|
|
#include "AP_HAL_Main.h"
|
|
|
|
/* HAL Module Classes (all pure virtual) */
|
|
#include "UARTDriver.h"
|
|
#include "I2CDriver.h"
|
|
#include "SPIDriver.h"
|
|
#include "AnalogIn.h"
|
|
#include "Storage.h"
|
|
#include "GPIO.h"
|
|
#include "RCInput.h"
|
|
#include "RCOutput.h"
|
|
#include "Scheduler.h"
|
|
#include "Semaphores.h"
|
|
#include "Util.h"
|
|
|
|
#include "utility/Print.h"
|
|
#include "utility/Stream.h"
|
|
#include "utility/BetterStream.h"
|
|
|
|
/* HAL Class definition */
|
|
#include "HAL.h"
|
|
|
|
#endif // __AP_HAL_H__
|
|
|