]> 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 2dedeb807c176c7af0fddd2da7131e6408b0ab1d..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
@@ -103,10 +107,11 @@ typedef void (*TaskFunction_t)( void * );
        #define pdINTEGRITY_CHECK_VALUE 0x5a5a5a5aUL\r
 #endif\r
 \r
-/* The following errno values are used by FreeRTOS+ components, not FreeRTOS \r
+/* The following errno values are used by FreeRTOS+ components, not FreeRTOS\r
 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
@@ -145,7 +150,7 @@ itself. */
 #define        pdFREERTOS_ERRNO_EILSEQ                 138     /* An invalid UTF-16 sequence was encountered. */\r
 #define        pdFREERTOS_ERRNO_ECANCELED              140     /* Operation canceled. */\r
 \r
-/* The following endian values are used by FreeRTOS+ components, not FreeRTOS \r
+/* The following endian values are used by FreeRTOS+ components, not FreeRTOS\r
 itself. */\r
 #define pdFREERTOS_LITTLE_ENDIAN       0\r
 #define pdFREERTOS_BIG_ENDIAN          1\r