Instruction manual

Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 144 of 157
Apr 1, 2013
R_usb_cstd_SetTaskPri
Set Task Priority
Format
void R_usb_cstd_SetTaskPri(uint8_t tasknum, uint8_t pri)
Argument
tasknum Task ID
pri Task Priority
Return Value
Description
Set the priority to the task. This function sets the priority of the task. Priority (pri) specified in 2nd argument is set to
the task specified in the 1st argument (tasknum).
Note
1. Please call the sceduler macro that this function is defined from the user application or the class drive.
2. Please refer to ‘
9.1 How to register in non-OS ’ about Task priority.setting
Example
void usb_smp_driver_start(void)
{
/* The priority of the sample task is set to 4 */
R_usb_cstd_SetTaskPri(USB_SMP_TSK, USB_PRI_4);
:
}