From 67a5c56103f5f57d778be90a6babdf5726295bfd Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Mon, 16 Feb 2009 21:45:40 +0000 Subject: 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 --- firmware/usbstack/usb_serial.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'firmware/usbstack') diff --git a/firmware/usbstack/usb_serial.c b/firmware/usbstack/usb_serial.c index 1b143d5..febd052 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); } -- cgit v1.1