AP_HAL_FLYMAPLE: Fix example Scheduler.pde to compile with recent changes to

scheduler API
This commit is contained in:
Mike McCauley 2013-10-07 11:56:23 +10:00
parent 36cc266626
commit bc55a2844c

View File

@ -21,6 +21,12 @@
#undef millis
#undef micros
// Flymaple: Force init to be called *first*, i.e. before static object allocation.
// Otherwise, statically allocated objects (eg SerialUSB) that need libmaple may fail.
__attribute__((constructor)) void premain() {
init();
}
// Not declared in any libmaple headers :-(
extern "C"
{