AP_HAL_PX4: added main program as include

This commit is contained in:
Andrew Tridgell 2012-10-27 22:44:01 +11:00
parent 28353cd683
commit 2669c33476

View File

@ -0,0 +1,10 @@
// this is included at the end of every sketch
extern "C" __EXPORT int SKETCH_MAIN(int argc, char *argv[]);
int SKETCH_MAIN(int argc, char *argv[])
{
printf("%s starting\n", SKETCHNAME);
hal.init(NULL);
setup();
for(;;) loop();
return OK;
}