mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 23:48:31 -04:00
a4af314b57
- Add a board definition for SMACCMPilot. - Support the SMACCM HAL in required utility libraries.
18 lines
331 B
C
18 lines
331 B
C
|
|
|
|
#ifndef __AP_HAL_SMACCM_MAIN_H__
|
|
#define __AP_HAL_SMACCM_MAIN_H__
|
|
|
|
#if CONFIG_HAL_BOARD == HAL_BOARD_SMACCM
|
|
#define AP_HAL_MAIN() extern "C" {\
|
|
int main (void) {\
|
|
hal.init(0, NULL); \
|
|
setup();\
|
|
for(;;) loop();\
|
|
return 0;\
|
|
}\
|
|
}
|
|
#endif // HAL_BOARD_SMACCM
|
|
|
|
#endif // __AP_HAL_SMACCM_MAIN_H__
|