From 395e41c30819f47e0896aa2529962520b127b64d Mon Sep 17 00:00:00 2001 From: Oleksij Rempel Date: Tue, 23 Jul 2013 00:50:07 -0700 Subject: [PATCH] Updated usb regs (markdown) --- usb-regs.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/usb-regs.md b/usb-regs.md index f091dad..43af93d 100644 --- a/usb-regs.md +++ b/usb-regs.md @@ -29,7 +29,7 @@ Assumptions made on source code: * BIT7 * BIT6 * BIT5 -* BIT4 - TEST_PKY +* BIT4 - TEST_PKY - Test packed. * BIT3 - TEST_SE0_NAK * BIT2 - TEST_K * BIT1 - TEST_J @@ -43,7 +43,7 @@ DM(D-) DP(D+) Description 1 1 3: SE1 0: Control PHY to turn off 1.5K Ohm pull-up resistor 1: Control PHY to turn on 1.5K Ohm pull-up resistor - +If TEST_PKY is set, the test packet must be filled into FIFO by DMA first. # 0x0A ZM_VDR_SPECIFIC_MODE_OFFSET @@ -138,6 +138,19 @@ these endpoints are handled by DMA * BIT1 - USB reset interrupt. * BIT0 +# 0x2F mUsbEPMap EP0 + +code use: ZM_FUSB_BASE+0x30+(EPn-1) + +# 0x30 mUsbEPMap EP1 +# 0x31 mUsbEPMap EP2 +# 0x32 mUsbEPMap EP3 +# 0x33 mUsbEPMap EP4 +# 0x34 mUsbEPMap EP5 +# 0x35 mUsbEPMap EP6 +# 0x36 mUsbEPMap EP7 +.... 0x2F - 0x3E -- place for 15 EPs? + # 0x3E ZM_EP_IN_MAX_SIZE_LOW_OFFSET # 0x3F ZM_EP_IN_MAX_SIZE_HIGH_OFFSET -- 2.25.1