From 2fc20458a54024cbf2827d51f3d0706ddee06ec5 Mon Sep 17 00:00:00 2001 From: Oleksij Rempel Date: Fri, 11 Oct 2013 03:35:44 -0700 Subject: [PATCH] Updated usb regs (markdown) --- usb-regs.md | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/usb-regs.md b/usb-regs.md index 1b2880b..56c5361 100644 --- a/usb-regs.md +++ b/usb-regs.md @@ -119,12 +119,12 @@ These bits indicate if fallowing groups got some interrupt. # 0x21 ZM_INTR_SOURCE_0_OFFSET * BIT7 - abort interrupt? should be cleared first? * BIT6 - -* BIT5 - -* BIT4 - ep0 CMD_FAIL -* BIT3 - ep0 CMD_END -* BIT2 - USB EP0 OUT/rx interrupt -* BIT1 - USB EP0 IN/tx interrupt -* BIT0 - ep0 SETUP +* BIT5 - (abort int on fotg210, may be here too?) +* BIT4 - ep0 CMD_FAIL (error) +* BIT3 - ep0 CMD_END +* BIT2 - EP0-OUT packet +* BIT1 - EP0-IN packet +* BIT0 - EP0-SETUP packet # 0x22 - 0x25 ZM_INTR_SOURCE_1_OFFSET (FIFOx OUT) .... @@ -137,23 +137,28 @@ These bits indicate if fallowing groups got some interrupt. * BIT4 - FIFO14 OUT * BIT2 - FIFO13 OUT * BIT0 - FIFO12 OUT -Comments: we can read only 64bytes per time. If pending data is less then 64bytes, then BIT6 and BIT7 will be set. If not, then only BIT6 is set. # 0x26 - 0x27 ZM_INTR_SOURCE_5_OFFSET (FIFOx IN) * BIT1 - FIFO1 IN -* BIT0 - FIFO0 IN +* BIT0 - FIFO0 IN + ### 0x27 ZM_INTR_SOURCE_6_OFFSET * BIT6 - FIFO14 IN - vUsb_Status_In() # 0x28 ZM_INTR_SOURCE_7_OFFSET -* BIT7 - RX0BTYE_INT -* BIT6 - TX0BTYE_INT +* BIT11 - device wake up +* BIT10 - device idle +* BIT9 - DMA error +* BIT8 - DMA finnished +* BIT7 - RX0BTYE_INT - Zero-Length-Packet Rx +* BIT6 - TX0BTYE_INT - Zero-Length-Packet Tx * BIT5 - ISO seq abort * BIT4 - ISO seq error * BIT3 - USB resume * BIT2 - USB suspend * BIT1 - USB reset interrupt. -* BIT0 + +comment: not matching layout with fotg210.. some thing wrong? # 0x2F mUsbEPMap EP0 code use: ZM_FUSB_BASE+0x30+(EPn-1) -- 2.25.1