mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-10-09 23:53:04 -04:00
Merge fff456cc42 into 8be86d4a24
This commit is contained in:
commit
315ef972bc
1 changed files with 2 additions and 2 deletions
|
|
@ -978,7 +978,7 @@ TickType_t xTaskPeriodicDelay( TickType_t * const pxPreviousWakeTime,
|
|||
* 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.
|
||||
|
|
@ -986,7 +986,7 @@ TickType_t xTaskPeriodicDelay( TickType_t * const pxPreviousWakeTime,
|
|||
* 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