ardupilot/libraries/AP_HAL_VRBRAIN/AP_HAL_VRBRAIN.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

13 lines
221 B
C

#ifndef __AP_HAL_VRBRAIN_H__
#define __AP_HAL_VRBRAIN_H__
#include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN
#include "HAL_VRBRAIN_Class.h"
#endif // CONFIG_HAL_BOARD
#endif // __AP_HAL_VRBRAIN_H__