]> cloudbase.mooo.com Git - irmp.git/blobdiff - irmp.h
Add Macro for timer (timer 3), change IRMP_PORT to PB4 (TIM3_CH1)
[irmp.git] / irmp.h
diff --git a/irmp.h b/irmp.h
index 53e16c7c434a4f463bde239ae230574934949d35..df05e57c71c4f40e6049e5285a22f28eb5b509e0 100644 (file)
--- a/irmp.h
+++ b/irmp.h
@@ -73,6 +73,7 @@
 #  define IRMP_PIN                              IRMP_PORT   // for use with input(x) below\r
 #  define input(x)                              ((GPIO_IDR(IRMP_PORT) & (1<<IRMP_BIT)) != 0)\r
 //#  define input(x)                              (BBIO_PERIPH(IRMP_PORT+IDR, IRMP_BIT))\r
+#  define TIM_IRMP                              CONCAT(TIM, IRMP_TIMER)\r
 \r
 #elif defined (STELLARIS_ARM_CORTEX_M4)\r
 #  define _CONCAT(a,b)                          a##b\r