ardupilot/libraries/AP_HAL_PX4/examples/simple/simple.cpp
Lucas De Marchi 2c38e31c93 Remove use of PSTR
The PSTR is already define as a NOP for all supported platforms. It's
only needed for AVR so here we remove all the uses throughout the
codebase.

This was automated with a simple python script so it also converts
places which spans to multiple lines, removing the matching parentheses.

AVR-specific places were not changed.
2015-10-30 14:35:04 +09:00

23 lines
367 B
C++

/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
/*
simple hello world sketch
Andrew Tridgell September 2011
*/
#include <AP_HAL/AP_HAL.h>
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
void setup() {
hal.console->println_P("hello world");
}
void loop()
{
hal.scheduler->delay(1000);
hal.console->println("*");
}
AP_HAL_MAIN();