]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/include/projdefs.h
Make the pcObjectGetName() API function naming consistent - so rename pcTaskGetTaskNa...
[freertos] / FreeRTOS / Source / include / projdefs.h
index bfb0fd88c22a5750698650d0734816c1ee23a20f..2cdfea54da7e0ceaa50ba14fee2e230319503820 100644 (file)
  */\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