Timer Interrupt Reason/Flags
revilo196 opened this issue · comments
Hi,
If having multiple Interrupts active on a Timer, like Update and multiple Channels, is there a way to check which interrupt(s) are active once inside the Interrupt function.
I want to trigger different actions on different Channels of a timer.
Is there anything i've overlooked? I can't find any function to get this information.
Try my_timer.regs.sr().read().bits()
, and see which flags are set. Or my_timer.regs.sr().read().uif.bit_is_set()
etc on a specific flag.
Note: Most periphs have a read_status()
method to simplify this, but it's missing on Timer; adding for future version.
Closing due to inactivity, and likely solution.