This commit is contained in:
Chris Idema 2026-08-30 16:44:36 +02:00 • committed by GitHub
commit 315ef972bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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