summaryrefslogtreecommitdiffstats
path: root/firmware/usbstack/usb_serial.c
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/usbstack/usb_serial.c
parente154c360f530f736054f9a0313175c150b6d11e4 (diff)
downloadrockbox-67a5c56103f5f57d778be90a6babdf5726295bfd.tar.gz
rockbox-67a5c56103f5f57d778be90a6babdf5726295bfd.tar.bz2
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/usbstack/usb_serial.c')
-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
.bInterval = 0
};
-#define BUFFER_SIZE 512 /* Max 16k because of controller limitations */
+#define BUFFER_SIZE 512
#if CONFIG_CPU == IMX31L
static unsigned char send_buffer[BUFFER_SIZE]
USBDEVBSS_ATTR __attribute__((aligned(32)));
static unsigned char receive_buffer[32]
USBDEVBSS_ATTR __attribute__((aligned(32)));
#else
-static unsigned char send_buffer[BUFFER_SIZE] __attribute__((aligned(32)));
-static unsigned char receive_buffer[32] __attribute__((aligned(32)));
+static unsigned char send_buffer[BUFFER_SIZE]
+ USB_DEVBSS_ATTR __attribute__((aligned(32)));
+static unsigned char receive_buffer[32]
+ USB_DEVBSS_ATTR __attribute__((aligned(32)));
#endif
static bool busy_sending = false;
@@ -151,6 +153,7 @@ void usb_serial_init_connection(void)
{
sendout();
}
+ active=true;
mutex_unlock(&sendlock);
}