diff options
| author | sakumisu <[email protected]> | 2025-08-04 21:47:55 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2025-08-04 21:47:55 +0800 |
| commit | 599b11ef1a4fe68a00557d6a637826c90b93ba5a (patch) | |
| tree | 6fbc3e485ac9c12a3b2118cf7de0ff064d5ef11f | |
| parent | 7037fd0e8d795c249298058818225812df54aaae (diff) | |
update(osal/idf): change xtaskcreate to xTaskCreatePinnedToCore
Signed-off-by: sakumisu <[email protected]>
| -rw-r--r-- | osal/idf/usb_osal_idf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/osal/idf/usb_osal_idf.c b/osal/idf/usb_osal_idf.c index 77bccfb3..b87db74f 100644 --- a/osal/idf/usb_osal_idf.c +++ b/osal/idf/usb_osal_idf.c @@ -17,7 +17,7 @@ usb_osal_thread_t usb_osal_thread_create(const char *name, uint32_t stack_size, { TaskHandle_t htask = NULL; stack_size /= sizeof(StackType_t); - xTaskCreate(entry, name, stack_size, args, configMAX_PRIORITIES - 1 - prio, &htask); + xTaskCreatePinnedToCore(entry, name, stack_size, args, configMAX_PRIORITIES - 1 - prio, &htask, CONFIG_ESP_TIMER_TASK_AFFINITY); return (usb_osal_thread_t)htask; } |
