Merge pull request #706 from thinkOfaNumber/master

support longer ms values in ms2tick
This commit is contained in:
Ha Thach authored and GitHub committed 2021-12-09 18:46:17 +07:00
commit b8e2b612d4
1 file changed
+1 -1
@@ -38,7 +38,7 @@ typedef void (*TaskFunction_t)( void * );
overridden by a macro of the same name defined in FreeRTOSConfig.h in case the
definition here is not suitable for your application. */
#ifndef pdMS_TO_TICKS
#define pdMS_TO_TICKS( xTimeInMs ) ( ( TickType_t ) ( ( ( TickType_t ) ( xTimeInMs ) * ( TickType_t ) configTICK_RATE_HZ ) / ( TickType_t ) 1000 ) )
#define pdMS_TO_TICKS( xTimeInMs ) ( ( TickType_t ) ( ( ( TickType_t ) ( xTimeInMs ) * ( uint64_t ) configTICK_RATE_HZ ) / ( TickType_t ) 1000 ) )
#endif
#define pdFALSE ( ( BaseType_t ) 0 )