Instruction manual

Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 145 of 157
Apr 1, 2013
R_usb_cstd_CheckSchedule
Checks whether or not processing is scheduled.
Format
uint8_t R_usb_cstd_CheckSchedule(void)
Argument
Return Value
USB_FLGSET Processing request
USB_FLGCLR No processing request
Description
Checks whether or not processing is scheduled.
Note
Call this 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();
/* Flag Check */
if(USB_FLGSET == R_usb_cstd_CheckSchedule())
{
/* Task Processing */
}
}