+#if IRMP_SUPPORT_LEGO_PROTOCOL == 1 && F_INTERRUPTS < 20000\r
+#warning F_INTERRUPTS too low, LEGO protocol disabled (should be at least 20000)\r
+#undef IRMP_SUPPORT_LEGO_PROTOCOL\r
+#define IRMP_SUPPORT_LEGO_PROTOCOL 0\r
+#endif\r
+\r
+#if IRMP_SUPPORT_JVC_PROTOCOL == 1 && IRMP_SUPPORT_NEC_PROTOCOL == 0\r
+#warning JVC protocol needs also NEC protocol, NEC protocol enabled\r
+#undef IRMP_SUPPORT_NEC_PROTOCOL\r
+#define IRMP_SUPPORT_NEC_PROTOCOL 1\r
+#endif\r
+\r
+#if IRMP_SUPPORT_NEC16_PROTOCOL == 1 && IRMP_SUPPORT_NEC_PROTOCOL == 0\r
+#warning NEC16 protocol needs also NEC protocol, NEC protocol enabled\r
+#undef IRMP_SUPPORT_NEC_PROTOCOL\r
+#define IRMP_SUPPORT_NEC_PROTOCOL 1\r
+#endif\r
+\r
+#if IRMP_SUPPORT_NEC42_PROTOCOL == 1 && IRMP_SUPPORT_NEC_PROTOCOL == 0\r
+#warning NEC42 protocol needs also NEC protocol, NEC protocol enabled\r
+#undef IRMP_SUPPORT_NEC_PROTOCOL\r
+#define IRMP_SUPPORT_NEC_PROTOCOL 1\r
+#endif\r
+\r
+#if F_INTERRUPTS > 20000\r
+#error F_INTERRUPTS too high (should be not greater than 20000)\r
+#endif\r
+\r