From 0985d9902d9291f6ace1c48a635268d7b48a60c8 Mon Sep 17 00:00:00 2001 From: Oleksij Rempel Date: Tue, 24 Sep 2013 12:05:06 -0700 Subject: [PATCH] Updated usb regs (markdown) --- usb-regs.md | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/usb-regs.md b/usb-regs.md index 8c0cabc..3767be2 100644 --- a/usb-regs.md +++ b/usb-regs.md @@ -17,9 +17,9 @@ Default # 0x00 ZM_MAIN_CTRL_OFFSET * BIT7 * BIT6 - 1 = HighSpeed is set (read only?) -* BIT5 -* BIT4 -* BIT3 +* BIT5 - chip enable +* BIT4 - sfrst. soft reset? +* BIT3 - go suspend * BIT2 - 1 = enable global Int * BIT1 * BIT0 - 1 = set Remote Wake Up; @@ -128,6 +128,8 @@ These bits indicate if fallowing groups got some interrupt. # 0x22 ZM_INTR_SOURCE_1_OFFSET # 0x23 ZM_INTR_SOURCE_2_OFFSET +short packed interrupts? + # 0x24 ZM_INTR_SOURCE_3_OFFSET # 0x25 ZM_INTR_SOURCE_4_OFFSET * BIT7 - End of data. @@ -141,10 +143,10 @@ these endpoints are handled by DMA * BIT6 - vUsb_Status_In()? # 0x28 ZM_INTR_SOURCE_7_OFFSET -* BIT7 -* BIT6 -* BIT5 -* BIT4 +* BIT7 - RX0BTYE_INT +* BIT6 - TX0BTYE_INT +* BIT5 - ISO seq abort +* BIT4 - ISO seq error * BIT3 - USB resume * BIT2 - USB suspend * BIT1 - USB reset interrupt. @@ -153,7 +155,9 @@ these endpoints are handled by DMA # 0x2F mUsbEPMap EP0 code use: ZM_FUSB_BASE+0x30+(EPn-1) (0x0F | FIFOn << 4) = OUT -(0xF0 | FIFOn) = IN +(0xF0 | FIFOn) = IN +**probably incorrect interpretation. It should be FUSB_REG_IDLE_CNT + set suspend delay in ms** for FIFOn see mUsbFIFOMap registers. -- 2.25.1