diff options
-rw-r--r-- | firmware/usbstack/usb_serial.c | 9 |
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 | |||
56 | .bInterval = 0 | 56 | .bInterval = 0 |
57 | }; | 57 | }; |
58 | 58 | ||
59 | #define BUFFER_SIZE 512 /* Max 16k because of controller limitations */ | 59 | #define BUFFER_SIZE 512 |
60 | #if CONFIG_CPU == IMX31L | 60 | #if CONFIG_CPU == IMX31L |
61 | static unsigned char send_buffer[BUFFER_SIZE] | 61 | static unsigned char send_buffer[BUFFER_SIZE] |
62 | USBDEVBSS_ATTR __attribute__((aligned(32))); | 62 | USBDEVBSS_ATTR __attribute__((aligned(32))); |
63 | static unsigned char receive_buffer[32] | 63 | static unsigned char receive_buffer[32] |
64 | USBDEVBSS_ATTR __attribute__((aligned(32))); | 64 | USBDEVBSS_ATTR __attribute__((aligned(32))); |
65 | #else | 65 | #else |
66 | static unsigned char send_buffer[BUFFER_SIZE] __attribute__((aligned(32))); | 66 | static unsigned char send_buffer[BUFFER_SIZE] |
67 | static unsigned char receive_buffer[32] __attribute__((aligned(32))); | 67 | USB_DEVBSS_ATTR __attribute__((aligned(32))); |
68 | static unsigned char receive_buffer[32] | ||
69 | USB_DEVBSS_ATTR __attribute__((aligned(32))); | ||
68 | #endif | 70 | #endif |
69 | 71 | ||
70 | static bool busy_sending = false; | 72 | static bool busy_sending = false; |
@@ -151,6 +153,7 @@ void usb_serial_init_connection(void) | |||
151 | { | 153 | { |
152 | sendout(); | 154 | sendout(); |
153 | } | 155 | } |
156 | active=true; | ||
154 | mutex_unlock(&sendlock); | 157 | mutex_unlock(&sendlock); |
155 | } | 158 | } |
156 | 159 | ||