Skip to content

Commit 052e364

Browse files
authored
Fix #415: Compiling tasks.c with configSUPPORT_DYNAMIC_ALLOCATION = 0 (#416)
* Fix #415: Compiling tasks.c with configSUPPORT_DYNAMIC_ALLOCATION = 0
1 parent 271bdfb commit 052e364

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tasks.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,9 @@ static void prvAddCurrentTaskToDelayedList( TickType_t xTicksToWait,
527527
*/
528528
static void prvResetNextTaskUnblockTime( void ) PRIVILEGED_FUNCTION;
529529

530-
#if ( ( configUSE_TRACE_FACILITY == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) )
530+
#if ( ( ( configUSE_TRACE_FACILITY == 1 ) || ( configGENERATE_RUN_TIME_STATS == 1 ) ) && \
531+
( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) && \
532+
( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
531533

532534
/*
533535
* Helper function used to pad task names with spaces when printing out
@@ -4376,7 +4378,9 @@ static void prvResetNextTaskUnblockTime( void )
43764378
#endif /* portCRITICAL_NESTING_IN_TCB */
43774379
/*-----------------------------------------------------------*/
43784380

4379-
#if ( ( configUSE_TRACE_FACILITY == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) )
4381+
#if ( ( ( configUSE_TRACE_FACILITY == 1 ) || ( configGENERATE_RUN_TIME_STATS == 1 ) ) && \
4382+
( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) && \
4383+
( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
43804384

43814385
static char * prvWriteNameToBuffer( char * pcBuffer,
43824386
const char * pcTaskName )

0 commit comments

Comments
 (0)