#include "IntSemTest.h"\r
#include "StaticAllocation.h"\r
#include "AbortDelay.h"\r
+#include "MessageBufferDemo.h"\r
+#include "StreamBufferDemo.h"\r
+#include "StreamBufferInterrupt.h"\r
+#include "MessageBufferAMP.h"\r
\r
\r
/* Priorities for the demo application tasks. */\r
/* The base period used by the timer test tasks. */\r
#define mainTIMER_TEST_PERIOD ( 50 )\r
\r
+/* Base stack size of tasks created in the message buffer demos. */\r
+#define mainMESSAGE_BUFFER_STACK_SIZE ( configMINIMAL_STACK_SIZE * 2 )\r
+\r
/*-----------------------------------------------------------*/\r
\r
\r
vStartInterruptSemaphoreTasks();\r
vStartStaticallyAllocatedTasks();\r
vCreateAbortDelayTasks();\r
+ vStartMessageBufferTasks( mainMESSAGE_BUFFER_STACK_SIZE );\r
+ vStartStreamBufferTasks();\r
+ vStartStreamBufferInterruptDemo();\r
+ vStartMessageBufferAMPTasks( mainMESSAGE_BUFFER_STACK_SIZE );\r
\r
/* Start the tasks that implements the command console on the UART, as\r
described above. */\r
ulErrorFound |= 1UL << 16UL;\r
}\r
\r
+ if( xAreStreamBufferTasksStillRunning() != pdTRUE )\r
+ {\r
+ ulErrorFound |= 1UL << 17UL;\r
+ }\r
+\r
+ if( xAreMessageBufferTasksStillRunning() != pdTRUE )\r
+ {\r
+ ulErrorFound |= 1UL << 18UL;\r
+ }\r
+\r
+ if( xIsInterruptStreamBufferDemoStillRunning() != pdPASS )\r
+ {\r
+ ulErrorFound |= 1UL << 19UL;\r
+ }\r
+\r
+ if( xAreMessageBufferAMPTasksStillRunning() != pdPASS )\r
+ {\r
+ ulErrorFound |= 1UL << 20UL;\r
+ }\r
+\r
/* Check that the register test 1 task is still running. */\r
if( ulLastRegTest1Value == ulRegTest1LoopCounter )\r
{\r
- ulErrorFound |= 1UL << 17UL;\r
+ ulErrorFound |= 1UL << 21UL;\r
}\r
ulLastRegTest1Value = ulRegTest1LoopCounter;\r
\r
/* Check that the register test 2 task is still running. */\r
if( ulLastRegTest2Value == ulRegTest2LoopCounter )\r
{\r
- ulErrorFound |= 1UL << 18UL;\r
+ ulErrorFound |= 1UL << 22UL;\r
}\r
ulLastRegTest2Value = ulRegTest2LoopCounter;\r
\r