##### Synopsis

    #include <ctl_api.h>
    void ctl_task_set_priority(CTL_TASK_t *task, unsigned char priority);

##### Description

ctl_task_set_priority changes the priority of task to priority. The priority can be 0, the lowest priority, to 255, which is the highest priority.

You can change the priority of the currently executing task by passing ctl_task_executing as the task parameter.

##### Portability

ctl_task_set_priority is provided in every implementation of the CrossWorks tasking library.