]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/Common/Minimal/MessageBufferAMP.c
Add the option to specify a stack size in the standard demo MessageBuffer tests.
[freertos] / FreeRTOS / Demo / Common / Minimal / MessageBufferAMP.c
index dd7a209c79da225dd50349fcd7f2167543bb44c5..2fa8ed0bae9026ccd363a113187cf4abd1de2f3d 100644 (file)
@@ -126,18 +126,18 @@ BaseType_t xDemoStatus = pdPASS;
 \r
 /*-----------------------------------------------------------*/\r
 \r
-void vStartMessageBufferAMPTasks( void )\r
+void vStartMessageBufferAMPTasks( configSTACK_DEPTH_TYPE xStackSize )\r
 {\r
 BaseType_t x;\r
 \r
        xControlMessageBuffer = xMessageBufferCreate( mbaCONTROL_MESSAGE_BUFFER_SIZE );\r
 \r
-       xTaskCreate( prvCoreATask,                              /* The function that implements the task. */\r
-                                "AMPCoreA",                            /* Human readable name for the task. */\r
-                                configMINIMAL_STACK_SIZE,      /* Stack size (in words!). */\r
-                                NULL,                                          /* Task parameter is not used. */\r
-                                tskIDLE_PRIORITY,                      /* The priority at which the task is created. */\r
-                                NULL );                                        /* No use for the task handle. */\r
+       xTaskCreate( prvCoreATask,              /* The function that implements the task. */\r
+                                "AMPCoreA",            /* Human readable name for the task. */\r
+                                xStackSize,            /* Stack size (in words!). */\r
+                                NULL,                          /* Task parameter is not used. */\r
+                                tskIDLE_PRIORITY,      /* The priority at which the task is created. */\r
+                                NULL );                        /* No use for the task handle. */\r
 \r
        for( x = 0; x < mbaNUMBER_OF_CORE_B_TASKS; x++ )\r
        {\r
@@ -149,7 +149,7 @@ BaseType_t x;
                ulCycleCounters and xCoreBMessageBuffers arrays. */\r
                xTaskCreate( prvCoreBTasks,\r
                                         "AMPCoreB1",\r
-                                        configMINIMAL_STACK_SIZE,\r
+                                        xStackSize,\r
                                         ( void * ) x,\r
                                         tskIDLE_PRIORITY + 1,\r
                                         NULL );\r