static int time_counter;
static int verbose;
-/******************************* not every PIC compiler knows variadic macros :-(
-#else
+#elif 0 /* not every PIC compiler knows variadic macros :-( */
# define ANALYZE_PUTCHAR(a)
# define ANALYZE_ONLY_NORMAL_PUTCHAR(a)
# define ANALYZE_PRINTF(...)
# define ANALYZE_ONLY_NORMAL_PRINTF(...)
-# endif
# define ANALYZE_NEWLINE()
-*********************************/
+
#endif
#if IRMP_USE_CALLBACK == 1
}
#endif // IRMP_SUPPORT_RC5_PROTOCOL == 1 && (IRMP_SUPPORT_FDC_PROTOCOL == 1 || IRMP_SUPPORT_RCCAR_PROTOCOL == 1)
+#ifdef ANALYZE
+static uint32_t s_curSample;
+static uint32_t s_startBitSample;
+#endif
+
/*---------------------------------------------------------------------------------------------------------------------------------------------------
* ISR routine
* @details ISR routine, called 10000 times per second
#ifdef ANALYZE
if (! irmp_pulse_time)
{
+ s_startBitSample = s_curSample;
ANALYZE_PRINTF("%8.3fms [starting pulse]\n", (double) (time_counter * 1000) / F_INTERRUPTS);
}
#endif // ANALYZE
*---------------------------------------------------------------------------------------------------------------------------------------------------
*/
+void print_spectrum (char * text, int * buf, int is_pulse);
void
print_spectrum (char * text, int * buf, int is_pulse)
{