From: richardbarry Date: Tue, 12 Apr 2011 13:47:09 +0000 (+0000) Subject: Alter the default priorities in blocktim.c to prevent asserts being triggered when... X-Git-Tag: V7.0.1~71 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5fc8743cc8e3de6f3e63b05d0c7970dca7e2a1be;p=freertos 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 --- 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. */