HAL_AVR: only build on APM boards

This commit is contained in:
Andrew Tridgell 2012-12-30 19:57:39 +11:00
parent b41440175f
commit 24a291cf66
2 changed files with 6 additions and 1 deletions

View File

@ -1,9 +1,10 @@
#include <AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1 || CONFIG_HAL_BOARD == HAL_BOARD_APM2
#include <limits.h>
#include "print_vprintf.h"
#include <AP_HAL.h>
#include "Console.h"
using namespace AP_HAL_AVR;
@ -192,3 +193,4 @@ uint16_t AVRConsoleDriver::Buffer::bytes_free() {
return ((_mask+1) - ((_head - _tail) & _mask));
}
#endif

View File

@ -1,3 +1,5 @@
#include <AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1 || CONFIG_HAL_BOARD == HAL_BOARD_APM2
#include "Util.h"
#include "print_vprintf.h"
@ -56,3 +58,4 @@ int AVRUtil::vsnprintf_P(char* str, size_t size, const prog_char_t *format,
}
#endif