diff options
Diffstat (limited to 'irmp.c')
-rw-r--r-- | irmp.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -2189,14 +2189,12 @@ irmp_init (void) # endif
GPIO_Init(IRMP_PORT, &GPIO_InitStructure);
-#elif defined (ARM_OPENCM3) // STM32 with libopencm3
+#elif defined (LIBOPENCM3) // STM32 with libopencm3
/* GPIOx clock enable */
rcc_periph_clock_enable(IRMP_PORT_RCC);
-
/* GPIO Configuration */
- gpio_set_mode(IRMP_PORT, GPIO_MODE_INPUT,
- GPIO_CNF_INPUT_FLOAT, 1<<IRMP_BIT);
+ gpio_set_mode(IRMP_PORT, GPIO_MODE_INPUT, GPIO_CNF_INPUT_FLOAT, IRMP_BIT);
#elif defined(STELLARIS_ARM_CORTEX_M4)
// Enable the GPIO port
|