*\r
* Copyright (c) 2009-2015 Frank Meyer - frank(at)fli4l.de\r
*\r
- * $Id: irmp.h,v 1.94 2015/05/07 06:51:10 fm Exp $\r
+ * $Id: irmp.h,v 1.98 2015/11/10 08:39:27 fm Exp $\r
*\r
* This program is free software; you can redistribute it and/or modify\r
* it under the terms of the GNU General Public License as published by\r
# define input(x) ((uint8_t)(ROM_GPIOPinRead(IRMP_PORT_BASE, IRMP_PORT_PIN)))\r
# define sei() IntMasterEnable()\r
\r
+#elif defined(__SDCC_stm8)\r
+# define _CONCAT(a,b) a##b\r
+# define CONCAT(a,b) _CONCAT(a,b)\r
+# define IRMP_GPIO_STRUCT CONCAT(GPIO, IRMP_PORT_LETTER)\r
+# define IRMP_BIT IRMP_BIT_NUMBER\r
+# define input(x) ((x) & (1 << IRMP_BIT))\r
+\r
+#endif\r
+\r
+#if IRMP_SUPPORT_TECHNICS_PROTOCOL == 1\r
+# undef IRMP_SUPPORT_MATSUSHITA_PROTOCOL\r
+# define IRMP_SUPPORT_MATSUSHITA_PROTOCOL 1\r
#endif\r
\r
#if IRMP_SUPPORT_DENON_PROTOCOL == 1 && IRMP_SUPPORT_RUWIDO_PROTOCOL == 1\r
# define IRMP_SUPPORT_RUWIDO_PROTOCOL 0\r
#endif\r
\r
+#if IRMP_SUPPORT_DENON_PROTOCOL == 1 && IRMP_SUPPORT_ACP24_PROTOCOL == 1\r
+# warning DENON protocol conflicts wih ACP24, please enable only one of both protocols\r
+# warning ACP24 protocol disabled\r
+# undef IRMP_SUPPORT_ACP24_PROTOCOL\r
+# define IRMP_SUPPORT_ACP24_PROTOCOL 0\r
+#endif\r
+\r
#if IRMP_SUPPORT_RC6_PROTOCOL == 1 && IRMP_SUPPORT_ROOMBA_PROTOCOL == 1\r
# warning RC6 protocol conflicts wih ROOMBA, please enable only one of both protocols\r
# warning ROOMBA protocol disabled\r
# define IRMP_SUPPORT_ORTEK_PROTOCOL 0\r
#endif\r
\r
+#if IRMP_SUPPORT_RC5_PROTOCOL == 1 && IRMP_SUPPORT_S100_PROTOCOL == 1\r
+# warning RC5 protocol conflicts wih S100, please enable only one of both protocols\r
+# warning S100 protocol disabled\r
+# undef IRMP_SUPPORT_S100_PROTOCOL\r
+# define IRMP_SUPPORT_S100_PROTOCOL 0\r
+#endif\r
+\r
+#if IRMP_SUPPORT_NUBERT_PROTOCOL == 1 && IRMP_SUPPORT_FAN_PROTOCOL == 1\r
+# warning NUBERT protocol conflicts wih FAN, please enable only one of both protocols\r
+# warning FAN protocol disabled\r
+# undef IRMP_SUPPORT_FAN_PROTOCOL\r
+# define IRMP_SUPPORT_FAN_PROTOCOL 0\r
+#endif\r
+\r
#if IRMP_SUPPORT_FDC_PROTOCOL == 1 && IRMP_SUPPORT_ORTEK_PROTOCOL == 1\r
# warning FDC protocol conflicts wih ORTEK, please enable only one of both protocols\r
# warning ORTEK protocol disabled\r