External module list depends on compilation options

- option PPM=NO is added for radios which don't support PPM anymore
- option SBUS=NO
- option DSM2=NO
This commit is contained in:
Bertrand Songis
2019-05-17 09:24:04 +02:00
parent c2e6985e3b
commit db23a2125d
4 changed files with 82 additions and 21 deletions
+9
View File
@@ -173,13 +173,18 @@ void disablePulses(uint8_t module, uint8_t protocol)
#if defined(MULTIMODULE)
case PROTOCOL_CHANNELS_MULTIMODULE:
#endif
#if defined(SBUS)
case PROTOCOL_CHANNELS_SBUS:
disable_serial(module);
break;
#endif
#if defined(PPM)
case PROTOCOL_CHANNELS_PPM:
disable_ppm(module);
break;
#endif
}
}
@@ -303,10 +308,12 @@ void setupPulsesExternalModule(uint8_t protocol)
break;
#endif
#if defined(SBUS)
case PROTOCOL_CHANNELS_SBUS:
setupPulsesSbus();
scheduleNextMixerCalculation(EXTERNAL_MODULE, SBUS_PERIOD);
break;
#endif
#if defined(DSM2)
case PROTOCOL_CHANNELS_DSM2_LP45:
@@ -331,10 +338,12 @@ void setupPulsesExternalModule(uint8_t protocol)
break;
#endif
#if defined(PPM)
case PROTOCOL_CHANNELS_PPM:
setupPulsesPPMExternalModule();
scheduleNextMixerCalculation(EXTERNAL_MODULE, PPM_PERIOD(EXTERNAL_MODULE));
break;
#endif
default:
break;