1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-17 21:35:27 +03:00

sync external module (SBUS, DSM, MULTI)

This commit is contained in:
Raphael Coeffic 2019-11-05 15:23:25 +01:00 committed by 3djc
parent fe6bd01afe
commit ca60468f12
6 changed files with 35 additions and 22 deletions

View file

@ -87,6 +87,12 @@ bool isModuleSynchronous(uint8_t module)
#endif
#if defined(INTMODULE_USART) || defined(EXTMODULE_USART)
case PROTOCOL_CHANNELS_PXX1_SERIAL:
#endif
#if defined(DSM2)
case PROTOCOL_CHANNELS_SBUS:
case PROTOCOL_CHANNELS_DSM2_LP45:
case PROTOCOL_CHANNELS_DSM2_DSM2:
case PROTOCOL_CHANNELS_DSM2_DSMX:
#endif
return true;
}
@ -108,7 +114,7 @@ void sendSynchronousPulses()
}
}
#define DEBUG_MIXER_SCHEDULER
//#define DEBUG_MIXER_SCHEDULER
uint32_t nextMixerTime[NUM_MODULES];
@ -194,6 +200,7 @@ TASK_FUNCTION(mixerTask)
if (t0 > maxMixerDuration)
maxMixerDuration = t0;
serialPrint("cnt = %d", EXTMODULE_TIMER->CNT);
sendSynchronousPulses();
}
}