]> cloudbase.mooo.com Git - irmp.git/blobdiff - irsndconfig.h
Merge branch 'libopencm3' of cu.loc:git/irmp into libopencm3
[irmp.git] / irsndconfig.h
index 93b8a4029f886d8c5116eea58fe265c5d9d8dc41..4f58bdafb9209fda75b5f8cf2d03c0f2d63b80a6 100644 (file)
@@ -3,9 +3,9 @@
  *\r
  * DO NOT INCLUDE THIS FILE, WILL BE INCLUDED BY IRSND.H!\r
  *\r
- * Copyright (c) 2010-2015 Frank Meyer - frank(at)fli4l.de\r
+ * Copyright (c) 2010-2016 Frank Meyer - frank(at)fli4l.de\r
  *\r
- * $Id: irsndconfig.h,v 1.86 2015/11/18 08:27:50 fm Exp $\r
+ * $Id: irsndconfig.h,v 1.89 2016/12/19 09:01:41 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
@@ -21,7 +21,7 @@
 #  error please include only irsnd.h, not irsndconfig.h\r
 #endif\r
 \r
-//~ #define IRSND_DEBUG 1                                   // activate debugging\r
+// #define IRSND_DEBUG 1                                // activate debugging\r
 \r
 /*---------------------------------------------------------------------------------------------------------------------------------------------------\r
  * F_INTERRUPTS: number of interrupts per second, should be in the range from 10000 to 20000, typically 15000\r
@@ -48,7 +48,7 @@
 \r
 // more protocols, enable here!                 Enable  Remarks                 F_INTERRUPTS            Program Space\r
 #define IRSND_SUPPORT_DENON_PROTOCOL            0       // DENON, Sharp         >= 10000                 ~200 bytes\r
-#define IRSND_SUPPORT_RC5_PROTOCOL              0       // RC5                  >= 10000                 ~150 bytes\r
+#define IRSND_SUPPORT_RC5_PROTOCOL              1       // RC5                  >= 10000                 ~150 bytes\r
 #define IRSND_SUPPORT_RC6_PROTOCOL              0       // RC6                  >= 10000                 ~250 bytes\r
 #define IRSND_SUPPORT_RC6A_PROTOCOL             0       // RC6A                 >= 10000                 ~250 bytes\r
 #define IRSND_SUPPORT_JVC_PROTOCOL              0       // JVC                  >= 10000                 ~150 bytes\r
@@ -87,6 +87,7 @@
 #define IRSND_SUPPORT_ACP24_PROTOCOL            0       // ACP24                >= 10000                 ~150 bytes\r
 #define IRSND_SUPPORT_TECHNICS_PROTOCOL         0       // TECHNICS             >= 10000                 DON'T CHANGE, NOT SUPPORTED YET!\r
 #define IRSND_SUPPORT_PANASONIC_PROTOCOL        0       // PANASONIC Beamer     >= 10000                 ~150 bytes\r
+#define IRSND_SUPPORT_MITSU_HEAVY_PROTOCOL      0       // Mitsubishi-Heavy Aircondition, similar Timing to Panasonic beamer\r
 \r
 \r
 /*---------------------------------------------------------------------------------------------------------------------------------------------------\r
  *---------------------------------------------------------------------------------------------------------------------------------------------------\r
  */\r
 #if defined(__AVR_XMEGA__)                                              // XMEGA\r
-#  define IRSND_PORT_PRE                        PORTD                   \r
+#  define IRSND_PORT_PRE                        PORTD\r
 #  define XMEGA_Timer                           TCD0\r
 #  define IRSND_OCx                             IRSND_XMEGA_OC0B        // use OC0B\r
 \r
 #  define IRSND_TIMER_NUMBER                    4\r
 #  define IRSND_TIMER_CHANNEL_NUMBER            1                       // only channel 1 can be used at the moment, others won't work\r
 \r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * ARM STM32 with libopencm3 section:\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
+#elif defined (LIBOPENCM3)                                              // use B6 as IR output on STM32 whith libopencm3\r
+#  define IRSND_PORT_LETTER                     B\r
+#  define IRSND_BIT_NUMBER                      9\r
+#  define IRSND_TIMER_NUMBER                    4\r
+#  define IRSND_TIMER_CHANNEL_NUMBER            4\r
+#  define F_CPU                                                         // KLUDGE: make irsnd.c happy (TODO:)\r
+\r
 /*---------------------------------------------------------------------------------------------------------------------------------------------------\r
  * Teensy 3.x with teensyduino gcc compiler\r
  *---------------------------------------------------------------------------------------------------------------------------------------------------\r
 #elif defined (TEENSY_ARM_CORTEX_M4)\r
 #  define IRSND_PIN                             5                       // choose an arduino pin with PWM function!\r
 \r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * ESP8266 (Arduino, see IRSEND.ino)\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
+#elif defined (__xtensa__)\r
+#  define IRSND_PIN                             0                       // choose an arduino pin with PWM function!\r
+\r
 /*---------------------------------------------------------------------------------------------------------------------------------------------------\r
  * Other target systems\r
  *---------------------------------------------------------------------------------------------------------------------------------------------------\r