/* 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
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