Updated usb regs (markdown)
authorOleksij Rempel <linux@rempel-privat.de>
Sat, 13 Jul 2013 20:20:31 +0000 (13:20 -0700)
committerOleksij Rempel <linux@rempel-privat.de>
Sat, 13 Jul 2013 20:20:31 +0000 (13:20 -0700)
usb-regs.md

index c58cc4ca4dcc4e1d0fb513af50b6b7a676969036..03b218f5f2ab56d9144f552fc9e097eecd15b3ee 100644 (file)
     
     #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
 
-
+    #define mUSB_STATUS_IN_INT_ENABLE()     USB_BYTE_REG_WRITE(ZM_INTR_MASK_BYTE_6_OFFSET, \
+                USB_BYTE_REG_READ(ZM_INTR_MASK_BYTE_6_OFFSET)&0xbf)
+    #define mUSB_STATUS_IN_INT_DISABLE()    USB_BYTE_REG_WRITE(ZM_INTR_MASK_BYTE_6_OFFSET, \
+                USB_BYTE_REG_READ(ZM_INTR_MASK_BYTE_6_OFFSET)|0xc0)
 
 # 0x18 ZM_INTR_MASK_BYTE_7_OFFSET