arrange task core

pull/216/head
yehangyang 2022-03-03 11:31:15 +08:00
parent 1c94ddfb04
commit 075eb1c081
6 changed files with 6 additions and 15 deletions

View File

@ -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 *));

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}