S100 OpenExplorer

# #hbUCPTaskPriority

`typedef enum hbUCPTaskPriority { HB_UCP_PRIORITY_LOWEST = 0, HB_UCP_PRIORITY_HIGHEST = 255 } hbUCPTaskPriority;`

Task priority configuration, the configured priority range is `[0,255]`.

Note

- Among them, `[0,253]` is a normal low-priority task, `254` is a high preemptive task, and `255` is an urgent preemptive task.

- The higher the priority of a task, the higher it is in the priority queue, and the earlier the task will run.

- UCP provides nested preemption capabilities, the preemption order is: urgent preemptive task > high preemptive task > normal low-priority task. Please refer to Model Priority Control.

On This Page