more small formatting stuff

This commit is contained in:
Robin.Mueller 2020-09-10 21:57:05 +02:00
parent d5227abff8
commit 1adc914059

View file

@ -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