summaryrefslogtreecommitdiff
path: root/irmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'irmp.c')
-rw-r--r--irmp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/irmp.c b/irmp.c
index f95410b..c37449c 100644
--- a/irmp.c
+++ b/irmp.c
@@ -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