mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-10-10 08:02:57 -04:00
Merge branch 'main' into rename_frequency_to_period
This commit is contained in:
commit
fff456cc42
81 changed files with 2154 additions and 922 deletions
|
|
@ -89,7 +89,7 @@
|
|||
* task. h
|
||||
*
|
||||
* Type by which tasks are referenced. For example, a call to xTaskCreate
|
||||
* returns (via a pointer parameter) an TaskHandle_t variable that can then
|
||||
* returns (via a pointer parameter) a TaskHandle_t variable that can then
|
||||
* be used as a parameter to vTaskDelete to delete the task.
|
||||
*
|
||||
* \defgroup TaskHandle_t TaskHandle_t
|
||||
|
|
@ -579,7 +579,7 @@ typedef enum
|
|||
*
|
||||
* Example usage:
|
||||
* @code{c}
|
||||
* // Create an TaskParameters_t structure that defines the task to be created.
|
||||
* // Create a TaskParameters_t structure that defines the task to be created.
|
||||
* static const TaskParameters_t xCheckTaskParameters =
|
||||
* {
|
||||
* vATask, // pvTaskCode - the function that implements the task.
|
||||
|
|
@ -677,7 +677,7 @@ typedef enum
|
|||
*
|
||||
* Example usage:
|
||||
* @code{c}
|
||||
* // Create an TaskParameters_t structure that defines the task to be created.
|
||||
* // Create a TaskParameters_t structure that defines the task to be created.
|
||||
* // The StaticTask_t variable is only included in the structure when
|
||||
* // configSUPPORT_STATIC_ALLOCATION is set to 1. The PRIVILEGED_DATA macro can
|
||||
* // be used to force the variable into the RTOS kernel's privileged data area.
|
||||
|
|
@ -893,6 +893,43 @@ void vTaskDelete( TaskHandle_t xTaskToDelete ) PRIVILEGED_FUNCTION;
|
|||
*/
|
||||
void vTaskDelay( const TickType_t xTicksToDelay ) PRIVILEGED_FUNCTION;
|
||||
|
||||
/**
|
||||
* task. h
|
||||
* @code{c}
|
||||
* TickType_t xTaskPeriodicDelay( TickType_t *pxPreviousWakeTime, const TickType_t xTimeIncrement );
|
||||
* @endcode
|
||||
*
|
||||
* INCLUDE_xTaskDelayUntil must be defined as 1 for this function to be available.
|
||||
* See the configuration section for more information.
|
||||
*
|
||||
* Periodic task delay to ensure a constant execution frequency.
|
||||
*
|
||||
* This function is similar to xTaskDelayUntil () with a few important differences:
|
||||
* - pxPreviousWakeTime contains the last past wake time, so it never runs away
|
||||
* - if you suspend the task, when you resume it pxPreviousWakeTime will instantly
|
||||
* catch up all skipped increments
|
||||
* - it returns the number of increments added to pxPreviosWakeTime
|
||||
*
|
||||
* @param pxPreviousWakeTime Pointer to a variable that holds the time at which the
|
||||
* task was last unblocked. The variable must be initialised with the current time
|
||||
* prior to its first use. Following this the variable is automatically updated.
|
||||
*
|
||||
* @param xTimeIncrement The cycle time period. The task will be unblocked at
|
||||
* time *pxPreviousWakeTime + xTimeIncrement. Passing the same xTimeIncrement
|
||||
* parameter value will cause the task to execute with a fixed interval.
|
||||
*
|
||||
* @return Number of times xTimeIncrement has been added to pxPreviousWakeTime.
|
||||
* It is 0 on the first call or if not enough ticks have been elapsed since the
|
||||
* last call, 1 in normal circumstances or more than 1 if some period has been
|
||||
* skipped for some reason (e.g. when the caller task is suspended for more than
|
||||
* xTimeIncrement ticks).
|
||||
*
|
||||
* \defgroup xTaskPeriodicDelay xTaskPeriodicDelay
|
||||
* \ingroup TaskCtrl
|
||||
*/
|
||||
TickType_t xTaskPeriodicDelay( TickType_t * const pxPreviousWakeTime,
|
||||
const TickType_t xTimeIncrement ) PRIVILEGED_FUNCTION;
|
||||
|
||||
/**
|
||||
* task. h
|
||||
* @code{c}
|
||||
|
|
@ -1038,7 +1075,7 @@ BaseType_t xTaskDelayUntil( TickType_t * const pxPreviousWakeTime,
|
|||
* // it itself.
|
||||
* if( uxTaskPriorityGet( xHandle ) != tskIDLE_PRIORITY )
|
||||
* {
|
||||
* // The task has changed it's priority.
|
||||
* // The task has changed its priority.
|
||||
* }
|
||||
*
|
||||
* // ...
|
||||
|
|
@ -2120,7 +2157,7 @@ char * pcTaskGetName( TaskHandle_t xTaskToQuery ) PRIVILEGED_FUNCTION;
|
|||
* configUSE_TRACE_FACILITY must be defined as 1 in FreeRTOSConfig.h for
|
||||
* uxTaskGetSystemState() to be available.
|
||||
*
|
||||
* uxTaskGetSystemState() populates an TaskStatus_t structure for each task in
|
||||
* uxTaskGetSystemState() populates a TaskStatus_t structure for each task in
|
||||
* the system. TaskStatus_t structures contain, among other things, members
|
||||
* for the task handle, task name, task priority, task state, and total amount
|
||||
* of run time consumed by the task. See the TaskStatus_t structure
|
||||
|
|
@ -3270,7 +3307,7 @@ uint32_t ulTaskGenericNotifyTake( UBaseType_t uxIndexToWaitOn,
|
|||
/**
|
||||
* task. h
|
||||
* @code{c}
|
||||
* BaseType_t xTaskNotifyStateClearIndexed( TaskHandle_t xTask, UBaseType_t uxIndexToCLear );
|
||||
* BaseType_t xTaskNotifyStateClearIndexed( TaskHandle_t xTask, UBaseType_t uxIndexToClear );
|
||||
*
|
||||
* BaseType_t xTaskNotifyStateClear( TaskHandle_t xTask );
|
||||
* @endcode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue