From: rtel Date: Mon, 10 Feb 2014 14:21:17 +0000 (+0000) Subject: Third attempt: Improve how TimerDemo.c manages differences between the tick count... X-Git-Tag: V8.0.0~23 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=03fecc3ba184066af6d6898b52518104e73acb42;p=freertos Third attempt: Improve how TimerDemo.c manages differences between the tick count and its own internal tick count, which can temporarily differ when the tick hook is called while the scheduler is suspended. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2195 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/FreeRTOS/Demo/Common/Minimal/TimerDemo.c b/FreeRTOS/Demo/Common/Minimal/TimerDemo.c index c4f2ba6bd..35af89bb2 100644 --- a/FreeRTOS/Demo/Common/Minimal/TimerDemo.c +++ b/FreeRTOS/Demo/Common/Minimal/TimerDemo.c @@ -737,9 +737,9 @@ static portTickType uxTick = ( portTickType ) -1; will expire when the kernel's tick count is (100 + xBasePeriod). For this reason xMargin is used as an allowable margin for premature timer expiries as well as late timer expiries. */ - const portTickType xMargin = 5; + const portTickType xMargin = 6; #else - const portTickType xMargin = 2; + const portTickType xMargin = 3; #endif