git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14753 27425a3e-05d8-49a3-a47f-9c15f0e5edd8

This commit is contained in:
Giovanni Di Sirio 2021-09-13 08:04:50 +00:00
parent da74d65fbf
commit 3e1a035470
2 changed files with 12 additions and 3 deletions

View File

@ -100,7 +100,7 @@
* this value.
*/
#if !defined(CH_CFG_ST_TIMEDELTA)
#define CH_CFG_ST_TIMEDELTA 20
#define CH_CFG_ST_TIMEDELTA 12
#endif
/** @} */
@ -575,7 +575,7 @@
* @note The default is @p FALSE.
*/
#if !defined(CH_DBG_ENABLE_CHECKS)
#define CH_DBG_ENABLE_CHECKS TRUE
#define CH_DBG_ENABLE_CHECKS FALSE
#endif
/**
@ -587,7 +587,7 @@
* @note The default is @p FALSE.
*/
#if !defined(CH_DBG_ENABLE_ASSERTS)
#define CH_DBG_ENABLE_ASSERTS TRUE
#define CH_DBG_ENABLE_ASSERTS FALSE
#endif
/**

View File

@ -232,6 +232,7 @@ static void guard_cb(virtual_timer_t *vtp, void *p) {
*/
void vt_storm_execute(const vt_storm_config_t *cfg) {
unsigned i;
sysinterval_t periodic;
config = cfg;
@ -275,6 +276,14 @@ void vt_storm_execute(const vt_storm_config_t *cfg) {
gptStartContinuous(cfg->gpt2p, 101);
#endif
/* Interval for the periodic timer, note that slow systicks would
result in a period of 1, which is not acceptable, increasing it
to two.*/
periodic = TIME_US2I(50);
if (periodic < (sysinterval_t)2) {
periodic = (sysinterval_t)2;
}
for (i = 1; i <= VT_STORM_CFG_ITERATIONS; i++) {
bool warning;