HAL_AVR: only build on APM boards
This commit is contained in:
parent
b41440175f
commit
24a291cf66
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user