use 4k stack for example with esp32sx
This commit is contained in:
parent
44b131e8cf
commit
7ad0af64cc
|
@ -38,12 +38,17 @@
|
||||||
#include "freertos/queue.h"
|
#include "freertos/queue.h"
|
||||||
#include "freertos/task.h"
|
#include "freertos/task.h"
|
||||||
#include "freertos/timers.h"
|
#include "freertos/timers.h"
|
||||||
|
|
||||||
|
#define USBD_STACK_SIZE 4096
|
||||||
#else
|
#else
|
||||||
#include "FreeRTOS.h"
|
#include "FreeRTOS.h"
|
||||||
#include "semphr.h"
|
#include "semphr.h"
|
||||||
#include "queue.h"
|
#include "queue.h"
|
||||||
#include "task.h"
|
#include "task.h"
|
||||||
#include "timers.h"
|
#include "timers.h"
|
||||||
|
|
||||||
|
// Increase stack size when debug log is enabled
|
||||||
|
#define USBD_STACK_SIZE (3*configMINIMAL_STACK_SIZE/2) * (CFG_TUSB_DEBUG ? 2 : 1)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
|
@ -65,14 +70,7 @@ enum {
|
||||||
StaticTimer_t blinky_tmdef;
|
StaticTimer_t blinky_tmdef;
|
||||||
TimerHandle_t blinky_tm;
|
TimerHandle_t blinky_tm;
|
||||||
|
|
||||||
// static task for usbd
|
// static task
|
||||||
// Increase stack size when debug log is enabled
|
|
||||||
#if CFG_TUSB_DEBUG
|
|
||||||
#define USBD_STACK_SIZE (3*configMINIMAL_STACK_SIZE)
|
|
||||||
#else
|
|
||||||
#define USBD_STACK_SIZE (3*configMINIMAL_STACK_SIZE/2)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
StackType_t usb_device_stack[USBD_STACK_SIZE];
|
StackType_t usb_device_stack[USBD_STACK_SIZE];
|
||||||
StaticTask_t usb_device_taskdef;
|
StaticTask_t usb_device_taskdef;
|
||||||
|
|
||||||
|
|
|
@ -39,12 +39,18 @@
|
||||||
#include "freertos/queue.h"
|
#include "freertos/queue.h"
|
||||||
#include "freertos/task.h"
|
#include "freertos/task.h"
|
||||||
#include "freertos/timers.h"
|
#include "freertos/timers.h"
|
||||||
|
|
||||||
|
#define USBD_STACK_SIZE 4096
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#include "FreeRTOS.h"
|
#include "FreeRTOS.h"
|
||||||
#include "semphr.h"
|
#include "semphr.h"
|
||||||
#include "queue.h"
|
#include "queue.h"
|
||||||
#include "task.h"
|
#include "task.h"
|
||||||
#include "timers.h"
|
#include "timers.h"
|
||||||
|
|
||||||
|
// Increase stack size when debug log is enabled
|
||||||
|
#define USBD_STACK_SIZE (3*configMINIMAL_STACK_SIZE/2) * (CFG_TUSB_DEBUG ? 2 : 1)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
|
@ -66,13 +72,7 @@ enum {
|
||||||
StaticTimer_t blinky_tmdef;
|
StaticTimer_t blinky_tmdef;
|
||||||
TimerHandle_t blinky_tm;
|
TimerHandle_t blinky_tm;
|
||||||
|
|
||||||
// static task for usbd
|
// static task
|
||||||
#if CFG_TUSB_DEBUG
|
|
||||||
#define USBD_STACK_SIZE (3*configMINIMAL_STACK_SIZE)
|
|
||||||
#else
|
|
||||||
#define USBD_STACK_SIZE (3*configMINIMAL_STACK_SIZE/2)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
StackType_t usb_device_stack[USBD_STACK_SIZE];
|
StackType_t usb_device_stack[USBD_STACK_SIZE];
|
||||||
StaticTask_t usb_device_taskdef;
|
StaticTask_t usb_device_taskdef;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue