From 9e8590ad23e9e40a6adcb34df80fc11f75cfb0cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Tue, 13 Dec 2011 19:53:19 +0000 Subject: usb-drv-as3525v2.c: simplify a lot code, especially init sequence, is much more similar to usb-s3c6400x.c git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31231 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/usb-s3c6400x.h | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/usb-s3c6400x.h b/firmware/export/usb-s3c6400x.h index c788cd3..4c5f57e 100644 --- a/firmware/export/usb-s3c6400x.h +++ b/firmware/export/usb-s3c6400x.h @@ -326,11 +326,12 @@ /** Device IN Endpoint Common Interrupt Mask Register */ #define DIEPMSK (*((uint32_t volatile*)(OTGBASE + 0x810))) -/* the following apply to DIEPMSK and DIEPINT */ -#define DIEPINT_xfercompl (1 << 0) /** Transfer complete */ -#define DIEPINT_epdisabled (1 << 1) /** Endpoint disabled */ -#define DIEPINT_ahberr (1 << 2) /** AHB error */ +/* the following apply to DEPMSK and DEPINT */ +#define DEPINT_xfercompl (1 << 0) /** Transfer complete */ +#define DEPINT_epdisabled (1 << 1) /** Endpoint disabled */ +#define DEPINT_ahberr (1 << 2) /** AHB error */ #define DIEPINT_timeout (1 << 3) /** Timeout handshake (non-iso TX) */ +#define DOEPINT_setup (1 << 3) /** Setup Phase Done (control EPs)*/ #define DIEPINT_intktxfemp (1 << 4) /** IN token received with tx fifo empty */ #define DIEPINT_intknepmis (1 << 5) /** IN token received with ep mismatch */ #define DIEPINT_inepnakeff (1 << 6) /** IN endpoint NAK effective */ @@ -339,11 +340,6 @@ /** Device OUT Endpoint Common Interrupt Mask Register */ #define DOEPMSK (*((uint32_t volatile*)(OTGBASE + 0x814))) -/* the following apply to DOEPMSK and DOEPINT */ -#define DOEPINT_xfercompl (1 << 0) /** Transfer complete */ -#define DOEPINT_epdisabled (1 << 1) /** Endpoint disabled */ -#define DOEPINT_ahberr (1 << 2) /** AHB error */ -#define DOEPINT_setup (1 << 3) /** Setup Phase Done (control EPs)*/ /** Device All Endpoints Interrupt Register */ #define DAINT (*((uint32_t volatile*)(OTGBASE + 0x818))) -- cgit v1.1