⚡ arrange task core
parent
1c94ddfb04
commit
075eb1c081
|
@ -1,10 +1,5 @@
|
||||||
#include "sdkconfig.h"
|
|
||||||
#include "driver/gpio.h"
|
#include "driver/gpio.h"
|
||||||
|
|
||||||
#if CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID
|
|
||||||
#include "who_trace.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "app_buttom.hpp"
|
#include "app_buttom.hpp"
|
||||||
#include "app_camera.hpp"
|
#include "app_camera.hpp"
|
||||||
#include "app_lcd.hpp"
|
#include "app_lcd.hpp"
|
||||||
|
@ -15,10 +10,6 @@
|
||||||
|
|
||||||
extern "C" void app_main()
|
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_0 = xQueueCreate(2, sizeof(camera_fb_t *));
|
||||||
QueueHandle_t xQueueFrame_1 = 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 *));
|
QueueHandle_t xQueueFrame_2 = xQueueCreate(2, sizeof(camera_fb_t *));
|
||||||
|
|
|
@ -94,5 +94,5 @@ static void task(AppCamera *self)
|
||||||
|
|
||||||
void AppCamera::run()
|
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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -227,5 +227,5 @@ static void task(AppFace *self)
|
||||||
|
|
||||||
void AppFace::run()
|
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);
|
||||||
}
|
}
|
|
@ -174,5 +174,5 @@ static void task(AppLCD *self)
|
||||||
|
|
||||||
void AppLCD::run()
|
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);
|
||||||
}
|
}
|
|
@ -78,5 +78,5 @@ static void task(AppMotion *self)
|
||||||
|
|
||||||
void AppMotion::run()
|
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);
|
||||||
}
|
}
|
|
@ -209,6 +209,6 @@ AppSpeech::AppSpeech() : afe_handle(&esp_afe_sr_1mic), detected(false), command(
|
||||||
|
|
||||||
void AppSpeech::run()
|
void AppSpeech::run()
|
||||||
{
|
{
|
||||||
xTaskCreatePinnedToCore((TaskFunction_t)feed_handler, "SR_feed", 4 * 1024, this, 5, NULL, 0);
|
xTaskCreatePinnedToCore((TaskFunction_t)feed_handler, "App/SR/Feed", 4 * 1024, this, 5, NULL, 0);
|
||||||
xTaskCreatePinnedToCore((TaskFunction_t)detect_hander, "SR_detect", 5 * 1024, this, 5, NULL, 0);
|
xTaskCreatePinnedToCore((TaskFunction_t)detect_hander, "App/SR/Detect", 5 * 1024, this, 5, NULL, 0);
|
||||||
}
|
}
|
Loading…
Reference in New Issue