/*\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
* 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
/* 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
\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