Question
X-CUBE-IRREMOTE
Posted on December 05, 2016 at 19:29
i m used the Firmware package ' X-CUBE-IRREMOTE' to implement receivers for infrared remote control protocols
using STM32F407 bord, so i m trying to make chage the library rc_decode.cand i make this change, but he doesnt works.#define IR_TIM TIM1 /*!< Timer used for IR decoding */
#define TIM_PRESCALER ((uint32_t)41) /*!< TIM prescaler */#define IR_TIM_CLK __HAL_RCC_TIM1_CLK_ENABLE /*!< Clock of the used timer */#define IR_TIM_IRQn TIM1_CC_IRQn /*!< IR TIM IRQ */#define IR_TIM_DEC_CHANNEL_A TIM_CHANNEL_1 /*!< IR TIM Channel */#define IR_TIM_DEC_CHANNEL_B TIM_CHANNEL_2 /*!< IR TIM Complementary channel */#define IR_TIM_DEC_CH_ACTIV_A HAL_TIM_ACTIVE_CHANNEL_1#define IR_TIM_DEC_CH_ACTIV_B HAL_TIM_ACTIVE_CHANNEL_2#define IR_TIM_DEC_TRIGGER TIM_TS_TI1FP1#define IR_GPIO_PORT GPIOE /*!< Port which IR input is connected */
#define IR_GPIO_PORT_CLK __HAL_RCC_GPIOE_CLK_ENABLE /*!< IR pin GPIO Clock Port */
#define IR_GPIO_PIN GPIO_PIN_9 /*!< Pin which IR is connected */#define IR_GPIO_AF_TR GPIO_AF0_IR#define IR_GPIO_AF_REC GPIO_AF1_TIM1please, anyone can help me !!!!!
