mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
155fca8a4b
this also moves uartA onto UART5, allowing ttyS0 for nsh
15 lines
338 B
C
15 lines
338 B
C
#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__
|