test/timer: adjust min timer period to 250 us

In the context of #5138, the timer drivers for NOVA and base-hw had been
changed to support timeouts at a precision of 250 us (from formerly 1 ms).
Adjust the test to the new expected lower bound.
This commit is contained in:
Norman Feske 2024-03-15 12:39:21 +01:00 committed by Christian Helmuth
parent 956ec2f84c
commit 5b4e1d22d9

View File

@ -92,7 +92,7 @@ struct Stress_test
struct Slave
{
static constexpr int DURATION_US = DURATION_SEC * 1000 * 1000;
static constexpr int MIN_TIMER_PERIOD_US = 1000;
static constexpr int MIN_TIMER_PERIOD_US = 250;
static constexpr int MAX_CNT_BASE = DURATION_US / MIN_TIMER_PERIOD_US;
static constexpr int MAX_CNT_TOLERANCE = MAX_CNT_BASE / 9;
static constexpr int MAX_CNT = MAX_CNT_BASE + MAX_CNT_TOLERANCE;