From f70902e474257bf26a87cfe364e0e8c5bafc8361 Mon Sep 17 00:00:00 2001 From: Oleksij Rempel Date: Fri, 12 Jul 2013 12:49:01 -0700 Subject: [PATCH] Updated usb regs (markdown) --- usb-regs.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/usb-regs.md b/usb-regs.md index a255f49..c58cc4c 100644 --- a/usb-regs.md +++ b/usb-regs.md @@ -53,8 +53,18 @@ # 0x13 ZM_INTR_MASK_BYTE_2_OFFSET # 0x14 ZM_INTR_MASK_BYTE_3_OFFSET # 0x15 ZM_INTR_MASK_BYTE_4_OFFSET + + #define mUSB_REG_OUT_INT_ENABLE() USB_BYTE_REG_WRITE(ZM_INTR_MASK_BYTE_4_OFFSET, \ + USB_BYTE_REG_READ(ZM_INTR_MASK_BYTE_4_OFFSET)&0x3f) + + #define mUSB_REG_OUT_INT_DISABLE() USB_BYTE_REG_WRITE(ZM_INTR_MASK_BYTE_4_OFFSET, \ + USB_BYTE_REG_READ(ZM_INTR_MASK_BYTE_4_OFFSET)&0xc0) + # 0x16 ZM_INTR_MASK_BYTE_5_OFFSET # 0x17 ZM_INTR_MASK_BYTE_6_OFFSET + + + # 0x18 ZM_INTR_MASK_BYTE_7_OFFSET # 0x20 ZM_INTR_GROUP_OFFSET -- 2.25.1