summaryrefslogtreecommitdiff
path: root/irmp.c
diff options
context:
space:
mode:
authorLeo C2017-04-30 12:42:38 +0200
committerLeo C2017-04-30 12:42:38 +0200
commita8915151dc5ddd5342d4b8db48a563abf4369891 (patch)
tree3f3d9f6937c124bfa02c3bf47886df1b30ed526a /irmp.c
parent13c24737d1698d551d20baa74681021dc2c0c359 (diff)
downloadirmp-a8915151dc5ddd5342d4b8db48a563abf4369891.zip
Rename ARM_OPENCM3 -> LIBOPENCM3, redefine IRMP_BIT as bitmask
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