Skip to content

Commit 3b611a5

Browse files
committed
esp-idf remove definition of main_task
1 parent 5a4a346 commit 3b611a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

FreeRTOS/portable/esp-idf/port_common.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ volatile unsigned port_xSchedulerRunning[portNUM_PROCESSORS] = {0};
4747
#error "FreeRTOS and system configuration mismatch regarding the use of multiple cores."
4848
#endif
4949

50+
#if !defined CONFIG_IDF_RTOS_RTTHREAD
5051
static void main_task(void* args);
52+
#endif
5153

5254
#ifdef CONFIG_ESP_SYSTEM_GDBSTUB_RUNTIME
5355
void esp_gdbstub_init(void);
@@ -87,6 +89,7 @@ static bool other_cpu_startup_idle_hook_cb(void)
8789
}
8890
#endif
8991

92+
#if !defined CONFIG_IDF_RTOS_RTTHREAD
9093
static void main_task(void* args)
9194
{
9295
#if !CONFIG_FREERTOS_UNICORE
@@ -133,3 +136,4 @@ static void main_task(void* args)
133136
app_main();
134137
vTaskDelete(NULL);
135138
}
139+
#endif

0 commit comments

Comments
 (0)