ardupilot/libraries/AP_HAL_SITL/AP_HAL_SITL.h
Caio Marcelo de Oliveira Filho 19b4ca60c4 AP_HAL: provide AP_HAL_MAIN()
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.
2015-10-21 09:16:09 +11:00

15 lines
208 B
C

#ifndef __AP_HAL_SITL_H__
#define __AP_HAL_SITL_H__
#include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
#include "HAL_SITL_Class.h"
#endif // CONFIG_HAL_BOARD
#endif // __AP_HAL_SITL_H__