Skip to content

Commit 00a8fce

Browse files
authored
Merge branch 'main' into arm-m3-m4-m7-priority-assert
2 parents 0675381 + 6d65558 commit 00a8fce

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

include/task.h

+18
Original file line numberDiff line numberDiff line change
@@ -1649,6 +1649,24 @@ configSTACK_DEPTH_TYPE uxTaskGetStackHighWaterMark2( TaskHandle_t xTask ) PRIVIL
16491649

16501650
#endif
16511651

1652+
#if ( configUSE_IDLE_HOOK == 1 )
1653+
1654+
/**
1655+
* task.h
1656+
* @code{c}
1657+
* void vApplicationIdleHook( void );
1658+
* @endcode
1659+
*
1660+
* The application idle hook is called by the idle task.
1661+
* This allows the application designer to add background functionality without
1662+
* the overhead of a separate task.
1663+
* NOTE: vApplicationIdleHook() MUST NOT, UNDER ANY CIRCUMSTANCES, CALL A FUNCTION THAT MIGHT BLOCK.
1664+
*/
1665+
void vApplicationIdleHook( void );
1666+
1667+
#endif
1668+
1669+
16521670
#if ( configUSE_TICK_HOOK > 0 )
16531671

16541672
/**

tasks.c

+1-7
Original file line numberDiff line numberDiff line change
@@ -3477,13 +3477,7 @@ static portTASK_FUNCTION( prvIdleTask, pvParameters )
34773477

34783478
#if ( configUSE_IDLE_HOOK == 1 )
34793479
{
3480-
extern void vApplicationIdleHook( void );
3481-
3482-
/* Call the user defined function from within the idle task. This
3483-
* allows the application designer to add background functionality
3484-
* without the overhead of a separate task.
3485-
* NOTE: vApplicationIdleHook() MUST NOT, UNDER ANY CIRCUMSTANCES,
3486-
* CALL A FUNCTION THAT MIGHT BLOCK. */
3480+
/* Call the user defined function from within the idle task. */
34873481
vApplicationIdleHook();
34883482
}
34893483
#endif /* configUSE_IDLE_HOOK */

0 commit comments

Comments
 (0)