File tree 2 files changed +19
-7
lines changed
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
1649
1649
1650
1650
#endif
1651
1651
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
+
1652
1670
#if ( configUSE_TICK_HOOK > 0 )
1653
1671
1654
1672
/**
Original file line number Diff line number Diff line change @@ -3477,13 +3477,7 @@ static portTASK_FUNCTION( prvIdleTask, pvParameters )
3477
3477
3478
3478
#if ( configUSE_IDLE_HOOK == 1 )
3479
3479
{
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. */
3487
3481
vApplicationIdleHook ();
3488
3482
}
3489
3483
#endif /* configUSE_IDLE_HOOK */
You can’t perform that action at this time.
0 commit comments