Go to the documentation of this file. 21 #if CONFIG_HAL_BOARD == HAL_BOARD_PX4 || CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN 22 #define AP_MAIN __EXPORT ArduPilot_main 29 #define AP_HAL_MAIN() \ 30 AP_HAL::HAL::FunCallbacks callbacks(setup, loop); \ 32 int AP_MAIN(int argc, char* const argv[]); \ 33 int AP_MAIN(int argc, char* const argv[]) { \ 34 hal.run(argc, argv, &callbacks); \ 39 #define AP_HAL_MAIN_CALLBACKS(CALLBACKS) extern "C" { \ 40 int AP_MAIN(int argc, char* const argv[]); \ 41 int AP_MAIN(int argc, char* const argv[]) { \ 42 hal.run(argc, argv, CALLBACKS); \