summaryrefslogtreecommitdiff
path: root/firmware/usbstack/usb_serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/usbstack/usb_serial.c')
-rw-r--r--firmware/usbstack/usb_serial.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/firmware/usbstack/usb_serial.c b/firmware/usbstack/usb_serial.c
index f39035462f..08eb1213ea 100644
--- a/firmware/usbstack/usb_serial.c
+++ b/firmware/usbstack/usb_serial.c
@@ -53,10 +53,16 @@ struct usb_endpoint_descriptor __attribute__((aligned(2))) endpoint_descriptor =
53}; 53};
54 54
55#define BUFFER_SIZE 512 /* Max 16k because of controller limitations */ 55#define BUFFER_SIZE 512 /* Max 16k because of controller limitations */
56#if CONFIG_CPU == IMX31L
56static unsigned char send_buffer[BUFFER_SIZE] 57static unsigned char send_buffer[BUFFER_SIZE]
57 USBDEVBSS_ATTR __attribute__((aligned(32))); 58 USBDEVBSS_ATTR __attribute__((aligned(32)));
58static unsigned char receive_buffer[512] 59static unsigned char receive_buffer[32]
59 USBDEVBSS_ATTR __attribute__((aligned(32))); 60 USBDEVBSS_ATTR __attribute__((aligned(32)));
61#else
62static unsigned char send_buffer[BUFFER_SIZE] __attribute__((aligned(32)));
63static unsigned char receive_buffer[32] __attribute__((aligned(32)));
64#endif
65
60static bool busy_sending = false; 66static bool busy_sending = false;
61static int buffer_start; 67static int buffer_start;
62static int buffer_length; 68static int buffer_length;