]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/Common/Minimal/StaticAllocation.c
Update version number ready for next release.
[freertos] / FreeRTOS / Demo / Common / Minimal / StaticAllocation.c
index 4c0a0b856701a38d54c122f94efa9d8aa34378d0..32e6777314a885bacf0b6be60a9af187b8c0e74e 100644 (file)
@@ -1,6 +1,6 @@
 /*\r
- * FreeRTOS Kernel V10.0.0\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
@@ -10,8 +10,7 @@
  * subject to the following conditions:\r
  *\r
  * The above copyright notice and this permission notice shall be included in all\r
- * copies or substantial portions of the Software. If you wish to use our Amazon\r
- * FreeRTOS name, please do so in a fair use way that does not cause confusion.\r
+ * copies or substantial portions of the Software.\r
  *\r
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\r
@@ -696,8 +695,7 @@ StaticEventGroup_t xEventGroupBuffer;
        /* Create the event group.  xEventGroupCreateStatic() has an extra parameter\r
        than the normal xEventGroupCreate() API function.  The parameter is a\r
        pointer to the StaticEventGroup_t structure that will hold the event group\r
-       structure.  If the parameter is passed as NULL then the structure will be\r
-       allocated dynamically, just as if xEventGroupCreate() had been called. */\r
+       structure. */\r
        xEventGroup = xEventGroupCreateStatic( &xEventGroupBuffer );\r
 \r
        /* The event group handle should equal the static event group structure\r
@@ -731,7 +729,9 @@ TaskHandle_t xCreatedTask;
 \r
 /* The variable that will hold the TCB of tasks created by this function.  See\r
 the comments above the declaration of the xCreatorTaskTCBBuffer variable for\r
-more information. */\r
+more information.  NOTE:  This is not static so relies on the tasks that use it\r
+being deleted before this function returns and deallocates its stack.  That will\r
+only be the case if configUSE_PREEMPTION is set to 1. */\r
 StaticTask_t xTCBBuffer;\r
 \r
 /* This buffer that will be used as the stack of tasks created by this function.\r