AP_HAL: restrict build to right board type

This commit is contained in:
Andrew Tridgell 2012-12-19 17:02:57 +11:00
parent 3c0440b0b4
commit 8a70e173a7
5 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,5 @@
#include <AP_HAL.h>
#if (CONFIG_HAL_BOARD == HAL_BOARD_APM1 || CONFIG_HAL_BOARD == HAL_BOARD_APM2)
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1
#include <avr/interrupt.h>

View File

@ -1,5 +1,5 @@
#include <AP_HAL.h>
#if (CONFIG_HAL_BOARD == HAL_BOARD_APM1 || CONFIG_HAL_BOARD == HAL_BOARD_APM2)
#if CONFIG_HAL_BOARD == HAL_BOARD_APM2
#include <avr/interrupt.h>

View File

@ -1,5 +1,5 @@
#include <AP_HAL.h>
#if (CONFIG_HAL_BOARD == HAL_BOARD_APM1 || CONFIG_HAL_BOARD == HAL_BOARD_APM2)
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1
#include <avr/io.h>
#include <AP_HAL.h>

View File

@ -1,5 +1,5 @@
#include <AP_HAL.h>
#if (CONFIG_HAL_BOARD == HAL_BOARD_APM1 || CONFIG_HAL_BOARD == HAL_BOARD_APM2)
#if CONFIG_HAL_BOARD == HAL_BOARD_APM2
#include <avr/io.h>
#include <AP_HAL.h>

View File

@ -1,5 +1,6 @@
#include <AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_EMPTY
#include "HAL_Empty_Class.h"
#include "AP_HAL_Empty_Private.h"
@ -49,3 +50,4 @@ void HAL_Empty::init(int argc,char* const argv[]) const {
const HAL_Empty AP_HAL_Empty;
#endif