Skip to content

Commit

Permalink
[sival,alert] Add correct delay for silicon to lpg_sleep_mode_pings test
Browse files Browse the repository at this point in the history
Signed-off-by: James Wainwright <[email protected]>
  • Loading branch information
jwnrt committed May 7, 2024
1 parent 6c5b3c9 commit b22c914
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sw/device/tests/alert_handler_lpg_sleep_mode_pings.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ void wait_enough_for_alert_ping(void) {
// 2*4*(2**16)*(400ns) = 0.2s
busy_spin_micros(1000 * 200);
break;
case kDeviceSilicon:
// 2*margin_of_safety*(2**DW)*(1/kClockFreqPeripheralHz)
// 2*4*(2**16)*(42ns) = 22ms
busy_spin_micros(1000 * 22);
break;
case kDeviceSimDV:
// NUM_ALERTS*2*margin_of_safety*(2**DW)*(1/kClockFreqPeripheralHz)
// 2*4*(2**3)*(40ns) = 3us
Expand Down

0 comments on commit b22c914

Please sign in to comment.