Instruction manual

Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 133 of 157
Apr 1, 2013
R_usb_hhub_Task
HUB Task
Format
void R_usb_hhub_Task(USB_VP_INT stacd)
Argument
stacd Task start code (Not used)
Return Value
Description
At the time of selection of a host, the state of the down port of the connected USB hub is managed, and the function
between HCD and HDCD is complemented.
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)
{
/* Scheduler starting */
R_usb_cstd_Scheduler();
/* Flag check */
if(USB_FLGSET == R_usb_cstd_CheckSchedule())
{
R_usb_hhub_Task((USB_VP_INT)0);
}
}