From: Oleksij Rempel Date: Fri, 12 Jul 2013 19:49:01 +0000 (-0700) Subject: Updated usb regs (markdown) X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f70902e474257bf26a87cfe364e0e8c5bafc8361;p=librecmc%2Fopen-ath9k-htc-firmware.wiki.git Updated usb regs (markdown) --- 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