HAL_AVR: fixed example build

This commit is contained in:
Andrew Tridgell 2014-08-13 22:11:53 +10:00
parent b61ecb47af
commit 928024854e
10 changed files with 10 additions and 9 deletions

View File

@ -2,6 +2,7 @@
#include <AP_Common.h>
#include <AP_Math.h>
#include <AP_Param.h>
#include <StorageManager.h>
#include <AP_Progmem.h>
#include <AP_HAL.h>

View File

@ -9,6 +9,7 @@
#include <AP_Common.h>
#include <AP_Math.h>
#include <AP_Param.h>
#include <StorageManager.h>
#include <AP_Progmem.h>
#include <AP_HAL.h>

View File

@ -7,6 +7,7 @@
#include <AP_Common.h>
#include <AP_Math.h>
#include <AP_Param.h>
#include <StorageManager.h>
#include <AP_Progmem.h>
#include <AP_HAL.h>

View File

@ -2,6 +2,7 @@
#include <AP_Common.h>
#include <AP_Math.h>
#include <AP_Param.h>
#include <StorageManager.h>
#include <AP_Progmem.h>
#include <AP_HAL.h>

View File

@ -1,6 +1,7 @@
#include <AP_Common.h>
#include <AP_Math.h>
#include <AP_Param.h>
#include <StorageManager.h>
#include <AP_Progmem.h>
#include <AP_HAL.h>

View File

@ -2,6 +2,7 @@
#include <AP_Common.h>
#include <AP_Math.h>
#include <AP_Param.h>
#include <StorageManager.h>
#include <AP_Progmem.h>
#include <AP_HAL.h>

View File

@ -7,6 +7,7 @@
#include <AP_Common.h>
#include <AP_Math.h>
#include <AP_Param.h>
#include <StorageManager.h>
#include <AP_Progmem.h>
#include <AP_HAL.h>

View File

@ -2,6 +2,7 @@
#include <AP_Common.h>
#include <AP_Math.h>
#include <AP_Param.h>
#include <StorageManager.h>
#include <AP_Progmem.h>
#include <AP_HAL.h>
@ -15,14 +16,6 @@ const AP_HAL::HAL& hal = AP_HAL_AVR_APM1;
uint8_t fibs[12] = { 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144 };
void test_erase() {
hal.console->printf_P(PSTR("erasing... "));
for(int i = 0; i < 100; i++) {
hal.storage->write_byte(i, 0);
}
hal.console->printf_P(PSTR(" done.\r\n"));
}
void test_write() {
hal.console->printf_P(PSTR("writing... "));
hal.storage->write_block(0, fibs, 12);
@ -49,7 +42,6 @@ void test_readback() {
void setup (void) {
hal.console->printf_P(PSTR("Starting AP_HAL_AVR::Storage test\r\n"));
test_erase();
test_write();
test_readback();
}

View File

@ -9,6 +9,7 @@
#include <AP_Common.h>
#include <AP_Math.h>
#include <AP_Param.h>
#include <StorageManager.h>
#include <AP_Progmem.h>
#include <AP_HAL.h>

View File

@ -5,6 +5,7 @@
#include <AP_Common.h>
#include <AP_Math.h>
#include <AP_Param.h>
#include <StorageManager.h>
#include <AP_Progmem.h>
#include <AP_HAL.h>