+#elif defined (LIBOPENCM3)\r
+# define _CONCAT(a,b) a##b\r
+# define CONCAT(a,b) _CONCAT(a,b)\r
+# define IRMP_PORT CONCAT(GPIO, IRMP_PORT_LETTER)\r
+# define IRMP_PORT_RCC CONCAT(RCC_GPIO, IRMP_PORT_LETTER)\r
+\r
+# define IRMP_BIT CONCAT(GPIO, IRMP_BIT_NUMBER)\r
+# define IRMP_PIN IRMP_PORT // for use with input(x) below\r
+# define input(x) ((GPIO_IDR(x) & IRMP_BIT) != 0)\r
+\r