]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/include/task.h
Final V8.2.1 release ready for tagging:
[freertos] / FreeRTOS / Source / include / task.h
index 0377ef95b063f4c3d33a8310ee3463f8f01a1d9f..672769a9090a56dec89edafd59afe5ca409ad7aa 100644 (file)
@@ -1462,13 +1462,19 @@ void vTaskGetRunTimeStats( char *pcWriteBuffer ) PRIVILEGED_FUNCTION; /*lint !e9
  *     updated.  ulValue is not used and xTaskNotify() always returns pdPASS in\r
  *     this case.\r
  *\r
+ *  pulPreviousNotificationValue -\r
+ *  Can be used to pass out the subject task's notification value before any\r
+ *  bits are modified by the notify function.\r
+ *\r
  * @return Dependent on the value of eAction.  See the description of the\r
  * eAction parameter.\r
  *\r
  * \defgroup xTaskNotify xTaskNotify\r
  * \ingroup TaskNotifications\r
  */\r
-BaseType_t xTaskNotify( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction );\r
+BaseType_t xTaskGenericNotify( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue );\r
+#define xTaskNotify( xTaskToNotify, ulValue, eAction ) xTaskGenericNotify( ( xTaskToNotify ), ( ulValue ), ( eAction ), NULL )\r
+#define xTaskNotifyAndQuery( xTaskToNotify, ulValue, eAction, pulPreviousNotifyValue ) xTaskGenericNotify( ( xTaskToNotify ), ( ulValue ), ( eAction ), ( pulPreviousNotifyValue ) )\r
 \r
 /**\r
  * task. h\r