Skip to content

Commit

Permalink
Fix chip_sw_sensor_ctrl_ast_alerts for SiVal silicon
Browse files Browse the repository at this point in the history
Clear prior events to start from a clean slate and prevent the test from
failing.

Signed-off-by: Luís Marques <[email protected]>
  • Loading branch information
Luís Marques authored and engdoreis committed May 28, 2024
1 parent 124c1a1 commit 947a46f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sw/device/tests/sensor_ctrl_wakeup_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ bool test_main(void) {
dif_pwrmgr_domain_config_t sleep_config =
kDifPwrmgrDomainOptionMainPowerInLowPower;

// Clear any prior events before we start the test
for (size_t i = 0; i < sensor_ctrl_events; ++i) {
CHECK_DIF_OK(dif_sensor_ctrl_clear_recov_event(&sensor_ctrl, i));
}

for (size_t i = 0; i < sensor_ctrl_events; ++i) {
LOG_INFO("Testing sensor_ctrl event %d", i);

Expand Down

0 comments on commit 947a46f

Please sign in to comment.