]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_A9_Zynq_ZC702/RTOSDemo/src/Full_Demo/main_full.c
Update version number ready for next release.
[freertos] / FreeRTOS / Demo / CORTEX_A9_Zynq_ZC702 / RTOSDemo / src / Full_Demo / main_full.c
index 5e25957f6825255c04afbdf2735edff8eafedddc..9c13342698e65fcd96b2fad33ac990e2ffe97790 100644 (file)
@@ -1,6 +1,6 @@
 /*\r
- * FreeRTOS Kernel V10.0.1\r
- * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
+ * FreeRTOS Kernel V10.2.1\r
+ * Copyright (C) 2019 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
 #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
@@ -149,6 +153,9 @@ purpose of ensuring parameters are passed into tasks correctly. */
 /* 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
@@ -221,6 +228,10 @@ void main_full( void )
        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
@@ -372,17 +383,37 @@ unsigned long ulErrorFound = pdFALSE;
                        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