]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/include/projdefs.h
Update version number to 9.0.0rc2.
[freertos] / FreeRTOS / Source / include / projdefs.h
index 115d35670a3bc0b5fdff8d02f26a47696a0637a1..7ecd91b97fbb631c3f1cb993530789e70882f205 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V8.2.1 - Copyright (C) 2015 Real Time Engineers Ltd.\r
+    FreeRTOS V9.0.0rc2 - Copyright (C) 2016 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -8,7 +8,7 @@
 \r
     FreeRTOS is free software; you can redistribute it and/or modify it under\r
     the terms of the GNU General Public License (version 2) as published by the\r
-    Free Software Foundation >>!AND MODIFIED BY!<< the FreeRTOS exception.\r
+    Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.\r
 \r
     ***************************************************************************\r
     >>!   NOTE: The modification to the GPL is included to allow you to     !<<\r
  */\r
 typedef void (*TaskFunction_t)( void * );\r
 \r
-/* Converts a time in milliseconds to a time in ticks. */\r
-#define pdMS_TO_TICKS( xTimeInMs ) ( ( TickType_t ) ( ( ( TickType_t ) ( xTimeInMs ) * ( TickType_t ) configTICK_RATE_HZ ) / ( TickType_t ) 1000 ) )\r
+/* Converts a time in milliseconds to a time in ticks.  This macro can be\r
+overridden by a macro of the same name defined in FreeRTOSConfig.h in case the\r
+definition here is not suitable for your application. */\r
+#ifndef pdMS_TO_TICKS\r
+       #define pdMS_TO_TICKS( xTimeInMs ) ( ( TickType_t ) ( ( ( TickType_t ) ( xTimeInMs ) * ( TickType_t ) configTICK_RATE_HZ ) / ( TickType_t ) 1000 ) )\r
+#endif\r
 \r
 #define pdFALSE                        ( ( BaseType_t ) 0 )\r
 #define pdTRUE                 ( ( BaseType_t ) 1 )\r
@@ -107,6 +111,7 @@ typedef void (*TaskFunction_t)( void * );
 itself. */\r
 #define pdFREERTOS_ERRNO_NONE                  0       /* No errors */\r
 #define        pdFREERTOS_ERRNO_ENOENT                 2       /* No such file or directory */\r
+#define        pdFREERTOS_ERRNO_EINTR                  4       /* Interrupted system call */\r
 #define        pdFREERTOS_ERRNO_EIO                    5       /* I/O error */\r
 #define        pdFREERTOS_ERRNO_ENXIO                  6       /* No such device or address */\r
 #define        pdFREERTOS_ERRNO_EBADF                  9       /* Bad file number */\r