usb: increase usb thread stack size

Change-Id: I07283a68056e095efba8019dac2aa37d65c0ef6c
This commit is contained in:
mojyack 2025-11-27 17:16:14 +09:00 committed by Solomon Peachy
parent c2e1094383
commit e50ad40814

View file

@ -86,7 +86,12 @@ static int usb_mmc_countdown = 0;
#ifndef USB_EXTRA_STACK
# define USB_EXTRA_STACK 0x0 /*Define in firmware/export/config/[target].h*/
#endif
static long usb_stack[(DEFAULT_STACK_SIZE*4 + DUMP_BMP_LINESIZE + USB_EXTRA_STACK)/sizeof(long)];
#ifdef USB_ENABLE_IAP
#define IAP_EXTRA_STACK DEFAULT_STACK_SIZE*2
#else
#define IAP_EXTRA_STACK 0
#endif
static long usb_stack[(DEFAULT_STACK_SIZE*4 + DUMP_BMP_LINESIZE + IAP_EXTRA_STACK + 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;