summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-09-27 12:33:36 +0700
committerhathach <[email protected]>2023-09-27 12:34:45 +0700
commit6dc64eaa28ab905063233895345ba3c1186b836d (patch)
tree55aec25223a191b6216ff8c54bddc5cd5b8b7673 /examples
parent2f6592de7f94851cfcca411242398c5da7b792de (diff)
max3421 communication work with esp32 up to enumeration, seems still have a bit of issue
Diffstat (limited to 'examples')
-rw-r--r--examples/host/cdc_msc_hid_freertos/src/cdc_app.c2
-rw-r--r--examples/host/cdc_msc_hid_freertos/src/main.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/examples/host/cdc_msc_hid_freertos/src/cdc_app.c b/examples/host/cdc_msc_hid_freertos/src/cdc_app.c
index fc2b1228d..943e534d8 100644
--- a/examples/host/cdc_msc_hid_freertos/src/cdc_app.c
+++ b/examples/host/cdc_msc_hid_freertos/src/cdc_app.c
@@ -68,7 +68,7 @@ void cdc_app_task(void* param) {
}
}
- taskYIELD();
+ vTaskDelay(1);
}
}
diff --git a/examples/host/cdc_msc_hid_freertos/src/main.c b/examples/host/cdc_msc_hid_freertos/src/main.c
index d5574789f..88e742ee2 100644
--- a/examples/host/cdc_msc_hid_freertos/src/main.c
+++ b/examples/host/cdc_msc_hid_freertos/src/main.c
@@ -40,6 +40,7 @@
#include "freertos/timers.h"
#define USBH_STACK_SIZE 4096
+ #define CDC_STACK_SZIE 2048
#else
#include "FreeRTOS.h"
#include "semphr.h"
@@ -49,9 +50,9 @@
// Increase stack size when debug log is enabled
#define USBH_STACK_SIZE (3*configMINIMAL_STACK_SIZE/2) * (CFG_TUSB_DEBUG ? 2 : 1)
+ #define CDC_STACK_SZIE (3*configMINIMAL_STACK_SIZE/2)
#endif
-#define CDC_STACK_SZIE (3*configMINIMAL_STACK_SIZE/2)
//--------------------------------------------------------------------+
// MACRO CONSTANT TYPEDEF PROTOTYPES