diff --git a/src/main/platform.h b/src/main/platform.h index f6c6d99484..3827278d5f 100644 --- a/src/main/platform.h +++ b/src/main/platform.h @@ -17,6 +17,8 @@ #pragma once +#include "platform/common.h" + #if defined(STM32F40_41xxx) || defined (STM32F411xE) #include "stm32f4xx_conf.h" #include "stm32f4xx_rcc.h" diff --git a/src/main/platform/common.h b/src/main/platform/common.h new file mode 100644 index 0000000000..5f5b998820 --- /dev/null +++ b/src/main/platform/common.h @@ -0,0 +1,46 @@ +/* + * This file is part of Cleanflight. + * + * Cleanflight is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Cleanflight is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Cleanflight. If not, see . + */ + +#pragma once + +#define USE_SERVOS +#define USE_CLI +#define SERIAL_RX +#define BLACKBOX + +#if (FLASH_SIZE > 64) +#define GPS +#define GPS_PROTO_NMEA +#define GPS_PROTO_UBLOX +#define GPS_PROTO_I2C_NAV +#define GPS_PROTO_NAZA + +#define TELEMETRY +#define TELEMETRY_FRSKY +#define TELEMETRY_HOTT +#define TELEMETRY_SMARTPORT +#define TELEMETRY_LTM +#endif + +#if (FLASH_SIZE > 128) +#define DISPLAY +#define DISPLAY_ARMED_BITMAP +#else +#define SKIP_CLI_COMMAND_HELP +#define SKIP_RX_MSP +#define DISABLE_UNCOMMON_MIXERS +#endif