mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-12 09:07:46 -04:00
more small formatting stuff
This commit is contained in:
parent
d5227abff8
commit
1adc914059
1 changed files with 10 additions and 10 deletions
|
@ -819,23 +819,23 @@ void vTaskDelay( const TickType_t xTicksToDelay ) PRIVILEGED_FUNCTION;
|
||||||
* Will be pdTRUE if the task way delayed and pdFALSE otherwise.
|
* Will be pdTRUE if the task way delayed and pdFALSE otherwise.
|
||||||
*
|
*
|
||||||
* Example usage:
|
* Example usage:
|
||||||
* <pre>
|
* <pre>
|
||||||
* // Perform an action every 10 ticks.
|
* // Perform an action every 10 ticks.
|
||||||
* void vTaskFunction( void * pvParameters )
|
* void vTaskFunction( void * pvParameters )
|
||||||
* {
|
* {
|
||||||
* TickType_t xLastWakeTime;
|
* TickType_t xLastWakeTime;
|
||||||
* const TickType_t xFrequency = 10;
|
* const TickType_t xFrequency = 10;
|
||||||
*
|
*
|
||||||
* // Initialise the xLastWakeTime variable with the current time.
|
* // Initialise the xLastWakeTime variable with the current time.
|
||||||
* xLastWakeTime = xTaskGetTickCount ();
|
* xLastWakeTime = xTaskGetTickCount ();
|
||||||
* for( ;; )
|
* for( ;; )
|
||||||
* {
|
* {
|
||||||
* // Wait for the next cycle.
|
* // Wait for the next cycle.
|
||||||
* BaseType_t xWasDelayed = xTaskDelayUntil( &xLastWakeTime, xFrequency );
|
* BaseType_t xWasDelayed = xTaskDelayUntil( &xLastWakeTime, xFrequency );
|
||||||
*
|
*
|
||||||
* // Perform action here. xWasDelayed value can be used to determine
|
* // Perform action here. xWasDelayed value can be used to determine
|
||||||
* // whether a deadline was missed if the code here took too long.
|
* // whether a deadline was missed if the code here took too long.
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* </pre>
|
* </pre>
|
||||||
* \defgroup xTaskDelayUntil xTaskDelayUntil
|
* \defgroup xTaskDelayUntil xTaskDelayUntil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue