From 075eb1c081c50d5b4e997588309b3003548bf3ef Mon Sep 17 00:00:00 2001 From: yehangyang Date: Thu, 3 Mar 2022 11:31:15 +0800 Subject: [PATCH] :zap: arrange task core --- examples/esp32-s3-eye/main/app_main.cpp | 9 --------- examples/esp32-s3-eye/main/src/app_camera.cpp | 2 +- examples/esp32-s3-eye/main/src/app_face.cpp | 2 +- examples/esp32-s3-eye/main/src/app_lcd.cpp | 2 +- examples/esp32-s3-eye/main/src/app_motion.cpp | 2 +- examples/esp32-s3-eye/main/src/app_speech.cpp | 4 ++-- 6 files changed, 6 insertions(+), 15 deletions(-) diff --git a/examples/esp32-s3-eye/main/app_main.cpp b/examples/esp32-s3-eye/main/app_main.cpp index c86a46b..22fc339 100755 --- a/examples/esp32-s3-eye/main/app_main.cpp +++ b/examples/esp32-s3-eye/main/app_main.cpp @@ -1,10 +1,5 @@ -#include "sdkconfig.h" #include "driver/gpio.h" -#if CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID -#include "who_trace.h" -#endif - #include "app_buttom.hpp" #include "app_camera.hpp" #include "app_lcd.hpp" @@ -15,10 +10,6 @@ extern "C" void app_main() { -#if CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID - register_trace(); -#endif - QueueHandle_t xQueueFrame_0 = xQueueCreate(2, sizeof(camera_fb_t *)); QueueHandle_t xQueueFrame_1 = xQueueCreate(2, sizeof(camera_fb_t *)); QueueHandle_t xQueueFrame_2 = xQueueCreate(2, sizeof(camera_fb_t *)); diff --git a/examples/esp32-s3-eye/main/src/app_camera.cpp b/examples/esp32-s3-eye/main/src/app_camera.cpp index 824d91a..2c7bca9 100644 --- a/examples/esp32-s3-eye/main/src/app_camera.cpp +++ b/examples/esp32-s3-eye/main/src/app_camera.cpp @@ -94,5 +94,5 @@ static void task(AppCamera *self) void AppCamera::run() { - xTaskCreatePinnedToCore((TaskFunction_t)task, TAG, 2 * 1024, this, 5, NULL, 1); + xTaskCreatePinnedToCore((TaskFunction_t)task, TAG, 2 * 1024, this, 5, NULL, 0); } diff --git a/examples/esp32-s3-eye/main/src/app_face.cpp b/examples/esp32-s3-eye/main/src/app_face.cpp index 56b7b9f..be44ce4 100644 --- a/examples/esp32-s3-eye/main/src/app_face.cpp +++ b/examples/esp32-s3-eye/main/src/app_face.cpp @@ -227,5 +227,5 @@ static void task(AppFace *self) void AppFace::run() { - xTaskCreatePinnedToCore((TaskFunction_t)task, TAG, 5 * 1024, this, 5, NULL, 0); + xTaskCreatePinnedToCore((TaskFunction_t)task, TAG, 5 * 1024, this, 5, NULL, 1); } \ No newline at end of file diff --git a/examples/esp32-s3-eye/main/src/app_lcd.cpp b/examples/esp32-s3-eye/main/src/app_lcd.cpp index a71911b..6d2895c 100644 --- a/examples/esp32-s3-eye/main/src/app_lcd.cpp +++ b/examples/esp32-s3-eye/main/src/app_lcd.cpp @@ -174,5 +174,5 @@ static void task(AppLCD *self) void AppLCD::run() { - xTaskCreatePinnedToCore((TaskFunction_t)task, TAG, 2 * 1024, this, 5, NULL, 0); + xTaskCreatePinnedToCore((TaskFunction_t)task, TAG, 2 * 1024, this, 5, NULL, 1); } \ No newline at end of file diff --git a/examples/esp32-s3-eye/main/src/app_motion.cpp b/examples/esp32-s3-eye/main/src/app_motion.cpp index 3c78056..bebcfe6 100644 --- a/examples/esp32-s3-eye/main/src/app_motion.cpp +++ b/examples/esp32-s3-eye/main/src/app_motion.cpp @@ -78,5 +78,5 @@ static void task(AppMotion *self) void AppMotion::run() { - xTaskCreatePinnedToCore((TaskFunction_t)task, TAG, 3 * 1024, this, 6, NULL, 0); + xTaskCreatePinnedToCore((TaskFunction_t)task, TAG, 3 * 1024, this, 5, NULL, 0); } \ No newline at end of file diff --git a/examples/esp32-s3-eye/main/src/app_speech.cpp b/examples/esp32-s3-eye/main/src/app_speech.cpp index f566918..4d65558 100644 --- a/examples/esp32-s3-eye/main/src/app_speech.cpp +++ b/examples/esp32-s3-eye/main/src/app_speech.cpp @@ -209,6 +209,6 @@ AppSpeech::AppSpeech() : afe_handle(&esp_afe_sr_1mic), detected(false), command( void AppSpeech::run() { - xTaskCreatePinnedToCore((TaskFunction_t)feed_handler, "SR_feed", 4 * 1024, this, 5, NULL, 0); - xTaskCreatePinnedToCore((TaskFunction_t)detect_hander, "SR_detect", 5 * 1024, this, 5, NULL, 0); + xTaskCreatePinnedToCore((TaskFunction_t)feed_handler, "App/SR/Feed", 4 * 1024, this, 5, NULL, 0); + xTaskCreatePinnedToCore((TaskFunction_t)detect_hander, "App/SR/Detect", 5 * 1024, this, 5, NULL, 0); } \ No newline at end of file