X-Git-Url: https://git.sur5r.net/?p=freertos;a=blobdiff_plain;f=FreeRTOS%2FDemo%2FCommon%2FMinimal%2Fblocktim.c;fp=FreeRTOS%2FDemo%2FCommon%2FMinimal%2Fblocktim.c;h=44dd2208e0846f64764d319ffbb1f735f03e7ac1;hp=5b25d8c73af9317a859719179306f4ffb067992d;hb=81ce0b247d9688f08262b3d919866a57abeffd5f;hpb=c169acdf9cfed633c700f415aadbd4f87700d657 diff --git a/FreeRTOS/Demo/Common/Minimal/blocktim.c b/FreeRTOS/Demo/Common/Minimal/blocktim.c index 5b25d8c73..44dd2208e 100644 --- a/FreeRTOS/Demo/Common/Minimal/blocktim.c +++ b/FreeRTOS/Demo/Common/Minimal/blocktim.c @@ -39,7 +39,7 @@ /* Demo includes. */ #include "blocktim.h" -/* Task priorities. Allow these to be overridden. */ +/* Task priorities and stack sizes. Allow these to be overridden. */ #ifndef bktPRIMARY_PRIORITY #define bktPRIMARY_PRIORITY ( configMAX_PRIORITIES - 3 ) #endif @@ -48,6 +48,10 @@ #define bktSECONDARY_PRIORITY ( configMAX_PRIORITIES - 4 ) #endif +#ifndef bktBLOCK_TIME_TASK_STACK_SIZE + #define bktBLOCK_TIME_TASK_STACK_SIZE configMINIMAL_STACK_SIZE +#endif + /* Task behaviour. */ #define bktQUEUE_LENGTH ( 5 ) #define bktSHORT_WAIT pdMS_TO_TICKS( ( TickType_t ) 20 ) @@ -111,8 +115,8 @@ void vCreateBlockTimeTasks( void ) vQueueAddToRegistry( xTestQueue, "Block_Time_Queue" ); /* Create the two test tasks. */ - xTaskCreate( vPrimaryBlockTimeTestTask, "BTest1", configMINIMAL_STACK_SIZE, NULL, bktPRIMARY_PRIORITY, NULL ); - xTaskCreate( vSecondaryBlockTimeTestTask, "BTest2", configMINIMAL_STACK_SIZE, NULL, bktSECONDARY_PRIORITY, &xSecondary ); + xTaskCreate( vPrimaryBlockTimeTestTask, "BTest1", bktBLOCK_TIME_TASK_STACK_SIZE, NULL, bktPRIMARY_PRIORITY, NULL ); + xTaskCreate( vSecondaryBlockTimeTestTask, "BTest2", bktBLOCK_TIME_TASK_STACK_SIZE, NULL, bktSECONDARY_PRIORITY, &xSecondary ); } } /*-----------------------------------------------------------*/