From d4ca65f22f6c4b919b0ceca95026688f0fd2795c Mon Sep 17 00:00:00 2001 From: Richard Barry Date: Mon, 10 Feb 2014 14:21:17 +0000 Subject: [PATCH] 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. --- FreeRTOS/Demo/Common/Minimal/TimerDemo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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