]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/Common/Minimal/blocktim.c
Allow the size of the stack used by many of the standard demo/test tasks to be overri...
[freertos] / FreeRTOS / Demo / Common / Minimal / blocktim.c
index 5b25d8c73af9317a859719179306f4ffb067992d..44dd2208e0846f64764d319ffbb1f735f03e7ac1 100644 (file)
@@ -39,7 +39,7 @@
 /* Demo includes. */\r
 #include "blocktim.h"\r
 \r
-/* Task priorities.  Allow these to be overridden. */\r
+/* Task priorities and stack sizes.  Allow these to be overridden. */\r
 #ifndef bktPRIMARY_PRIORITY\r
        #define bktPRIMARY_PRIORITY             ( configMAX_PRIORITIES - 3 )\r
 #endif\r
        #define bktSECONDARY_PRIORITY   ( configMAX_PRIORITIES - 4 )\r
 #endif\r
 \r
+#ifndef bktBLOCK_TIME_TASK_STACK_SIZE\r
+       #define bktBLOCK_TIME_TASK_STACK_SIZE configMINIMAL_STACK_SIZE\r
+#endif\r
+\r
 /* Task behaviour. */\r
 #define bktQUEUE_LENGTH                                ( 5 )\r
 #define bktSHORT_WAIT                          pdMS_TO_TICKS( ( TickType_t ) 20 )\r
@@ -111,8 +115,8 @@ void vCreateBlockTimeTasks( void )
                vQueueAddToRegistry( xTestQueue, "Block_Time_Queue" );\r
 \r
                /* Create the two test tasks. */\r
-               xTaskCreate( vPrimaryBlockTimeTestTask, "BTest1", configMINIMAL_STACK_SIZE, NULL, bktPRIMARY_PRIORITY, NULL );\r
-               xTaskCreate( vSecondaryBlockTimeTestTask, "BTest2", configMINIMAL_STACK_SIZE, NULL, bktSECONDARY_PRIORITY, &xSecondary );\r
+               xTaskCreate( vPrimaryBlockTimeTestTask, "BTest1", bktBLOCK_TIME_TASK_STACK_SIZE, NULL, bktPRIMARY_PRIORITY, NULL );\r
+               xTaskCreate( vSecondaryBlockTimeTestTask, "BTest2", bktBLOCK_TIME_TASK_STACK_SIZE, NULL, bktSECONDARY_PRIORITY, &xSecondary );\r
        }\r
 }\r
 /*-----------------------------------------------------------*/\r