]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/include/message_buffer.h
Correct code comments that referred to taskYIELD_FROM_ISR to portYIELD_FROM_ISR.
[freertos] / FreeRTOS / Source / include / message_buffer.h
index 9ee3f4d54b1ed0e1aebc51a5c4c9645ff77da92b..745f0b6135fa12dae51f1acb1d16c75cfe9ed7af 100644 (file)
 #ifndef FREERTOS_MESSAGE_BUFFER_H\r
 #define FREERTOS_MESSAGE_BUFFER_H\r
 \r
+#ifndef INC_FREERTOS_H\r
+       #error "include FreeRTOS.h must appear in source files before include message_buffer.h"\r
+#endif\r
+\r
 /* Message buffers are built onto of stream buffers. */\r
 #include "stream_buffer.h"\r
 \r
@@ -395,10 +399,10 @@ BaseType_t xHigherPriorityTaskWoken = pdFALSE; // Initialised to pdFALSE.
     // priority of the currently executing task was unblocked and a context\r
     // switch should be performed to ensure the ISR returns to the unblocked\r
     // task.  In most FreeRTOS ports this is done by simply passing\r
-    // xHigherPriorityTaskWoken into taskYIELD_FROM_ISR(), which will test the\r
+    // xHigherPriorityTaskWoken into portYIELD_FROM_ISR(), which will test the\r
     // variables value, and perform the context switch if necessary.  Check the\r
     // documentation for the port in use for port specific instructions.\r
-    taskYIELD_FROM_ISR( xHigherPriorityTaskWoken );\r
+    portYIELD_FROM_ISR( xHigherPriorityTaskWoken );\r
 }\r
 </pre>\r
  * \defgroup xMessageBufferSendFromISR xMessageBufferSendFromISR\r
@@ -584,10 +588,10 @@ BaseType_t xHigherPriorityTaskWoken = pdFALSE;  // Initialised to pdFALSE.
     // priority of the currently executing task was unblocked and a context\r
     // switch should be performed to ensure the ISR returns to the unblocked\r
     // task.  In most FreeRTOS ports this is done by simply passing\r
-    // xHigherPriorityTaskWoken into taskYIELD_FROM_ISR(), which will test the\r
+    // xHigherPriorityTaskWoken into portYIELD_FROM_ISR(), which will test the\r
     // variables value, and perform the context switch if necessary.  Check the\r
     // documentation for the port in use for port specific instructions.\r
-    taskYIELD_FROM_ISR( xHigherPriorityTaskWoken );\r
+    portYIELD_FROM_ISR( xHigherPriorityTaskWoken );\r
 }\r
 </pre>\r
  * \defgroup xMessageBufferReceiveFromISR xMessageBufferReceiveFromISR\r