]> cloudbase.mooo.com Git - irmp.git/blobdiff - irmpconfig.h
Add Macro for timer (timer 3), change IRMP_PORT to PB4 (TIM3_CH1)
[irmp.git] / irmpconfig.h
index 245129fdd3c878689916133b509f92d751a06789..6cc70f834e79bece575e4791d44794079ad46e10 100644 (file)
  *---------------------------------------------------------------------------------------------------------------------------------------------------\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 (ARM_OPENCM3)                                             // use C13 as IR input on STM32\r
+#  define IRMP_PORT_LETTER                      B\r
+#  define IRMP_BIT_NUMBER                       4\r
+#  define IRMP_TIMER                            3                      // Timer to use\r
 \r
 /*---------------------------------------------------------------------------------------------------------------------------------------------------\r
  * Change hardware pin here for Stellaris ARM Cortex M4\r