]> git.sur5r.net Git - freertos/commitdiff
Added a #error line to check that FreeRTOS.h is included before one of the subordinat...
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 1 Sep 2008 08:18:50 +0000 (08:18 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 1 Sep 2008 08:18:50 +0000 (08:18 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@466 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/include/croutine.h
Source/include/queue.h
Source/include/semphr.h
Source/include/task.h

index 9b55e079d817b2c818d7c64e35295463ba126f28..149bd7e1f06e89c75a8a2f1614c9c2c198598182 100644 (file)
        http://www.OpenRTOS.com - Commercial support, development, porting, \r
        licensing and training services.\r
 */\r
+\r
+#ifndef INC_FREERTOS_H\r
+       #error #error "#include FreeRTOS.h" must appear in source files before "#include croutine.h"\r
+#endif\r
+\r
+\r
+\r
+\r
 #ifndef CO_ROUTINE_H\r
 #define CO_ROUTINE_H\r
 \r
index 10b7f418c186e3c92a4d8b55e1ff457fe524e684..2d3962f562563fcbc9fa798dd6bf5e26e46fcbd0 100644 (file)
        licensing and training services.\r
 */\r
 \r
+#ifndef INC_FREERTOS_H\r
+       #error "#include FreeRTOS.h" must appear in source files before "#include queue.h"\r
+#endif\r
+\r
+\r
+\r
+\r
 #ifndef QUEUE_H\r
 #define QUEUE_H\r
 \r
index c6b1d02ac81f7c5656ebd8f9d58be751f3cd70ca..786d01720316785b0ca20c697deb813d13ae521e 100644 (file)
        licensing and training services.\r
 */\r
 \r
+#ifndef INC_FREERTOS_H\r
+       #error "#include FreeRTOS.h" must appear in source files before "#include semphr.h"\r
+#endif\r
+\r
 #ifndef SEMAPHORE_H\r
 #define SEMAPHORE_H\r
 \r
index 808fd95ee626489c55ffc84b4e00b41f14e8afb3..60193cfb73bef13a5557183a13c22c3249b4a26d 100644 (file)
        licensing and training services.\r
 */\r
 \r
-/*\r
-Changes since V4.3.1:\r
 \r
-       + Added xTaskGetSchedulerState() function.\r
-*/\r
+#ifndef INC_FREERTOS_H\r
+       #error "#include FreeRTOS.h" must appear in source files before "#include task.h"\r
+#endif\r
+\r
+\r
 \r
 #ifndef TASK_H\r
 #define TASK_H\r