2016-12-05 10:29 AM
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 !!!!!
2016-12-05 11:17 AM
It is designed for the L4 not F4 parts, are you sure it can be modified?
http://www.st.com/en/embedded-software/x-cube-irremote.html
Perhaps you should look at the signals and processing you can use more generically, and how those can be applied to the STM32 timers and hardware.
2016-12-07 06:44 AM
what should i do , if you can help me !!!!