auto-sync

This commit is contained in:
rusEfi 2014-11-14 13:05:25 -06:00
parent 5cf518cb16
commit 436e5a72c3
2 changed files with 4 additions and 3 deletions

View File

@ -182,7 +182,8 @@ typedef struct {
int tunerStudioThreadPeriod;
int generalPeriodicThreadPeriod;
int tunerStudioSerialSpeed;
short int tunerStudioSerialSpeed;
short int unusedShort;
brain_pin_e boardTestModeJumperPin;

View File

@ -50,7 +50,7 @@ bool_t isTriggerDecoderError(void) {
return errorDetection.sum(6) > 4;
}
static inline bool isSynchronizationGap(TriggerState *shaftPositionState, trigger_shape_s const *triggerShape,
static ALWAYS_INLINE bool isSynchronizationGap(TriggerState *shaftPositionState, trigger_shape_s const *triggerShape,
const int currentDuration) {
if (!triggerShape->isSynchronizationNeeded) {
return false;
@ -72,7 +72,7 @@ static inline bool isSynchronizationGap(TriggerState *shaftPositionState, trigge
&& currentDuration < shaftPositionState->toothed_previous_duration * triggerShape->syncRatioTo;
}
static inline bool noSynchronizationResetNeeded(TriggerState *shaftPositionState, trigger_shape_s const *triggerShape) {
static ALWAYS_INLINE bool noSynchronizationResetNeeded(TriggerState *shaftPositionState, trigger_shape_s const *triggerShape) {
if (triggerShape->isSynchronizationNeeded) {
return false;
}