summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/export/config/sansafuzeplus.h1
-rw-r--r--firmware/usb.c5
2 files changed, 5 insertions, 1 deletions
diff --git a/firmware/export/config/sansafuzeplus.h b/firmware/export/config/sansafuzeplus.h
index 4b3591931f..a853cb13b5 100644
--- a/firmware/export/config/sansafuzeplus.h
+++ b/firmware/export/config/sansafuzeplus.h
@@ -193,6 +193,7 @@
193 193
194/* enable these for the experimental usb stack */ 194/* enable these for the experimental usb stack */
195#define HAVE_USBSTACK 195#define HAVE_USBSTACK
196#define USB_EXTRA_STACK 0x80
196//#define USB_HANDLED_BY_OF 197//#define USB_HANDLED_BY_OF
197#define USB_VENDOR_ID 0x0781 198#define USB_VENDOR_ID 0x0781
198#define USB_PRODUCT_ID 0x74e1 199#define USB_PRODUCT_ID 0x74e1
diff --git a/firmware/usb.c b/firmware/usb.c
index f97cc75ffe..e0c0c45865 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -68,7 +68,10 @@ static int usb_mmc_countdown = 0;
68 68
69/* Make sure there's enough stack space for screendump */ 69/* Make sure there's enough stack space for screendump */
70#ifdef USB_FULL_INIT 70#ifdef USB_FULL_INIT
71static long usb_stack[(DEFAULT_STACK_SIZE + DUMP_BMP_LINESIZE)/sizeof(long)]; 71#ifndef USB_EXTRA_STACK
72# define USB_EXTRA_STACK 0x0 /*Define in firmware/export/config/[target].h*/
73#endif
74static long usb_stack[(DEFAULT_STACK_SIZE + DUMP_BMP_LINESIZE + USB_EXTRA_STACK)/sizeof(long)];
72static const char usb_thread_name[] = "usb"; 75static const char usb_thread_name[] = "usb";
73static unsigned int usb_thread_entry = 0; 76static unsigned int usb_thread_entry = 0;
74static bool usb_monitor_enabled = false; 77static bool usb_monitor_enabled = false;