]> cloudbase.mooo.com Git - irmp.git/blobdiff - irmpconfig.h
Merge branch 'libopencm3' of cu.loc:git/irmp into libopencm3
[irmp.git] / irmpconfig.h
index bc5b412d54f726f66534a5af78562cabf9e80a7f..3767de7d399e2545addf8d90deb357fe66908a06 100644 (file)
@@ -3,10 +3,10 @@
  *\r
  * DO NOT INCLUDE THIS FILE, WILL BE INCLUDED BY IRMP.H!\r
  *\r
- * Copyright (c) 2009-2015 Frank Meyer - frank(at)fli4l.de\r
+ * Copyright (c) 2009-2016 Frank Meyer - frank(at)fli4l.de\r
  * Extensions for PIC 12F1820 W.Strobl 2014-07-20\r
  *\r
- * $Id: irmpconfig.h,v 1.138 2015/11/10 08:47:56 fm Exp $\r
+ * $Id: irmpconfig.h,v 1.152 2017/02/17 09:13:06 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 IRMP_SUPPORT_S100_PROTOCOL              0       // S100                 >= 10000                 ~250 bytes\r
 #define IRMP_SUPPORT_ACP24_PROTOCOL             0       // ACP24                >= 10000                 ~250 bytes\r
 #define IRMP_SUPPORT_TECHNICS_PROTOCOL          0       // TECHNICS             >= 10000                 ~250 bytes\r
+#define IRMP_SUPPORT_PANASONIC_PROTOCOL         0       // PANASONIC Beamer     >= 10000                 ~250 bytes\r
+#define IRMP_SUPPORT_MITSU_HEAVY_PROTOCOL       0       // Mitsubishi Aircond   >= 10000                 ~250 bytes\r
+#define IRMP_SUPPORT_VINCENT_PROTOCOL           0       // VINCENT              >= 10000                 ~250 bytes\r
+#define IRMP_SUPPORT_SAMSUNGAH_PROTOCOL         1       // SAMSUNG AH           >= 10000                 ~250 bytes\r
 #define IRMP_SUPPORT_RADIO1_PROTOCOL            0       // RADIO, e.g. TEVION   >= 10000                 ~250 bytes (experimental)\r
 \r
 /*---------------------------------------------------------------------------------------------------------------------------------------------------\r
  *---------------------------------------------------------------------------------------------------------------------------------------------------\r
  */\r
 #elif defined (ARM_STM32)                                               // use C13 as IR input on STM32\r
-#  define IRMP_PORT_LETTER                      C\r
-#  define IRMP_BIT_NUMBER                       13\r
+#  define IRMP_PORT_LETTER                      B\r
+#  define IRMP_BIT_NUMBER                       4\r
+\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * Change hardware pin here for ARM STM32 with libopencm3\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
+#elif defined (LIBOPENCM3)\r
+#  define IRMP_PORT_LETTER                      B\r
+#  define IRMP_BIT_NUMBER                       4\r
 \r
 /*---------------------------------------------------------------------------------------------------------------------------------------------------\r
  * Change hardware pin here for Stellaris ARM Cortex M4\r
 #  define IRMP_PORT_LETTER                      A\r
 #  define IRMP_BIT_NUMBER                       1\r
 \r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * Change hardware pin here for ESP8266\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
+#elif defined (__xtensa__)\r
+#  define IRMP_BIT_NUMBER                       12                      // use GPIO12 (Pin 7 UEXT) on ESP8266-EVB evaluation board\r
+\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * Change hardware pin here for Teensy 3.x with teensyduino gcc compiler\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
+#elif defined (TEENSY_ARM_CORTEX_M4)\r
+#  define IRMP_PIN                              1                       // use Digital pin 1 as IR input on Teensy\r
+\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * Change hardware pin here for MBED\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
+#elif defined(__MBED__)\r
+#  define IRMP_PIN                              P0_22                   // use P1_27 on LPC1347\r
+#  define IRMP_PINMODE                          PullUp                  // hardware dependent\r
+\r
 /*---------------------------------------------------------------------------------------------------------------------------------------------------\r
  * Handling of unknown target system: DON'T CHANGE\r
  *---------------------------------------------------------------------------------------------------------------------------------------------------\r