File tree Expand file tree Collapse file tree 2 files changed +19
-7
lines changed Expand file tree Collapse file tree 2 files changed +19
-7
lines changed Original file line number Diff line number Diff 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/**
Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments