summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2020-11-27 16:52:17 +0700
committerGitHub <[email protected]>2020-11-27 16:52:17 +0700
commit9f0f29cd403c4158f3d85892b23d638e4d34afec (patch)
treeabdada9a36f9472fc26877e4112440a2e3e46991 /examples
parent4a2baf400ea1ecf220b18352ec45dbe455741317 (diff)
parent8b34f2fca8f57a615f66773329fd238a9e416855 (diff)
Merge pull request #563 from hathach/add-esp32s2-suspend-wakeup
add bus suspend & resume support for esp32s2
Diffstat (limited to 'examples')
-rw-r--r--examples/device/hid_composite_freertos/src/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/device/hid_composite_freertos/src/main.c b/examples/device/hid_composite_freertos/src/main.c
index de065ee64..83c68b515 100644
--- a/examples/device/hid_composite_freertos/src/main.c
+++ b/examples/device/hid_composite_freertos/src/main.c
@@ -58,7 +58,12 @@ StaticTimer_t blinky_tmdef;
TimerHandle_t blinky_tm;
// static task for usbd
-#define USBD_STACK_SIZE (3*configMINIMAL_STACK_SIZE/2)
+#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];
StaticTask_t usb_device_taskdef;