Fixes in VT_Storm.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14746 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2021-09-08 10:06:59 +00:00
parent 4f526178e1
commit e8839e38c2
2 changed files with 5 additions and 5 deletions

View File

@ -575,7 +575,7 @@
* @note The default is @p FALSE.
*/
#if !defined(CH_DBG_ENABLE_CHECKS)
#define CH_DBG_ENABLE_CHECKS FALSE
#define CH_DBG_ENABLE_CHECKS TRUE
#endif
/**
@ -587,7 +587,7 @@
* @note The default is @p FALSE.
*/
#if !defined(CH_DBG_ENABLE_ASSERTS)
#define CH_DBG_ENABLE_ASSERTS FALSE
#define CH_DBG_ENABLE_ASSERTS TRUE
#endif
/**

View File

@ -285,7 +285,7 @@ void vt_storm_execute(const vt_storm_config_t *cfg) {
/* Starting continuous timer.*/
vtcus = 0;
delay = TIME_US2I(128);
delay = TIME_MS2I(5);
saturated = false;
delta_warning = false;
do {
@ -300,7 +300,7 @@ void vt_storm_execute(const vt_storm_config_t *cfg) {
chVTSetI(&sweeperm3, delay - 3, sweeperm3_cb, NULL);
chVTSetI(&sweeperp3, delay + 3, sweeperp3_cb, NULL);
chVTSetI(&wrapper, (sysinterval_t) - 1, wrapper_cb, NULL);
chVTSetContinuousI(&continuous, TIME_US2I(50), continuous_cb, NULL);
chVTSetContinuousI(&continuous, CH_CFG_ST_TIMEDELTA * 10, continuous_cb, NULL);
chVTSetI(&guard0, TIME_MS2I(250) + (CH_CFG_TIME_QUANTUM / 2), guard_cb, NULL);
chVTSetI(&guard1, TIME_MS2I(250) + (CH_CFG_TIME_QUANTUM - 1), guard_cb, NULL);
chVTSetI(&guard2, TIME_MS2I(250) + (CH_CFG_TIME_QUANTUM + 1), guard_cb, NULL);
@ -344,7 +344,7 @@ void vt_storm_execute(const vt_storm_config_t *cfg) {
// if (delay >= TIME_US2I(1)) {
// delay -= TIME_US2I(1);
// }
decrease = delay / (sysinterval_t)64;
decrease = delay / (sysinterval_t)32;
if (decrease == (sysinterval_t)0) {
decrease = (sysinterval_t)1;
}