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.
15 lines
338 B
15 lines
338 B
12 years ago
|
#ifndef __AP_HAL_PX4_MAIN_H__
|
||
|
#define __AP_HAL_PX4_MAIN_H__
|
||
|
|
||
|
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4
|
||
|
|
||
|
#define AP_HAL_MAIN() \
|
||
|
extern "C" __EXPORT int SKETCH_MAIN(int argc, char * const argv[]); \
|
||
|
int SKETCH_MAIN(int argc, char * const argv[]) { \
|
||
|
hal.init(argc, argv); \
|
||
|
return OK; \
|
||
|
}
|
||
|
|
||
|
#endif
|
||
|
#endif // __AP_HAL_PX4_MAIN_H__
|