Instruction manual

Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 155 of 157
Apr 1, 2013
11.2.2 Pipe information table setting for DTC/EXDMA transfer in the Peripheral sample
program
Edit Ep table ā€œusb_gpvendor_smpl_eptbl1ā€ which is in the ā€œr_usb_vendor_descriptor.cā€.
#else /* USB_TARGET_CHIP_PP == USB_ASSP_PP */
uint16_t usb_gpvendor_smpl_eptbl1[] =
{
/* PIPE1 Definition */
USB_PIPE1,
USB_BULK | USB_BFREOFF | USB_DBLBON | USB_SHTNAKON | USB_DIR_P_IN | USB_EP1,
USB_NONE,
64,
USB_IFISOFF | USB_IITV_TIME(0u),
USB_CUSE,
/* PIPE2 Definition */
USB_PIPE2,
USB_BULK | USB_BFREOFF | USB_DBLBON | USB_SHTNAKON | USB_DIR_P_OUT | USB_EP2,
USB_NONE,
64,
USB_IFISOFF | USB_IITV_TIME(0u),
USB_CUSE,
[Note]
1. Either pipe 1 or pipe 2 can be used to run DTC/EXDMA. However, both pipes cannot be used to run
DTC/EXDMA.
When DTC/EXDMA is used in pipe 1 (BULK IN: receive),
USB_CUSE is changed to USB_D0DMA.
When DTC/EXDMA is used in pipe 2 (BULK OUT: transfer),
USB_CUSE is changed to USB_D0DMA.