You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
389 B
20 lines
389 B
12 years ago
|
|
||
10 years ago
|
#ifndef __AP_HAL_SITL_MAIN_H__
|
||
|
#define __AP_HAL_SITL_MAIN_H__
|
||
12 years ago
|
|
||
10 years ago
|
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||
12 years ago
|
#define AP_HAL_MAIN() extern "C" {\
|
||
|
int main (int argc, char * const argv[]) { \
|
||
12 years ago
|
hal.init(argc, argv); \
|
||
|
setup(); \
|
||
12 years ago
|
hal.scheduler->system_initialized(); \
|
||
12 years ago
|
for(;;) { \
|
||
|
loop(); \
|
||
|
} \
|
||
12 years ago
|
return 0;\
|
||
|
}\
|
||
|
}
|
||
|
#endif
|
||
|
|
||
10 years ago
|
#endif // __AP_HAL_SITL_MAIN_H__
|