Skip to content

Commit b196a6c

Browse files
authored
Remove portSTACK_TYPE cast
The casting of `configMINIMAL_STACK_SIZE` and `configTIMER_TASK_STACK_DEPTH` to `portSTACK_TYPE` means that the maximum stack would be 255. Removing the cast allows the `configMINIMAL_STACK_SIZE` to take any value up to the `configSTACK_DEPTH_TYPE` define.
1 parent 5a07d03 commit b196a6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FreeRTOSConfig.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
#define configUSE_TICK_HOOK 0
5050
#define configCPU_CLOCK_HZ ( ( uint32_t ) F_CPU ) // This F_CPU variable set by the environment
5151
#define configMAX_PRIORITIES 4
52-
#define configMINIMAL_STACK_SIZE ( ( portSTACK_TYPE ) 192 )
52+
#define configMINIMAL_STACK_SIZE ( 192 )
5353
#define configMAX_TASK_NAME_LEN ( 8 )
5454
#define configUSE_TRACE_FACILITY 0
5555
#define configUSE_16_BIT_TICKS 1
@@ -71,7 +71,7 @@
7171
#define configUSE_TIMERS 1
7272
#define configTIMER_TASK_PRIORITY ( ( UBaseType_t ) 3 )
7373
#define configTIMER_QUEUE_LENGTH ( ( UBaseType_t ) 10 )
74-
#define configTIMER_TASK_STACK_DEPTH ( ( portSTACK_TYPE ) 85 )
74+
#define configTIMER_TASK_STACK_DEPTH ( 85 )
7575

7676
/* Co-routine definitions. */
7777
#define configUSE_CO_ROUTINES 0

0 commit comments

Comments
 (0)