forked from len0rd/rockbox
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
This commit is contained in:
parent
c567fc9be2
commit
3e7715d2f5
1 changed files with 1 additions and 8 deletions
|
@ -56,18 +56,11 @@ static struct usb_endpoint_descriptor __attribute__((aligned(2))) endpoint_descr
|
||||||
.bInterval = 0
|
.bInterval = 0
|
||||||
};
|
};
|
||||||
|
|
||||||
#define BUFFER_SIZE 150
|
#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]
|
static unsigned char send_buffer[BUFFER_SIZE]
|
||||||
USB_DEVBSS_ATTR __attribute__((aligned(32)));
|
USB_DEVBSS_ATTR __attribute__((aligned(32)));
|
||||||
static unsigned char receive_buffer[32]
|
static unsigned char receive_buffer[32]
|
||||||
USB_DEVBSS_ATTR __attribute__((aligned(32)));
|
USB_DEVBSS_ATTR __attribute__((aligned(32)));
|
||||||
#endif
|
|
||||||
|
|
||||||
static void sendout(void);
|
static void sendout(void);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue