Instruction manual

Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 103 of 157
Apr 1, 2013
R_usb_hstd_MgrTask
MGR Task
Format
void R_usb_hstd_MgrTask (USB_VP_INT_t stcd)
Argument
stacd Task start code (Not used)
Return Value
Description
When host, call this function continuously to run the Manager (MGR) task. (HDCD sends messages to MGR which
in turn calls HCD.
Note
1. Call this in the loop that executes the scheduler processing for non-OS operations.
2. See ”
Figure 4-2 Static State Program Flow” for a usage example
Example
void usb_smp_mainloop(void)
{
while(1)
{
/* Start non-OS scheduler */
R_usb_cstd_Scheduler();
/* Flag checking */
if(USB_FLGSET == R_usb_cstd_CheckSchedule())
{
R_usb_hstd_MgrTask((USB_VP_INT)0);
}
}