ardupilot/libraries/AP_HAL_SMACCM/AP_HAL_SMACCM_Main.h
James Bielman a4af314b57 Add AP_HAL_SMACCM implementation.
- Add a board definition for SMACCMPilot.
- Support the SMACCM HAL in required utility libraries.
2013-01-03 13:48:06 -08:00

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__