Skip to content

Commit 33356c1

Browse files
aggargmoninom1
authored andcommitted
Remove cast from configMINIMAL_STACK_SIZE (FreeRTOS#971)
The configMINIMAL_STACK_SIZE was defined to PTHREAD_STACK_MIN with cast to unsigned short. This cast cab be too restrictive and result in truncation on some platforms. This commit removes this unnecessary cast. Related issue - FreeRTOS#967 Signed-off-by: Gaurav Aggarwal <[email protected]>
1 parent b95104d commit 33356c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Posix/FreeRTOSConfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
#define configUSE_TICK_HOOK 1
4444
#define configUSE_DAEMON_TASK_STARTUP_HOOK 1
4545
#define configTICK_RATE_HZ ( 1000 ) /* In this non-real time simulated environment the tick frequency has to be at least a multiple of the Win32 tick frequency, and therefore very slow. */
46-
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) PTHREAD_STACK_MIN ) /* In this simulated case, the stack only has to hold one small structure as the real stack is part of the win32 thread. */
46+
#define configMINIMAL_STACK_SIZE ( PTHREAD_STACK_MIN )
4747
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 84 * 1024 ) )
4848
#define configMAX_TASK_NAME_LEN ( 12 )
4949
#define configUSE_TRACE_FACILITY 1

0 commit comments

Comments
 (0)