diff options
| author | hathach <[email protected]> | 2020-11-27 15:54:55 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-11-27 15:54:55 +0700 |
| commit | 94527951a0fef9c1383ff9a3bbc8167f21008f4e (patch) | |
| tree | 4aa0a3e9477bef225d87c9c12c66913dddcb604f /examples | |
| parent | 4a2baf400ea1ecf220b18352ec45dbe455741317 (diff) | |
add bus suspend & resume support for esp32s2
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/device/hid_composite_freertos/src/main.c | 7 |
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; |
