From 140828563645d983ce8e5148dc571e946971ff86 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Thu, 20 Sep 2007 08:44:32 +0000 Subject: make use of register defines git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14767 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/usb/arcotg_dcd.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'firmware/drivers') diff --git a/firmware/drivers/usb/arcotg_dcd.c b/firmware/drivers/usb/arcotg_dcd.c index 0674342eb9..fe8ae803c0 100644 --- a/firmware/drivers/usb/arcotg_dcd.c +++ b/firmware/drivers/usb/arcotg_dcd.c @@ -488,13 +488,15 @@ static void reset_int(void) UDC_ENDPTFLUSH = ~0; - if ((UDC_PORTSC1 & (1 << 8)) == 0) { + if ((UDC_PORTSC1 & PORTSCX_PORT_RESET) == 0) { logf("TIMEOUT->port"); } - UDC_USBSTS = (1 << 6); + /* clear USB Reset status bit */ + UDC_USBSTS = USB_STS_RESET; - while ((UDC_USBSTS & (1 << 2)) == 0) { /* wait for port change */ + /* wait for port change */ + while ((UDC_USBSTS & USB_STS_PORT_CHANGE) == 0) { if (timer_expired(&t)) { logf("TIMEOUT->portchange"); } -- cgit v1.2.3