-
Notifications
You must be signed in to change notification settings - Fork 792
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sival] Add sysrst_ctrl_in_irq_test test
This tests follows the DV flow with two modifications: to avoid the various stages interfering with each other, add a sync step at the end of each stage so the host does not move forward until after the device code has seen and disabled the interrupt. The second problem is that on real device, the interrupt could occur between the phase change and the call to `wait_for_interrupt`. If that's the case, `wait_for_interrupt` will block forever. Modify the code so that the safely checks if the interrupt has already been handled before calling WFI. Signed-off-by: Amaury Pouly <[email protected]>
- Loading branch information
Showing
4 changed files
with
303 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.