mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58: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.
21 lines
438 B
C
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__
|
|
|