summaryrefslogtreecommitdiff
path: root/firmware/usbstack
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/usbstack')
-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 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);
}