summaryrefslogtreecommitdiff
path: root/firmware/usb.c
diff options
context:
space:
mode:
authorMichael Sparmann <theseven@rockbox.org>2010-10-25 12:36:57 +0000
committerMichael Sparmann <theseven@rockbox.org>2010-10-25 12:36:57 +0000
commit01cdb6a21f0a7737bc51c4997d66bd152db694a8 (patch)
treecc98be9a47e120f62c3b946d2589f00831b7d178 /firmware/usb.c
parent0952848368e403f81541e222f941ec46b0e583a4 (diff)
downloadrockbox-01cdb6a21f0a7737bc51c4997d66bd152db694a8.tar.gz
rockbox-01cdb6a21f0a7737bc51c4997d66bd152db694a8.zip
Fix screendump on iPod Nano 2G by increasing the usb thread stack size and reducing the stack usage of FAT and storage functions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28356 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usb.c')
-rw-r--r--firmware/usb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index af16b7d4bd..a76eb66fef 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -69,10 +69,9 @@ static int usb_state;
69static int usb_mmc_countdown = 0; 69static int usb_mmc_countdown = 0;
70#endif 70#endif
71 71
72/* FIXME: The extra 0x800 is consumed by fat_mount() when the fsinfo 72/* Make sure there's enough stack space for screendump */
73 needs updating */
74#ifdef USB_FULL_INIT 73#ifdef USB_FULL_INIT
75static long usb_stack[(DEFAULT_STACK_SIZE + 0x800)/sizeof(long)]; 74static long usb_stack[(DEFAULT_STACK_SIZE + SECTOR_SIZE + BMP_LINESIZE)/sizeof(long)];
76static const char usb_thread_name[] = "usb"; 75static const char usb_thread_name[] = "usb";
77static unsigned int usb_thread_entry = 0; 76static unsigned int usb_thread_entry = 0;
78#ifndef USB_STATUS_BY_EVENT 77#ifndef USB_STATUS_BY_EVENT