Improved test accuracy.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14859 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2021-10-01 10:56:44 +00:00
parent 379c8bbc62
commit 751f68f42f
1 changed files with 2 additions and 2 deletions

View File

@ -266,14 +266,14 @@ void fpu_storm_execute(const fpu_storm_config_t *cfg) {
/* Timer intervals starting at 2mS then decreased by 10% after each
cycle.*/
for (interval = 2000; interval >= 2; interval -= (interval + 9) / 10) {
for (interval = 2000; interval >= 2; interval -= (interval + 49) / 50) {
/* Timers programmed slightly out of phase each other.*/
gptStartContinuous(cfg->gpt1p, interval - 1); /* Slightly out of phase.*/
gptStartContinuous(cfg->gpt2p, interval + 1); /* Slightly out of phase.*/
/* Storming for one second.*/
chThdSleepMilliseconds(1000);
chThdSleepMilliseconds(250);
/* Timers stopped.*/
gptStopTimer(cfg->gpt1p);