summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2009-02-16 21:45:40 +0000
committerFrank Gevaerts <frank@gevaerts.be>2009-02-16 21:45:40 +0000
commit67a5c56103f5f57d778be90a6babdf5726295bfd (patch)
tree7d9562573663e78c0b79271c93d67fedebce6a81 /firmware
parente154c360f530f736054f9a0313175c150b6d11e4 (diff)
downloadrockbox-67a5c56103f5f57d778be90a6babdf5726295bfd.tar.gz
rockbox-67a5c56103f5f57d778be90a6babdf5726295bfd.zip
usb serial on PP seems to have broken. Fix it
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20023 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/usbstack/usb_serial.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/firmware/usbstack/usb_serial.c b/firmware/usbstack/usb_serial.c
index 1b143d56eb..febd052057 100644
--- a/firmware/usbstack/usb_serial.c
+++ b/firmware/usbstack/usb_serial.c
@@ -56,15 +56,17 @@ static struct usb_endpoint_descriptor __attribute__((aligned(2))) endpoint_descr
56 .bInterval = 0 56 .bInterval = 0
57}; 57};
58 58
59#define BUFFER_SIZE 512 /* Max 16k because of controller limitations */ 59#define BUFFER_SIZE 512
60#if CONFIG_CPU == IMX31L 60#if CONFIG_CPU == IMX31L
61static unsigned char send_buffer[BUFFER_SIZE] 61static unsigned char send_buffer[BUFFER_SIZE]
62 USBDEVBSS_ATTR __attribute__((aligned(32))); 62 USBDEVBSS_ATTR __attribute__((aligned(32)));
63static unsigned char receive_buffer[32] 63static unsigned char receive_buffer[32]
64 USBDEVBSS_ATTR __attribute__((aligned(32))); 64 USBDEVBSS_ATTR __attribute__((aligned(32)));
65#else 65#else
66static unsigned char send_buffer[BUFFER_SIZE] __attribute__((aligned(32))); 66static unsigned char send_buffer[BUFFER_SIZE]
67static unsigned char receive_buffer[32] __attribute__((aligned(32))); 67 USB_DEVBSS_ATTR __attribute__((aligned(32)));
68static unsigned char receive_buffer[32]
69 USB_DEVBSS_ATTR __attribute__((aligned(32)));
68#endif 70#endif
69 71
70static bool busy_sending = false; 72static bool busy_sending = false;
@@ -151,6 +153,7 @@ void usb_serial_init_connection(void)
151 { 153 {
152 sendout(); 154 sendout();
153 } 155 }
156 active=true;
154 mutex_unlock(&sendlock); 157 mutex_unlock(&sendlock);
155} 158}
156 159