summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorTomasz Malesinski <tomal@rockbox.org>2006-02-12 23:18:36 +0000
committerTomasz Malesinski <tomal@rockbox.org>2006-02-12 23:18:36 +0000
commitd1e55082ee116180bc5fa279adb10a41349a8173 (patch)
treea83146976d2946fccfa7a88eb44cfaefbf7cf025 /firmware
parente7f7c3d15c2eccdc77d866fce6d4fe918567cac1 (diff)
Changed endpoint 0 max packet size to 64 in order to make the driver
work in highspeed mode. Changed debugging code a little. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8669 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/usb_serial.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/firmware/usb_serial.c b/firmware/usb_serial.c
index 0c4fb9d896..4c49b1b631 100644
--- a/firmware/usb_serial.c
+++ b/firmware/usb_serial.c
@@ -153,7 +153,7 @@ static unsigned char device_descriptor[18] = {
0x10, 0x01, /* USB version (1.1) */
0xff, 0xff, /* class and subclass */
0xff, /* protocol */
- 0x08, /* max packet size 0 */
+ 0x40, /* max packet size 0 */
0x02, 0x41, /* vendor (iRiver) */
0x07, 0xee, /* product (0xee07) */
0x01, 0x00, /* device version */
@@ -310,8 +310,8 @@ void usb_setup(int reset)
ISP1582_ADDRESS = reset ? 0x80: 0;
- usb_setup_endpoint(ep_index(0, DIR_RX), 8, 0);
- usb_setup_endpoint(ep_index(0, DIR_TX), 8, 0);
+ usb_setup_endpoint(ep_index(0, DIR_RX), 64, 0);
+ usb_setup_endpoint(ep_index(0, DIR_TX), 64, 0);
ISP1582_MODE |= 1; /* SOFTCT on */
@@ -808,11 +808,11 @@ static void usb_handle_int(int i)
#ifdef LCD_DEBUG
/*
char s[10];
- int_count[i]++;
snprintf(s, sizeof(s), "%02d", i);
lcd_puts(0, 2, s);
lcd_update();
*/
+ int_count[i]++;
if (i == 10)
log_char('o');
if (i == 11)
@@ -845,7 +845,7 @@ static void usb_handle_int(int i)
void usb_handle_interrupts(void)
{
#ifdef LCD_DEBUG
- /* char s[20]; */
+ char s[20];
#endif
while (1)
@@ -870,14 +870,12 @@ void usb_handle_interrupts(void)
usb_handle_int(i);
#ifdef LCD_DEBUG
- /*
for (i = 0; i < 8; i++)
snprintf(s + i * 2, 3, "%02x", int_count[i]);
lcd_puts(0, 6, s);
for (i = 0; i < 8; i++)
snprintf(s + i * 2, 3, "%02x", int_count[i + 8]);
lcd_puts(0, 7, s);
- */
#endif
}
#ifdef LCD_DEBUG