Instruction manual
Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 40 of 157
Apr 1, 2013
R_usb_pstd_PcdTask
The PCD Task
Format
void R_usb_pstd_PcdTask(USB_VP_INT stacd)
Arguments
stacd Task start code Not used
Return Value
- -
Description
This function executes hardware control when running as a USB peripheral.
Note
1. Call this in the loop that executes the scheduler processing for non-OS.
See “
Figure 4-2 Static State Program Flow “for a usage example.
2. This function does not need to be called for RTOS.
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_pstd_PcdTask((USB_VP_INT)0);
:
}
:
}