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

21 lines
438 B
C

#ifndef __AP_HAL_AVR_H__
#define __AP_HAL_AVR_H__
#include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1 || CONFIG_HAL_BOARD == HAL_BOARD_APM2
/**
* This module exports AP_HAL::HAL instances only.
* All internal drivers must conform to AP_HAL interfaces
* and not expose implementation details.
*/
#include "HAL_AVR_APM1_Class.h"
#include "HAL_AVR_APM2_Class.h"
#endif // CONFIG_HAL_BOARD
#endif // __AP_HAL_AVR_H__