AP_HAL: preprocessor enum of HAL_BOARD

This commit is contained in:
Pat Hickey 2012-12-11 15:19:52 -08:00 committed by Andrew Tridgell
parent da99f5f283
commit fa02ad7d4c
2 changed files with 19 additions and 0 deletions

View File

@ -3,6 +3,7 @@
#define __AP_HAL_H__
#include "AP_HAL_Namespace.h"
#include "AP_HAL_Boards.h"
/* HAL Module Classes (all pure virtual) */
#include "UARTDriver.h"

View File

@ -0,0 +1,18 @@
#ifndef __AP_HAL_BOARDS_H__
#define __AP_HAL_BOARDS_H__
/**
* C preprocesor enumeration of the boards supported by the AP_HAL.
* This list exists so HAL_BOARD == HAL_BOARD_xxx preprocessor blocks
* can be used to exclude HAL boards from the build when appropriate.
* Its not an elegant solution but we cant get too fancy if we want to
* work with the Arduino mk and IDE builds without too much modification.
*/
#define HAL_BOARD_APM1 1
#define HAL_BOARD_APM2 2
#define HAL_BOARD_AVR_SITL 3
#endif // __AP_HAL_BOARDS_H__