We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8cc6d6c + efe4600 commit eaf6f81Copy full SHA for eaf6f81
TESTS/mbed_hal/flash/functional_tests/main.cpp
@@ -27,8 +27,8 @@
27
28
using namespace utest::v1;
29
30
-#define TEST_CYCLES 1000000
31
-#define ALLOWED_DRIFT_PPM 5000 //0.5%
+#define TEST_CYCLES 10000000
+#define ALLOWED_DRIFT_PPM (1000000/5000) //0.5%
32
33
/*
34
return values to be checked are documented at:
@@ -269,7 +269,7 @@ void flash_buffer_alignment_test()
269
void flash_clock_and_cache_test()
270
{
271
const int timer_diff_end = time_cpu_cycles(TEST_CYCLES);
272
- const int acceptable_range = timer_diff_start / (1000000 / ALLOWED_DRIFT_PPM);
+ const int acceptable_range = timer_diff_start / (ALLOWED_DRIFT_PPM);
273
TEST_ASSERT_UINT32_WITHIN(acceptable_range, timer_diff_start, timer_diff_end);
274
}
275
0 commit comments