Skip to main content
ilyesfraj
Associate
December 5, 2016
Question

X-CUBE-IRREMOTE

  • December 5, 2016
  • 2 replies
  • 761 views
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.c

and 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_TIM1

please, anyone can help me !!!!!

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    December 5, 2016
    Posted on December 05, 2016 at 20:17

    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.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    ilyesfraj
    ilyesfrajAuthor
    Associate
    December 7, 2016
    Posted on December 07, 2016 at 14:44

    what should i do , if you can help me   !!!!