Browse Source

HAL_Empty: fixed example build

mission-4.1.18
Andrew Tridgell 12 years ago
parent
commit
4609114a81
  1. 6
      libraries/AP_HAL_Empty/examples/empty_example/empty_example.pde

6
libraries/AP_HAL_Empty/examples/empty_example/empty_example.pde

@ -1,17 +1,19 @@
#include <AP_HAL.h>
#include <AP_Common.h> #include <AP_Common.h>
#include <AP_Progmem.h> #include <AP_Progmem.h>
#include <AP_Param.h> #include <AP_Param.h>
#include <AP_Math.h> #include <AP_Math.h>
#include <AP_HAL.h>
#include <AP_HAL_AVR.h> #include <AP_HAL_AVR.h>
#include <AP_HAL_AVR_SITL.h> #include <AP_HAL_AVR_SITL.h>
#include <AP_HAL_Empty.h> #include <AP_HAL_Empty.h>
const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER; const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER;
void setup() {} void setup() {
hal.console->println_P(PSTR("Empty setup"));
}
void loop() {} void loop() {}
AP_HAL_MAIN(); AP_HAL_MAIN();

Loading…
Cancel
Save