mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-10-10 08:02:57 -04:00
renamed xFrequency to xPeriod in code example in comment
This commit is contained in:
parent
4269c69a16
commit
1057a27602
1 changed files with 2 additions and 2 deletions
|
|
@ -941,7 +941,7 @@ void vTaskDelay( const TickType_t xTicksToDelay ) PRIVILEGED_FUNCTION;
|
|||
* void vTaskFunction( void * pvParameters )
|
||||
* {
|
||||
* TickType_t xLastWakeTime;
|
||||
* const TickType_t xFrequency = 10;
|
||||
* const TickType_t xPeriod = 10;
|
||||
* BaseType_t xWasDelayed;
|
||||
*
|
||||
* // Initialise the xLastWakeTime variable with the current time.
|
||||
|
|
@ -949,7 +949,7 @@ void vTaskDelay( const TickType_t xTicksToDelay ) PRIVILEGED_FUNCTION;
|
|||
* for( ;; )
|
||||
* {
|
||||
* // Wait for the next cycle.
|
||||
* xWasDelayed = xTaskDelayUntil( &xLastWakeTime, xFrequency );
|
||||
* xWasDelayed = xTaskDelayUntil( &xLastWakeTime, xPeriod );
|
||||
*
|
||||
* // Perform action here. xWasDelayed value can be used to determine
|
||||
* // whether a deadline was missed if the code here took too long.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue