FuzePlus USB+screen dump overflows usbstack

Bump USB stack by 128 bytes

adds USB_EXTRA_STACK

Change-Id: I12839edbe889c878482081cf59fc6540384673ac
This commit is contained in:
William Wilgus 2020-11-02 21:30:41 -05:00
parent 0c99a3f9fb
commit 611c18704c
2 changed files with 5 additions and 1 deletions

View file

@ -193,6 +193,7 @@
/* enable these for the experimental usb stack */
#define HAVE_USBSTACK
#define USB_EXTRA_STACK 0x80
//#define USB_HANDLED_BY_OF
#define USB_VENDOR_ID 0x0781
#define USB_PRODUCT_ID 0x74e1

View file

@ -68,7 +68,10 @@ static int usb_mmc_countdown = 0;
/* Make sure there's enough stack space for screendump */
#ifdef USB_FULL_INIT
static long usb_stack[(DEFAULT_STACK_SIZE + DUMP_BMP_LINESIZE)/sizeof(long)];
#ifndef USB_EXTRA_STACK
# define USB_EXTRA_STACK 0x0 /*Define in firmware/export/config/[target].h*/
#endif
static long usb_stack[(DEFAULT_STACK_SIZE + DUMP_BMP_LINESIZE + USB_EXTRA_STACK)/sizeof(long)];
static const char usb_thread_name[] = "usb";
static unsigned int usb_thread_entry = 0;
static bool usb_monitor_enabled = false;