mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-12 00:57:44 -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.
|
||||
*
|
||||
* Example usage:
|
||||
* <pre>
|
||||
* <pre>
|
||||
* // Perform an action every 10 ticks.
|
||||
* void vTaskFunction( void * pvParameters )
|
||||
* {
|
||||
* TickType_t xLastWakeTime;
|
||||
* const TickType_t xFrequency = 10;
|
||||
*
|
||||
* // Initialise the xLastWakeTime variable with the current time.
|
||||
* xLastWakeTime = xTaskGetTickCount ();
|
||||
* for( ;; )
|
||||
* {
|
||||
* // Wait for the next cycle.
|
||||
* BaseType_t xWasDelayed = xTaskDelayUntil( &xLastWakeTime, xFrequency );
|
||||
* // Initialise the xLastWakeTime variable with the current time.
|
||||
* xLastWakeTime = xTaskGetTickCount ();
|
||||
* for( ;; )
|
||||
* {
|
||||
* // Wait for the next cycle.
|
||||
* BaseType_t xWasDelayed = xTaskDelayUntil( &xLastWakeTime, xFrequency );
|
||||
*
|
||||
* // Perform action here. xWasDelayed value can be used to determine
|
||||
* // whether a deadline was missed if the code here took too long.
|
||||
* }
|
||||
* // Perform action here. xWasDelayed value can be used to determine
|
||||
* // whether a deadline was missed if the code here took too long.
|
||||
* }
|
||||
* }
|
||||
* </pre>
|
||||
* \defgroup xTaskDelayUntil xTaskDelayUntil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue