mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 22:48:29 -04:00
7827a4a54a
- Added default configuration to "config.h". - Added main function to run under FreeRTOS with HWF4.
23 lines
528 B
C++
23 lines
528 B
C++
|
|
|
|
#ifndef __AP_HAL_SMACCM_MAIN_H__
|
|
#define __AP_HAL_SMACCM_MAIN_H__
|
|
|
|
#if CONFIG_HAL_BOARD == HAL_BOARD_SMACCM
|
|
|
|
namespace SMACCM
|
|
{
|
|
void hal_main();
|
|
}
|
|
|
|
#define AP_HAL_MAIN() \
|
|
extern "C" int main (void) \
|
|
{ \
|
|
SMACCM::hal_main(); \
|
|
return 0; \
|
|
}
|
|
|
|
#endif // HAL_BOARD_SMACCM */
|
|
|
|
#endif // __AP_HAL_SMACCM_MAIN_H__
|