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.
18 lines
405 B
18 lines
405 B
|
|
|
|
#ifndef __AP_HAL_LINUX_MAIN_H__ |
|
#define __AP_HAL_LINUX_MAIN_H__ |
|
|
|
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX |
|
#define AP_HAL_MAIN() extern "C" {\ |
|
int main (int argc, char * const argv[]) { \ |
|
hal.init(argc, argv); \ |
|
setup();\ |
|
hal.scheduler->system_initialized(); \ |
|
for(;;) loop();\ |
|
return 0;\ |
|
}\ |
|
} |
|
#endif // HAL_BOARD_LINUX |
|
|
|
#endif // __AP_HAL_LINUX_MAIN_H__
|
|
|