ardupilot/libraries/AP_ICEngine/AP_ICEngine_config.h
Peter Barker ee3c9765a4 AP_ICEngine: correct compilation when ICEngine disabled
the starter class does things with various other objects which may not be avaialb.e  Honour AP_ICENGINE_ENABLED
2024-02-20 09:16:23 +11:00

16 lines
373 B
C

#pragma once
#include <AP_HAL/AP_HAL_Boards.h>
#ifndef AP_ICENGINE_ENABLED
#define AP_ICENGINE_ENABLED 1
#endif
/*
optional TCA9554 I2C for starter control
*/
#ifndef AP_ICENGINE_TCA9554_STARTER_ENABLED
// enable on SITL by default to ensure code is built
#define AP_ICENGINE_TCA9554_STARTER_ENABLED AP_ICENGINE_ENABLED && (CONFIG_HAL_BOARD == HAL_BOARD_SITL)
#endif