mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-12 00:57:44 -04:00
Update projdefs.h
Where `TickType_t` is `uint16_t` the calculation overflows. This proposal was used to resolve [`feilipu/Arduino_FreeRTOS_Library` #61](https://github.com/feilipu/Arduino_FreeRTOS_Library/issues/61)
This commit is contained in:
parent
87beba4a4a
commit
1e5ea44875
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ typedef void (*TaskFunction_t)( void * );
|
||||||
overridden by a macro of the same name defined in FreeRTOSConfig.h in case the
|
overridden by a macro of the same name defined in FreeRTOSConfig.h in case the
|
||||||
definition here is not suitable for your application. */
|
definition here is not suitable for your application. */
|
||||||
#ifndef pdMS_TO_TICKS
|
#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 ) ( ( ( xTimeInMs ) * (uint32_t) configTICK_RATE_HZ ) / 1000 ) )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define pdFALSE ( ( BaseType_t ) 0 )
|
#define pdFALSE ( ( BaseType_t ) 0 )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue