From 03fecc3ba184066af6d6898b52518104e73acb42 Mon Sep 17 00:00:00 2001 From: rtel 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. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2195 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- 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 -- 2.39.5