The purpose of this PR is:
Let the callback execute after the interrupt status has cleared. Because if the callback is executed before the interrupt status is cleared, it might cause subsequent counter interrupts to fail to trigger due to the callback function taking too long to execute.
This change has been verified on the adp_xc7k/ae350 board.
The purpose of this PR is: Let the callback execute after the interrupt status has cleared. Because if the callback is executed before the interrupt status is cleared, it might cause subsequent counter interrupts to fail to trigger due to the callback function taking too long to execute. This change has been verified on the adp_xc7k/ae350 board.