47 #define DECODER_IMPLEMENTATION_C
50 #include "../inc/freeEMS.h"
51 #include "../inc/interrupts.h"
53 #include "../inc/decoderInterface.h"
54 #include "../inc/utils.h"
60 const unsigned char eventValidForCrankSync[] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
61 const unsigned char windowCounts[] = {4,86,44,46,4,86,14,76,4,86,24,66,4,86,34,56};
83 #define windowsPerAllowedCumulativeBastardTooth 8
123 unsigned char PTITCurrentState =
PTIT;
141 unsigned char lastEvent = 0xFF;
155 if(lastEvent == 0xFF){
221 if(
TFLGOF && !(edgeTimeStamp & 0x8000)){
241 unsigned long primaryLeadingEdgeTimeStamp = timeStamp.
timeLong;
243 lastPrimaryEventTimeStamp = primaryLeadingEdgeTimeStamp;
265 SCHEDULE_ECT_OUTPUTS();