mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-05-12 19:53:18 -04:00
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
This commit is contained in:
parent
e154c360f5
commit
67a5c56103
1 changed files with 6 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue