Skip to content

Commit e1647f9

Browse files
committed
projdef.h tweaks
1 parent c96ff3b commit e1647f9

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=FreeRTOS
2-
version=10.3.0-1
2+
version=10.3.0-2
33
author=Richard Barry <info@freertos.org>
44
maintainer=Phillip Stevens <phillip.stevens@gmail.com>
55
sentence=Real Time Operating System implemented for AVR (Uno, Leonardo, Mega).

src/projdefs.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ typedef void (*TaskFunction_t)( void * );
3838
overridden by a macro of the same name defined in FreeRTOSConfig.h in case the
3939
definition here is not suitable for your application. */
4040
#ifndef pdMS_TO_TICKS
41-
#define pdMS_TO_TICKS( xTimeInMs ) ( ( TickType_t ) ( ( ( xTimeInMs ) * (uint32_t) configTICK_RATE_HZ ) / 1000 ) )
41+
#if configUSE_16_BIT_TICKS == 1
42+
#define pdMS_TO_TICKS( xTimeInMs ) ( ( TickType_t ) ( ( ( TickType_t ) ( xTimeInMs ) * ( uint32_t ) configTICK_RATE_HZ ) / ( TickType_t ) 1000 ) )
43+
#else
44+
#define pdMS_TO_TICKS( xTimeInMs ) ( ( TickType_t ) ( ( ( TickType_t ) ( xTimeInMs ) * ( TickType_t ) configTICK_RATE_HZ ) / ( TickType_t ) 1000 ) )
45+
#endif
4246
#endif
4347

4448
#define pdFALSE ( ( BaseType_t ) 0 )
@@ -59,7 +63,7 @@ definition here is not suitable for your application. */
5963
#define configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES 0
6064
#endif
6165

62-
#if( configUSE_16_BIT_TICKS == 1 )
66+
#if configUSE_16_BIT_TICKS == 1
6367
#define pdINTEGRITY_CHECK_VALUE 0x5a5a
6468
#else
6569
#define pdINTEGRITY_CHECK_VALUE 0x5a5a5a5aUL

0 commit comments

Comments
 (0)