HAL_AVR: fixed example build

This commit is contained in:
Andrew Tridgell 2013-01-14 07:03:25 +11:00
parent 7a051616ec
commit a3556c8cf8

View File

@ -1,4 +1,3 @@
#include <AP_Common.h>
#include <AP_Math.h>
#include <AP_Param.h>
@ -7,11 +6,7 @@
#include <AP_HAL.h>
#include <AP_HAL_AVR.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_APM2
const AP_HAL::HAL& hal = AP_HAL_AVR_APM2;
#elif CONFIG_HAL_BOARD == HAL_BOARD_APM1
const AP_HAL::HAL& hal = AP_HAL_AVR_APM1;
#endif
const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER;
/**
* You'll want to use a logic analyzer to watch the effects of this test.