From 4a9d295f1a8229c3f663e15e43bc073c2fbfbdc1 Mon Sep 17 00:00:00 2001 From: Pascal Langer Date: Tue, 30 Jan 2018 12:53:00 +0100 Subject: [PATCH] More examples in _MyConfig.h.example --- Multiprotocol/_MyConfig.h.example | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/Multiprotocol/_MyConfig.h.example b/Multiprotocol/_MyConfig.h.example index f14a2e4..40c5984 100644 --- a/Multiprotocol/_MyConfig.h.example +++ b/Multiprotocol/_MyConfig.h.example @@ -6,14 +6,20 @@ To disable a setting use #undef */ -//#define FORCE_GLOBAL_ID 0x12345678 +// For example you can also define multiple module configurations, uncomment the one you want to compile for: +#define Module_1 +//#define Module_2 +//#define Module_2 +//#define Module_4 -//Force bootloader +//Example on how to force the "Flash from TX" feature for all modules #define CHECK_FOR_BOOTLOADER -#if not defined STM32_BOARD -// Everything here will only apply to Multi Atmega328p boards -// Add or remove unwanted protocols to fit in flash +//Example on how to force the same ID for all modules: be carefull this is really if you want to be able to use one or another radio but not both! +//#define FORCE_GLOBAL_ID 0x12345678 + +#if defined Module_1 + //Example on how to remove unwanted protocols to fit in flash for Atmega 328 modules #undef AFHDS2A_A7105_INO #undef DEVO_CYRF6936_INO @@ -36,4 +42,18 @@ #undef CABELL_NRF24L01_INO #undef ESKY150_NRF24L01_INO #undef H8_3D_NRF24L01_INO + +#elseif defined Module_2 + //Example of a module which doesn't need the telemetry signal to be inverted + #undef INVERT_TELEMETRY + +#elseif defined Module_3 + //Example of a module which will be used with OpenTX + #undef MULTI_STATUS + #define MULTI_TELEMETRY + +#elseif defined Module_4 + //Example of a module which will be PPM only + #undef ENABLE_SERIAL + #endif