-#define GPIO_DSCR_IRQ_DSE(x) ((x)&0x03)
-
-/* not done yet */
-/*********************************************************************
-* LCD Controller (LCDC)
-*********************************************************************/
-/* Bit definitions and macros for LCDC_LSSAR */
-#define LCDC_LSSAR_SSA(x) (((x)&0x3FFFFFFF)<<2)
-
-/* Bit definitions and macros for LCDC_LSR */
-#define LCDC_LSR_YMAX(x) (((x)&0x000003FF)<<0)
-#define LCDC_LSR_XMAX(x) (((x)&0x0000003F)<<20)
-
-/* Bit definitions and macros for LCDC_LVPWR */
-#define LCDC_LVPWR_VPW(x) (((x)&0x000003FF)<<0)
-
-/* Bit definitions and macros for LCDC_LCPR */
-#define LCDC_LCPR_CYP(x) (((x)&0x000003FF)<<0)
-#define LCDC_LCPR_CXP(x) (((x)&0x000003FF)<<16)
-#define LCDC_LCPR_OP (0x10000000)
-#define LCDC_LCPR_CC(x) (((x)&0x00000003)<<30)
-#define LCDC_LCPR_CC_TRANSPARENT (0x00000000)
-#define LCDC_LCPR_CC_OR (0x40000000)
-#define LCDC_LCPR_CC_XOR (0x80000000)
-#define LCDC_LCPR_CC_AND (0xC0000000)
-#define LCDC_LCPR_OP_ON (0x10000000)
-#define LCDC_LCPR_OP_OFF (0x00000000)
-
-/* Bit definitions and macros for LCDC_LCWHBR */
-#define LCDC_LCWHBR_BD(x) (((x)&0x000000FF)<<0)
-#define LCDC_LCWHBR_CH(x) (((x)&0x0000001F)<<16)
-#define LCDC_LCWHBR_CW(x) (((x)&0x0000001F)<<24)
-#define LCDC_LCWHBR_BK_EN (0x80000000)
-#define LCDC_LCWHBR_BK_EN_ON (0x80000000)
-#define LCDC_LCWHBR_BK_EN_OFF (0x00000000)
-
-/* Bit definitions and macros for LCDC_LCCMR */
-#define LCDC_LCCMR_CUR_COL_B(x) (((x)&0x0000003F)<<0)
-#define LCDC_LCCMR_CUR_COL_G(x) (((x)&0x0000003F)<<6)
-#define LCDC_LCCMR_CUR_COL_R(x) (((x)&0x0000003F)<<12)
-
-/* Bit definitions and macros for LCDC_LPCR */
-#define LCDC_LPCR_PCD(x) (((x)&0x0000003F)<<0)
-#define LCDC_LPCR_SHARP (0x00000040)
-#define LCDC_LPCR_SCLKSEL (0x00000080)
-#define LCDC_LPCR_ACD(x) (((x)&0x0000007F)<<8)
-#define LCDC_LPCR_ACDSEL (0x00008000)
-#define LCDC_LPCR_REV_VS (0x00010000)
-#define LCDC_LPCR_SWAP_SEL (0x00020000)
-#define LCDC_LPCR_ENDSEL (0x00040000)
-#define LCDC_LPCR_SCLKIDLE (0x00080000)
-#define LCDC_LPCR_OEPOL (0x00100000)
-#define LCDC_LPCR_CLKPOL (0x00200000)
-#define LCDC_LPCR_LPPOL (0x00400000)
-#define LCDC_LPCR_FLM (0x00800000)
-#define LCDC_LPCR_PIXPOL (0x01000000)
-#define LCDC_LPCR_BPIX(x) (((x)&0x00000007)<<25)
-#define LCDC_LPCR_PBSIZ(x) (((x)&0x00000003)<<28)
-#define LCDC_LPCR_COLOR (0x40000000)
-#define LCDC_LPCR_TFT (0x80000000)
-#define LCDC_LPCR_MODE_MONOCHROME (0x00000000)
-#define LCDC_LPCR_MODE_CSTN (0x40000000)
-#define LCDC_LPCR_MODE_TFT (0xC0000000)
-#define LCDC_LPCR_PBSIZ_1 (0x00000000)
-#define LCDC_LPCR_PBSIZ_2 (0x10000000)
-#define LCDC_LPCR_PBSIZ_4 (0x20000000)
-#define LCDC_LPCR_PBSIZ_8 (0x30000000)
-#define LCDC_LPCR_BPIX_1bpp (0x00000000)
-#define LCDC_LPCR_BPIX_2bpp (0x02000000)
-#define LCDC_LPCR_BPIX_4bpp (0x04000000)
-#define LCDC_LPCR_BPIX_8bpp (0x06000000)
-#define LCDC_LPCR_BPIX_12bpp (0x08000000)
-#define LCDC_LPCR_BPIX_16bpp (0x0A000000)
-#define LCDC_LPCR_BPIX_18bpp (0x0C000000)
-
-#define LCDC_LPCR_PANEL_TYPE(x) (((x)&0x00000003)<<30)
-
-/* Bit definitions and macros for LCDC_LHCR */
-#define LCDC_LHCR_H_WAIT_2(x) (((x)&0x000000FF)<<0)
-#define LCDC_LHCR_H_WAIT_1(x) (((x)&0x000000FF)<<8)
-#define LCDC_LHCR_H_WIDTH(x) (((x)&0x0000003F)<<26)
-
-/* Bit definitions and macros for LCDC_LVCR */
-#define LCDC_LVCR_V_WAIT_2(x) (((x)&0x000000FF)<<0)
-#define LCDC_LVCR_V_WAIT_1(x) (((x)&0x000000FF)<<8)
-#define LCDC_LVCR_V_WIDTH(x) (((x)&0x0000003F)<<26)
-
-/* Bit definitions and macros for LCDC_LPOR */
-#define LCDC_LPOR_POS(x) (((x)&0x0000001F)<<0)
-
-/* Bit definitions and macros for LCDC_LPCCR */
-#define LCDC_LPCCR_PW(x) (((x)&0x000000FF)<<0)
-#define LCDC_LPCCR_CC_EN (0x00000100)
-#define LCDC_LPCCR_SCR(x) (((x)&0x00000003)<<9)
-#define LCDC_LPCCR_LDMSK (0x00008000)
-#define LCDC_LPCCR_CLS_HI_WIDTH(x) (((x)&0x000001FF)<<16)
-#define LCDC_LPCCR_SCR_LINEPULSE (0x00000000)
-#define LCDC_LPCCR_SCR_PIXELCLK (0x00002000)
-#define LCDC_LPCCR_SCR_LCDCLOCK (0x00004000)
-
-/* Bit definitions and macros for LCDC_LDCR */
-#define LCDC_LDCR_TM(x) (((x)&0x0000001F)<<0)
-#define LCDC_LDCR_HM(x) (((x)&0x0000001F)<<16)
-#define LCDC_LDCR_BURST (0x80000000)
-
-/* Bit definitions and macros for LCDC_LRMCR */
-#define LCDC_LRMCR_SEL_REF (0x00000001)
-
-/* Bit definitions and macros for LCDC_LICR */
-#define LCDC_LICR_INTCON (0x00000001)
-#define LCDC_LICR_INTSYN (0x00000004)
-#define LCDC_LICR_GW_INT_CON (0x00000010)
-
-/* Bit definitions and macros for LCDC_LIER */
-#define LCDC_LIER_BOF_EN (0x00000001)
-#define LCDC_LIER_EOF_EN (0x00000002)
-#define LCDC_LIER_ERR_RES_EN (0x00000004)
-#define LCDC_LIER_UDR_ERR_EN (0x00000008)
-#define LCDC_LIER_GW_BOF_EN (0x00000010)
-#define LCDC_LIER_GW_EOF_EN (0x00000020)
-#define LCDC_LIER_GW_ERR_RES_EN (0x00000040)
-#define LCDC_LIER_GW_UDR_ERR_EN (0x00000080)
-
-/* Bit definitions and macros for LCDC_LISR */
-#define LCDC_LISR_BOF (0x00000001)
-#define LCDC_LISR_EOF (0x00000002)
-#define LCDC_LISR_ERR_RES (0x00000004)
-#define LCDC_LISR_UDR_ERR (0x00000008)
-#define LCDC_LISR_GW_BOF (0x00000010)
-#define LCDC_LISR_GW_EOF (0x00000020)
-#define LCDC_LISR_GW_ERR_RES (0x00000040)
-#define LCDC_LISR_GW_UDR_ERR (0x00000080)
-
-/* Bit definitions and macros for LCDC_LGWSAR */
-#define LCDC_LGWSAR_GWSA(x) (((x)&0x3FFFFFFF)<<2)
-
-/* Bit definitions and macros for LCDC_LGWSR */
-#define LCDC_LGWSR_GWH(x) (((x)&0x000003FF)<<0)
-#define LCDC_LGWSR_GWW(x) (((x)&0x0000003F)<<20)
-
-/* Bit definitions and macros for LCDC_LGWVPWR */
-#define LCDC_LGWVPWR_GWVPW(x) (((x)&0x000003FF)<<0)
-
-/* Bit definitions and macros for LCDC_LGWPOR */
-#define LCDC_LGWPOR_GWPO(x) (((x)&0x0000001F)<<0)
-
-/* Bit definitions and macros for LCDC_LGWPR */
-#define LCDC_LGWPR_GWYP(x) (((x)&0x000003FF)<<0)
-#define LCDC_LGWPR_GWXP(x) (((x)&0x000003FF)<<16)
-
-/* Bit definitions and macros for LCDC_LGWCR */
-#define LCDC_LGWCR_GWCKB(x) (((x)&0x0000003F)<<0)
-#define LCDC_LGWCR_GWCKG(x) (((x)&0x0000003F)<<6)
-#define LCDC_LGWCR_GWCKR(x) (((x)&0x0000003F)<<12)
-#define LCDC_LGWCR_GW_RVS (0x00200000)
-#define LCDC_LGWCR_GWE (0x00400000)
-#define LCDC_LGWCR_GWCKE (0x00800000)
-#define LCDC_LGWCR_GWAV(x) (((x)&0x000000FF)<<24)
-
-/* Bit definitions and macros for LCDC_LGWDCR */
-#define LCDC_LGWDCR_GWTM(x) (((x)&0x0000001F)<<0)
-#define LCDC_LGWDCR_GWHM(x) (((x)&0x0000001F)<<16)
-#define LCDC_LGWDCR_GWBT (0x80000000)
-
-/* Bit definitions and macros for LCDC_BPLUT_BASE */
-#define LCDC_BPLUT_BASE_BASE(x) (((x)&0xFFFFFFFF)<<0)
-
-/* Bit definitions and macros for LCDC_GWLUT_BASE */
-#define LCDC_GWLUT_BASE_BASE(x) (((x)&0xFFFFFFFF)<<0)
-
-/* not done yet */
-/*********************************************************************
-* USB Controller (USB)
-*********************************************************************/
-/* Bit definitions and macros for USB_HCSPARAMS */
-#define USB_HCSPARAMS_N_PORTS(x) ((x)&0x0000000F)
-#define USB_HCSPARAMS_PPC (0x00000010)
-#define USB_HCSPARAMS_N_PCC(x) (((x)&0x0000000F)<<8)
-#define USB_HCSPARAMS_N_CC(x) (((x)&0x0000000F)<<12)
-#define USB_HCSPARAMS_PI (0x00010000)
-#define USB_HCSPARAMS_N_PTT(x) (((x)&0x0000000F)<<20)
-#define USB_HCSPARAMS_N_TT(x) (((x)&0x0000000F)<<24)
-
-/* Bit definitions and macros for USB_HCCPARAMS */
-#define USB_HCCPARAMS_ADC (0x00000001)
-#define USB_HCCPARAMS_PFL (0x00000002)
-#define USB_HCCPARAMS_ASP (0x00000004)
-#define USB_HCCPARAMS_IST(x) (((x)&0x0000000F)<<4)
-#define USB_HCCPARAMS_EECP(x) (((x)&0x000000FF)<<8)
-
-/* Bit definitions and macros for USB_DCIVERSION */
-#define USB_DCIVERSION_DCIVERSION(x) (((x)&0xFFFF)<<0)
-
-/* Bit definitions and macros for USB_DCCPARAMS */
-#define USB_DCCPARAMS_DEN(x) (((x)&0x0000001F)<<0)
-#define USB_DCCPARAMS_DC (0x00000080)
-#define USB_DCCPARAMS_HC (0x00000100)
-
-/* Bit definitions and macros for USB_USBCMD */
-#define USB_USBCMD_RS (0x00000001)
-#define USB_USBCMD_RST (0x00000002)
-#define USB_USBCMD_FS0 (0x00000004)
-#define USB_USBCMD_FS1 (0x00000008)
-#define USB_USBCMD_PSE (0x00000010)
-#define USB_USBCMD_ASE (0x00000020)
-#define USB_USBCMD_IAA (0x00000040)
-#define USB_USBCMD_LR (0x00000080)
-#define USB_USBCMD_ASP(x) (((x)&0x00000003)<<8)
-#define USB_USBCMD_ASPE (0x00000800)
-#define USB_USBCMD_SUTW (0x00002000)
-#define USB_USBCMD_ATDTW (0x00004000)
-#define USB_USBCMD_FS2 (0x00008000)
-#define USB_USBCMD_ITC(x) (((x)&0x000000FF)<<16)
-#define USB_USBCMD_ITC_IMM (0x00000000)
-#define USB_USBCMD_ITC_1 (0x00010000)
-#define USB_USBCMD_ITC_2 (0x00020000)
-#define USB_USBCMD_ITC_4 (0x00040000)
-#define USB_USBCMD_ITC_8 (0x00080000)
-#define USB_USBCMD_ITC_16 (0x00100000)
-#define USB_USBCMD_ITC_32 (0x00200000)
-#define USB_USBCMD_ITC_40 (0x00400000)
-#define USB_USBCMD_FS_1024 (0x00000000)
-#define USB_USBCMD_FS_512 (0x00000004)
-#define USB_USBCMD_FS_256 (0x00000008)
-#define USB_USBCMD_FS_128 (0x0000000C)
-#define USB_USBCMD_FS_64 (0x00008000)
-#define USB_USBCMD_FS_32 (0x00008004)
-#define USB_USBCMD_FS_16 (0x00008008)
-#define USB_USBCMD_FS_8 (0x0000800C)
-
-/* Bit definitions and macros for USB_USBSTS */
-#define USB_USBSTS_UI (0x00000001)
-#define USB_USBSTS_UEI (0x00000002)
-#define USB_USBSTS_PCI (0x00000004)
-#define USB_USBSTS_FRI (0x00000008)
-#define USB_USBSTS_SEI (0x00000010)
-#define USB_USBSTS_AAI (0x00000020)
-#define USB_USBSTS_URI (0x00000040)
-#define USB_USBSTS_SRI (0x00000080)
-#define USB_USBSTS_SLI (0x00000100)
-#define USB_USBSTS_HCH (0x00001000)
-#define USB_USBSTS_RCL (0x00002000)
-#define USB_USBSTS_PS (0x00004000)
-#define USB_USBSTS_AS (0x00008000)
-
-/* Bit definitions and macros for USB_USBINTR */
-#define USB_USBINTR_UE (0x00000001)
-#define USB_USBINTR_UEE (0x00000002)
-#define USB_USBINTR_PCE (0x00000004)
-#define USB_USBINTR_FRE (0x00000008)
-#define USB_USBINTR_SEE (0x00000010)
-#define USB_USBINTR_AAE (0x00000020)
-#define USB_USBINTR_URE (0x00000040)
-#define USB_USBINTR_SRE (0x00000080)
-#define USB_USBINTR_SLE (0x00000100)
-
-/* Bit definitions and macros for USB_FRINDEX */
-#define USB_FRINDEX_FRINDEX(x) (((x)&0x00003FFF)<<0)
-
-/* Bit definitions and macros for USB_PERIODICLISTBASE */
-#define USB_PERIODICLISTBASE_PERBASE(x) (((x)&0x000FFFFF)<<12)
-
-/* Bit definitions and macros for USB_DEVICEADDR */
-#define USB_DEVICEADDR_USBADR(x) (((x)&0x0000007F)<<25)
-
-/* Bit definitions and macros for USB_ASYNCLISTADDR */
-#define USB_ASYNCLISTADDR_ASYBASE(x) (((x)&0x07FFFFFF)<<5)
-
-/* Bit definitions and macros for USB_EPLISTADDR */
-#define USB_EPLISTADDR_EPBASE(x) (((x)&0x001FFFFF)<<11)
-
-/* Bit definitions and macros for USB_ASNCTTSTS */
-#define USB_ASNCTTSTS_TTAS (0x00000001)
-#define USB_ASNCTTSTS_TTAC (0x00000002)
-
-/* Bit definitions and macros for USB_BURSTSIZE */
-#define USB_BURSTSIZE_RXPBURST(x) (((x)&0x000000FF)<<0)
-#define USB_BURSTSIZE_TXPBURST(x) (((x)&0x000000FF)<<8)
-
-/* Bit definitions and macros for USB_TXFILLTUNING */
-#define USB_TXFILLTUNING_TXSCHOH(x) (((x)&0x000000FF)<<0)
-#define USB_TXFILLTUNING_TXSCHHEALTH(x) (((x)&0x0000001F)<<8)
-#define USB_TXFILLTUNING_TXFIFOTHRES(x) (((x)&0x0000003F)<<16)
-
-/* Bit definitions and macros for USB_TXTTFILLTUNING */
-#define USB_TXTTFILLTUNING_TXTTSCHOH(x) (((x)&0x0000001F)<<0)
-#define USB_TXTTFILLTUNING_TXTTSCHHEALTH(x) (((x)&0x0000001F)<<8)
-
-/* Bit definitions and macros for USB_ULPI_VIEWPORT */
-#define USB_ULPI_VIEWPORT_ULPI_DATWR(x) (((x)&0x000000FF)<<0)
-#define USB_ULPI_VIEWPORT_ULPI_DATRD(x) (((x)&0x000000FF)<<8)
-#define USB_ULPI_VIEWPORT_ULPI_ADDR(x) (((x)&0x000000FF)<<16)
-#define USB_ULPI_VIEWPORT_ULPI_PORT(x) (((x)&0x00000007)<<24)
-#define USB_ULPI_VIEWPORT_ULPI_SS (0x08000000)
-#define USB_ULPI_VIEWPORT_ULPI_RW (0x20000000)
-#define USB_ULPI_VIEWPORT_ULPI_RUN (0x40000000)
-#define USB_ULPI_VIEWPORT_ULPI_WU (0x80000000)
-
-/* Bit definitions and macros for USB_CONFIGFLAG */
-#define USB_CONFIGFLAG_CONFIGFLAG(x) (((x)&0xFFFFFFFF)<<0)
-
-/* Bit definitions and macros for USB_PORTSC */
-#define USB_PORTSC_CCS (0x00000001)
-#define USB_PORTSC_CSC (0x00000002)
-#define USB_PORTSC_PE (0x00000004)
-#define USB_PORTSC_PEC (0x00000008)
-#define USB_PORTSC_OCA (0x00000010)
-#define USB_PORTSC_OCC (0x00000020)
-#define USB_PORTSC_FPR (0x00000040)
-#define USB_PORTSC_SUSP (0x00000080)
-#define USB_PORTSC_PR (0x00000100)
-#define USB_PORTSC_LS(x) (((x)&0x00000003)<<10)
-#define USB_PORTSC_PP (0x00001000)
-#define USB_PORTSC_PO (0x00002000)
-#define USB_PORTSC_PIC(x) (((x)&0x00000003)<<14)
-#define USB_PORTSC_PTC(x) (((x)&0x0000000F)<<16)
-#define USB_PORTSC_WLCN (0x00100000)
-#define USB_PORTSC_WKDS (0x00200000)
-#define USB_PORTSC_WKOC (0x00400000)
-#define USB_PORTSC_PHCD (0x00800000)
-#define USB_PORTSC_PFSC (0x01000000)
-#define USB_PORTSC_PSPD(x) (((x)&0x00000003)<<26)
-#define USB_PORTSC_PTS(x) (((x)&0x00000003)<<30)
-#define USB_PORTSC_PTS_ULPI (0x80000000)
-#define USB_PORTSC_PTS_FS_LS (0xC0000000)
-#define USB_PORTSC_PSPD_FULL (0x00000000)
-#define USB_PORTSC_PSPD_LOW (0x04000000)
-#define USB_PORTSC_PSPD_HIGH (0x08000000)
-#define USB_PORTSC_PTC_DISBALE (0x00000000)
-#define USB_PORTSC_PTC_JSTATE (0x00010000)
-#define USB_PORTSC_PTC_KSTATE (0x00020000)
-#define USB_PORTSC_PTC_SEQ_NAK (0x00030000)
-#define USB_PORTSC_PTC_PACKET (0x00040000)
-#define USB_PORTSC_PTC_FORCE_ENABLE (0x00050000)
-#define USB_PORTSC_PIC_OFF (0x00000000)
-#define USB_PORTSC_PIC_AMBER (0x00004000)
-#define USB_PORTSC_PIC_GREEN (0x00008000)
-#define USB_PORTSC_LS_SE0 (0x00000000)
-#define USB_PORTSC_LS_JSTATE (0x00000400)
-#define USB_PORTSC_LS_KSTATE (0x00000800)
-
-/* Bit definitions and macros for USB_OTGSC */
-#define USB_OTGSC_VD (0x00000001)
-#define USB_OTGSC_VC (0x00000002)
-#define USB_OTGSC_OT (0x00000008)
-#define USB_OTGSC_DP (0x00000010)
-#define USB_OTGSC_ID (0x00000100)
-#define USB_OTGSC_AVV (0x00000200)
-#define USB_OTGSC_ASV (0x00000400)
-#define USB_OTGSC_BSV (0x00000800)
-#define USB_OTGSC_BSE (0x00001000)
-#define USB_OTGSC_1MST (0x00002000)
-#define USB_OTGSC_DPS (0x00004000)
-#define USB_OTGSC_IDIS (0x00010000)
-#define USB_OTGSC_AVVIS (0x00020000)
-#define USB_OTGSC_ASVIS (0x00040000)
-#define USB_OTGSC_BSVIS (0x00080000)
-#define USB_OTGSC_BSEIS (0x00100000)
-#define USB_OTGSC_1MSS (0x00200000)
-#define USB_OTGSC_DPIS (0x00400000)
-#define USB_OTGSC_IDIE (0x01000000)
-#define USB_OTGSC_AVVIE (0x02000000)
-#define USB_OTGSC_ASVIE (0x04000000)
-#define USB_OTGSC_BSVIE (0x08000000)
-#define USB_OTGSC_BSEIE (0x10000000)
-#define USB_OTGSC_1MSE (0x20000000)
-#define USB_OTGSC_DPIE (0x40000000)
-#define USB_OTGSC_CLEAR (0x007F0000)
-#define USB_OTGSC_ENABLE_ALL (0x7F000000)
-
-/* Bit definitions and macros for USB_USBMODE */
-#define USB_USBMODE_CM(x) (((x)&0x00000003)<<0)
-#define USB_USBMODE_SLOM (0x00000008)
-#define USB_USBMODE_SDIS (0x00000010)
-#define USB_USBMODE_CM_IDLE (0x00000000)
-#define USB_USBMODE_CM_DEVICE (0x00000002)
-#define USB_USBMODE_CM_HOST (0x00000003)
-#define USB_USBMODE_ES (0x00000004)
-
-/* Bit definitions and macros for USB_EPSETUPSR */
-#define USB_EPSETUPSR_EPSETUPSTAT(x) (((x)&0x0000003F)<<0)
-
-/* Bit definitions and macros for USB_EPPRIME */
-#define USB_EPPRIME_PERB(x) (((x)&0x0000003F)<<0)
-#define USB_EPPRIME_PETB(x) (((x)&0x0000003F)<<16)
-#define USB_EPPRIME_PETB0 (0x00010000)
-#define USB_EPPRIME_PETB1 (0x00020000)
-#define USB_EPPRIME_PETB2 (0x00040000)
-#define USB_EPPRIME_PETB3 (0x00080000)
-#define USB_EPPRIME_PETB4 (0x00100000)
-#define USB_EPPRIME_PETB5 (0x00200000)
-#define USB_EPPRIME_PERB0 (0x00000001)
-#define USB_EPPRIME_PERB1 (0x00000002)
-#define USB_EPPRIME_PERB2 (0x00000004)
-#define USB_EPPRIME_PERB3 (0x00000008)
-#define USB_EPPRIME_PERB4 (0x00000010)
-#define USB_EPPRIME_PERB5 (0x00000020)
-
-/* Bit definitions and macros for USB_EPFLUSH */
-#define USB_EPFLUSH_FERB(x) (((x)&0x0000003F)<<0)
-#define USB_EPFLUSH_FETB(x) (((x)&0x0000003F)<<16)
-#define USB_EPFLUSH_FETB0 (0x00010000)
-#define USB_EPFLUSH_FETB1 (0x00020000)
-#define USB_EPFLUSH_FETB2 (0x00040000)
-#define USB_EPFLUSH_FETB3 (0x00080000)
-#define USB_EPFLUSH_FETB4 (0x00100000)
-#define USB_EPFLUSH_FETB5 (0x00200000)
-#define USB_EPFLUSH_FERB0 (0x00000001)
-#define USB_EPFLUSH_FERB1 (0x00000002)
-#define USB_EPFLUSH_FERB2 (0x00000004)
-#define USB_EPFLUSH_FERB3 (0x00000008)
-#define USB_EPFLUSH_FERB4 (0x00000010)
-#define USB_EPFLUSH_FERB5 (0x00000020)
-
-/* Bit definitions and macros for USB_EPSR */
-#define USB_EPSR_ERBR(x) (((x)&0x0000003F)<<0)
-#define USB_EPSR_ETBR(x) (((x)&0x0000003F)<<16)
-#define USB_EPSR_ETBR0 (0x00010000)
-#define USB_EPSR_ETBR1 (0x00020000)
-#define USB_EPSR_ETBR2 (0x00040000)
-#define USB_EPSR_ETBR3 (0x00080000)
-#define USB_EPSR_ETBR4 (0x00100000)
-#define USB_EPSR_ETBR5 (0x00200000)
-#define USB_EPSR_ERBR0 (0x00000001)
-#define USB_EPSR_ERBR1 (0x00000002)
-#define USB_EPSR_ERBR2 (0x00000004)
-#define USB_EPSR_ERBR3 (0x00000008)
-#define USB_EPSR_ERBR4 (0x00000010)
-#define USB_EPSR_ERBR5 (0x00000020)
-
-/* Bit definitions and macros for USB_EPCOMPLETE */
-#define USB_EPCOMPLETE_ERCE(x) (((x)&0x0000003F)<<0)
-#define USB_EPCOMPLETE_ETCE(x) (((x)&0x0000003F)<<16)
-#define USB_EPCOMPLETE_ETCE0 (0x00010000)
-#define USB_EPCOMPLETE_ETCE1 (0x00020000)
-#define USB_EPCOMPLETE_ETCE2 (0x00040000)
-#define USB_EPCOMPLETE_ETCE3 (0x00080000)
-#define USB_EPCOMPLETE_ETCE4 (0x00100000)
-#define USB_EPCOMPLETE_ETCE5 (0x00200000)
-#define USB_EPCOMPLETE_ERCE0 (0x00000001)
-#define USB_EPCOMPLETE_ERCE1 (0x00000002)
-#define USB_EPCOMPLETE_ERCE2 (0x00000004)
-#define USB_EPCOMPLETE_ERCE3 (0x00000008)
-#define USB_EPCOMPLETE_ERCE4 (0x00000010)
-#define USB_EPCOMPLETE_ERCE5 (0x00000020)
-
-/* Bit definitions and macros for USB_EPCR0 */
-#define USB_EPCR0_RXS (0x00000001)
-#define USB_EPCR0_RXT(x) (((x)&0x00000003)<<2)
-#define USB_EPCR0_RXE (0x00000080)
-#define USB_EPCR0_TXS (0x00010000)
-#define USB_EPCR0_TXT(x) (((x)&0x00000003)<<18)
-#define USB_EPCR0_TXE (0x00800000)
-
-/* Bit definitions and macros for USB_EPCR */
-#define USB_EPCR_RXS (0x00000001)
-#define USB_EPCR_RXD (0x00000002)
-#define USB_EPCR_RXT(x) (((x)&0x00000003)<<2)
-#define USB_EPCR_RXI (0x00000020)
-#define USB_EPCR_RXR (0x00000040)
-#define USB_EPCR_RXE (0x00000080)
-#define USB_EPCR_TXS (0x00010000)
-#define USB_EPCR_TXD (0x00020000)
-#define USB_EPCR_TXT(x) (((x)&0x00000003)<<18)
-#define USB_EPCR_TXI (0x00200000)
-#define USB_EPCR_TXR (0x00400000)
-#define USB_EPCR_TXE (0x00800000)
-#define USB_EPCR_TXT_CONTROL (0x00000000)
-#define USB_EPCR_TXT_ISO (0x00040000)
-#define USB_EPCR_TXT_BULK (0x00080000)
-#define USB_EPCR_TXT_INT (0x000C0000)
-#define USB_EPCR_RXT_CONTROL (0x00000000)
-#define USB_EPCR_RXT_ISO (0x00000004)
-#define USB_EPCR_RXT_BULK (0x00000008)
-#define USB_EPCR_RXT_INT (0x0000000C)