APM:Libraries
Macros
AP_HAL_Main.h File Reference
#include "HAL.h"
Include dependency graph for AP_HAL_Main.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define AP_MAIN   __EXPORT ArduPilot_main
 
#define AP_HAL_MAIN()
 
#define AP_HAL_MAIN_CALLBACKS(CALLBACKS)
 

Macro Definition Documentation

◆ AP_HAL_MAIN

#define AP_HAL_MAIN ( )
Value:
extern "C" { \
int AP_MAIN(int argc, char* const argv[]); \
int AP_MAIN(int argc, char* const argv[]) { \
hal.run(argc, argv, &callbacks); \
return 0; \
} \
}
void loop()
Definition: AC_PID_test.cpp:34
#define AP_MAIN
Definition: AP_HAL_Main.h:22
void setup()
Definition: AC_PID_test.cpp:26

Definition at line 29 of file AP_HAL_Main.h.

Referenced by main().

◆ AP_HAL_MAIN_CALLBACKS

#define AP_HAL_MAIN_CALLBACKS (   CALLBACKS)
Value:
extern "C" { \
int AP_MAIN(int argc, char* const argv[]); \
int AP_MAIN(int argc, char* const argv[]) { \
hal.run(argc, argv, CALLBACKS); \
return 0; \
} \
}
#define AP_MAIN
Definition: AP_HAL_Main.h:22

Definition at line 39 of file AP_HAL_Main.h.

◆ AP_MAIN

#define AP_MAIN   __EXPORT ArduPilot_main

Definition at line 22 of file AP_HAL_Main.h.