Instruction manual

Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 143 of 157
Apr 1, 2013
R_usb_cstd_Scheduler
Manages requests generated by the tasks
Format
void R_usb_cstd_Scheduler(void)
Argument
Return Value
Description
Managing requests generated by the tasks and hardware according to the relative priority of the tasks
Note
Call this function in the loop that executes the scheduler processing for non-OS operations.
See
Figure 4-2 Static State Program Flow or Figure 5-2 Static State Program Flow for a usage example
Example
void usb_smp_mainloop(void)
{
while(1)
{
/* Working Scheduler */
R_usb_cstd_Scheduler();
/* Check flag */
if(USB_FLGSET == R_usb_cstd_CheckSchedule())
{
/* Task Processing */
R_usb_pstd_PcdTask((USB_VP_INT)0);
}
}