Remove cast from configMINIMAL_STACK_SIZE (#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 - https://github.com/FreeRTOS/FreeRTOS/issues/967

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
pull/973/head
Gaurav-Aggarwal-AWS 2 years ago committed by GitHub
parent 69904a7537
commit c8c1c12765
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -43,7 +43,7 @@
#define configUSE_TICK_HOOK 1
#define configUSE_DAEMON_TASK_STARTUP_HOOK 1
#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. */
#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. */
#define configMINIMAL_STACK_SIZE ( PTHREAD_STACK_MIN )
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 84 * 1024 ) )
#define configMAX_TASK_NAME_LEN ( 12 )
#define configUSE_TRACE_FACILITY 1

Loading…
Cancel
Save