From a8915151dc5ddd5342d4b8db48a563abf4369891 Mon Sep 17 00:00:00 2001 From: Leo C Date: Sun, 30 Apr 2017 12:42:38 +0200 Subject: Rename ARM_OPENCM3 -> LIBOPENCM3, redefine IRMP_BIT as bitmask --- irmp.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'irmp.h') diff --git a/irmp.h b/irmp.h index 3efc62c..c0b3c18 100644 --- a/irmp.h +++ b/irmp.h @@ -63,17 +63,15 @@ # warning The STM32 port of IRMP uses the ST standard peripheral drivers which are not enabled in your build configuration. # endif -#elif defined (ARM_OPENCM3) +#elif defined (LIBOPENCM3) # define _CONCAT(a,b) a##b # define CONCAT(a,b) _CONCAT(a,b) # define IRMP_PORT CONCAT(GPIO, IRMP_PORT_LETTER) -# define IRMP_PORT_RCC CONCAT(RCC_GPIO, IRMP_PORT_LETTER) +# define IRMP_PORT_RCC CONCAT(RCC_GPIO, IRMP_PORT_LETTER) -# define IRMP_BIT IRMP_BIT_NUMBER +# define IRMP_BIT CONCAT(GPIO, IRMP_BIT_NUMBER) # define IRMP_PIN IRMP_PORT // for use with input(x) below -# define input(x) ((GPIO_IDR(IRMP_PORT) & (1<