Re #2239: PPM output type added for 9XR-PRO (open drain or push-pull)

This commit is contained in:
Damjan Adamic
2015-05-04 20:35:29 +02:00
parent 1609b1236d
commit 60b2a378dd
20 changed files with 198 additions and 25 deletions
+7 -1
View File
@@ -414,7 +414,13 @@ PACK(typedef struct {
int16_t failsafeChannels[NUM_CHNOUT];
int8_t ppmDelay;
int8_t ppmFrameLength;
uint8_t ppmPulsePol;
uint8_t ppmPulsePol:1;
#if defined(PCBSKY9X) && defined(REVX)
uint8_t ppmOutputType:1; // false = open drain, true = push pull
uint8_t spare:6;
#else
uint8_t spare:7;
#endif
}) ModuleData;
#define SET_DEFAULT_PPM_FRAME_LENGTH(idx) g_model.moduleData[idx].ppmFrameLength = 4 * max((int8_t)0, g_model.moduleData[idx].channelsCount)