Skip to main content
Raider E
Associate III
April 20, 2017
Question

how can i read rising pr falling edge status in timer

  • April 20, 2017
  • 1 reply
  • 648 views
Posted on April 20, 2017 at 08:39

Hi everyone,

I have setup a timer in an input capture mode on both edges(rising and falling) and just would like to know when the interrupt is triggered wether its a rising edge or a falling edge. any hal library macro to do this ?

many thanks

    This topic has been closed for replies.

    1 reply

    waclawek.jan
    Super User
    April 20, 2017
    Posted on April 20, 2017 at 09:11

    No hardware for this, thus no macro.

    You can of course always read the current state of the pin from GPIO_IDR.

    JW