# endif\r
GPIO_Init(IRMP_PORT, &GPIO_InitStructure);\r
\r
+#elif defined (LIBOPENCM3) // STM32 with libopencm3\r
+\r
+ /* GPIOx clock enable */\r
+ rcc_periph_clock_enable(IRMP_PORT_RCC);\r
+ /* GPIO Configuration */\r
+ gpio_set_mode(IRMP_PORT, GPIO_MODE_INPUT, GPIO_CNF_INPUT_FLOAT, IRMP_BIT);\r
+\r
#elif defined(STELLARIS_ARM_CORTEX_M4)\r
// Enable the GPIO port\r
ROM_SysCtlPeripheralEnable(IRMP_PORT_PERIPH);\r