From 5fc8743cc8e3de6f3e63b05d0c7970dca7e2a1be Mon Sep 17 00:00:00 2001 From: richardbarry Date: Tue, 12 Apr 2011 13:47:09 +0000 Subject: [PATCH] Alter the default priorities in blocktim.c to prevent asserts being triggered when configMAX_PRIORITIES is set to a low number. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1353 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- Demo/Common/Minimal/blocktim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Demo/Common/Minimal/blocktim.c b/Demo/Common/Minimal/blocktim.c index 39c03bd02..0ced88592 100644 --- a/Demo/Common/Minimal/blocktim.c +++ b/Demo/Common/Minimal/blocktim.c @@ -67,11 +67,11 @@ /* Task priorities. Allow these to be overridden. */ #ifndef bktPRIMARY_PRIORITY - #define bktPRIMARY_PRIORITY ( 3 ) + #define bktPRIMARY_PRIORITY ( configMAX_PRIORITIES - 3 ) #endif #ifndef bktSECONDARY_PRIORITY - #define bktSECONDARY_PRIORITY ( 2 ) + #define bktSECONDARY_PRIORITY ( configMAX_PRIORITIES - 4 ) #endif /* Task behaviour. */ -- 2.39.5