diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2009-02-21 16:36:54 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2009-02-21 16:36:54 +0000 |
commit | 3e7715d2f52797aa5e3aedba3543cb29feb8b776 (patch) | |
tree | 43ab0dfd1939ceeff6067341652c69c82105e5d5 /firmware/usbstack/usb_serial.c | |
parent | c567fc9be20d12b9f6e246dffa99472b66677c28 (diff) | |
download | rockbox-3e7715d2f52797aa5e3aedba3543cb29feb8b776.tar.gz rockbox-3e7715d2f52797aa5e3aedba3543cb29feb8b776.zip |
small usb serial fixes. This seems to work fine on imx31, but for some reason it sometimes stops sending data on portalplayer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20077 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usbstack/usb_serial.c')
-rw-r--r-- | firmware/usbstack/usb_serial.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/firmware/usbstack/usb_serial.c b/firmware/usbstack/usb_serial.c index 08cc6f1d28..b7d5062237 100644 --- a/firmware/usbstack/usb_serial.c +++ b/firmware/usbstack/usb_serial.c | |||
@@ -56,18 +56,11 @@ static struct usb_endpoint_descriptor __attribute__((aligned(2))) endpoint_descr | |||
56 | .bInterval = 0 | 56 | .bInterval = 0 |
57 | }; | 57 | }; |
58 | 58 | ||
59 | #define BUFFER_SIZE 150 | 59 | #define BUFFER_SIZE 512 |
60 | #if CONFIG_CPU == IMX31L | ||
61 | static unsigned char send_buffer[BUFFER_SIZE] | ||
62 | USBDEVBSS_ATTR __attribute__((aligned(32))); | ||
63 | static unsigned char receive_buffer[32] | ||
64 | USBDEVBSS_ATTR __attribute__((aligned(32))); | ||
65 | #else | ||
66 | static unsigned char send_buffer[BUFFER_SIZE] | 60 | static unsigned char send_buffer[BUFFER_SIZE] |
67 | USB_DEVBSS_ATTR __attribute__((aligned(32))); | 61 | USB_DEVBSS_ATTR __attribute__((aligned(32))); |
68 | static unsigned char receive_buffer[32] | 62 | static unsigned char receive_buffer[32] |
69 | USB_DEVBSS_ATTR __attribute__((aligned(32))); | 63 | USB_DEVBSS_ATTR __attribute__((aligned(32))); |
70 | #endif | ||
71 | 64 | ||
72 | static void sendout(void); | 65 | static void sendout(void); |
73 | 66 | ||