/*\r
- * FreeRTOS Kernel V10.1.0\r
- * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\r
+ * FreeRTOS Kernel V10.3.0\r
+ * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.\r
*\r
* Permission is hereby granted, free of charge, to any person obtaining a copy of\r
* this software and associated documentation files (the "Software"), to deal in\r
/* 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
high as to disrupt the timer tests. */\r
vTaskPrioritySet( NULL, configTIMER_TASK_PRIORITY - 1 );\r
\r
- /* Crude check to too that vTaskDelay() blocks for the expected period. */\r
+ /* Crude check to too see that vTaskDelay() blocks for the expected\r
+ period. */\r
xPreTime = xTaskGetTickCount();\r
vTaskDelay( bktTIME_TO_BLOCK );\r
xPostTime = xTaskGetTickCount();\r