Instruction manual
Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 154 of 157
Apr 1, 2013
11.2 How to DTC/EXDMA transfer in the sample program
The Ep table must be edited in order to execute a DTC transfer in the sample application.
11.2.1 Pipe information table setting for DTC/EXDMA transfer in the Host sample program
Edit Ep table “usb_shvendor_smpl_tmp_eptbl” which is in the “r_usb_hvendor_defep.c”.
uint16_t usb_shvendor_smpl_tmp_eptbl[] =
{
/* PIPE1 */
USB_NONE,
/* TYPE/BFRE/DBLB/CNTMD/SHTNAK/DIR/EPNUM */
USB_NONE | USB_BFREOFF | USB_DBLBON | USB_CNTMDON | USB_SHTNAKON | USB_NONE | USB_NONE,
USB_NONE,
USB_NONE,
USB_NONE,
USB_CUSE,
/* PIPE2 */
USB_NONE,
/* TYPE/BFRE/DBLB/CNTMD/SHTNAK/DIR/EPNUM */
USB_NONE | USB_BFREOFF | USB_DBLBON | USB_CNTMDON | USB_SHTNAKON | USB_NONE | USB_NONE,
USB_NONE,
USB_NONE,
USB_NONE,
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.