Code: Select all
TaskHandle_t handleTest = NULL;
static void test(void *data){
vTaskDelay(10000 / portTICK_PERIOD_MS);
ESP_LOGE("Test","will suspend now");
vTaskSuspend(handleTest);
ESP_LOGE("Test","just suspended");
}
int app_main(void)
{ system_init();
xTaskCreatePinnedToCore(&test,"Test",2000,NULL,30,&handleTest,0);
return 0;
}