mirror of https://github.com/ArduPilot/ardupilot
19 lines
373 B
C
19 lines
373 B
C
|
|
|
|
#ifndef __AP_HAL_EMPTY_MAIN_H__
|
|
#define __AP_HAL_EMPTY_MAIN_H__
|
|
|
|
#if CONFIG_HAL_BOARD == HAL_BOARD_EMPTY
|
|
#define AP_HAL_MAIN() extern "C" {\
|
|
int main (void) {\
|
|
hal.init(0, NULL); \
|
|
setup();\
|
|
hal.scheduler->system_initialized(); \
|
|
for(;;) loop();\
|
|
return 0;\
|
|
}\
|
|
}
|
|
#endif // HAL_BOARD_EMPTY
|
|
|
|
#endif // __AP_HAL_EMPTY_MAIN_H__
|