diff options
author | Leo C | 2017-04-30 12:42:38 +0200 |
---|---|---|
committer | Leo C | 2017-04-30 12:42:38 +0200 |
commit | a8915151dc5ddd5342d4b8db48a563abf4369891 (patch) | |
tree | 3f3d9f6937c124bfa02c3bf47886df1b30ed526a /irmp.c | |
parent | 13c24737d1698d551d20baa74681021dc2c0c359 (diff) | |
download | irmp-a8915151dc5ddd5342d4b8db48a563abf4369891.zip |
Rename ARM_OPENCM3 -> LIBOPENCM3, redefine IRMP_BIT as bitmask
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
|