Skip to content

Commit 5c1e135

Browse files
authored
feat(usb): global event task stack priority normalization
1 parent 0af5423 commit 5c1e135

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/esp32/HWCDC.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include "USB.h"
1515
#if SOC_USB_SERIAL_JTAG_SUPPORTED
1616

17-
#include "Arduino.h" // defines ARDUINO_SERIAL_EVENT_TASK_STACK_SIZE
17+
#include "Arduino.h" // defines ARDUINO_SERIAL_EVENT_TASK_STACK_SIZE and ARDUINO_SERIAL_EVENT_TASK_PRIORITY
1818
#include "esp32-hal.h"
1919
#include "esp32-hal-periman.h"
2020
#include "HWCDC.h"
@@ -61,7 +61,7 @@ static esp_err_t
6161
arduino_hw_cdc_event_handler_register_with(esp_event_base_t event_base, int32_t event_id, esp_event_handler_t event_handler, void *event_handler_arg) {
6262
if (!arduino_hw_cdc_event_loop_handle) {
6363
esp_event_loop_args_t event_task_args = {
64-
.queue_size = 5, .task_name = "arduino_hw_cdc_events", .task_priority = 5, .task_stack_size = ARDUINO_SERIAL_EVENT_TASK_STACK_SIZE, .task_core_id = tskNO_AFFINITY
64+
.queue_size = 5, .task_name = "arduino_hw_cdc_events", .task_priority = ARDUINO_SERIAL_EVENT_TASK_PRIORITY, .task_stack_size = ARDUINO_SERIAL_EVENT_TASK_STACK_SIZE, .task_core_id = tskNO_AFFINITY
6565
};
6666
if (esp_event_loop_create(&event_task_args, &arduino_hw_cdc_event_loop_handle) != ESP_OK) {
6767
log_e("esp_event_loop_create failed");

0 commit comments

Comments
 (0)