Change application entry point name back to app_main

This commit is contained in:
Ivan Grokhotkov 2016-09-26 14:48:41 +08:00
parent dabe53f082
commit 7cef0308dc
2 changed files with 4 additions and 3 deletions

View file

@ -55,7 +55,7 @@ static bool app_cpu_started = false;
static void do_global_ctors(void);
static void main_task(void* args);
extern void ets_setup_syscalls(void);
extern int main(void);
extern int app_main(void);
extern int _bss_start;
extern int _bss_end;
@ -166,7 +166,7 @@ static void do_global_ctors(void)
static void main_task(void* args)
{
main();
app_main();
vTaskDelete(NULL);
}

View file

@ -197,9 +197,10 @@ void bleAdvtTask(void *pvParameters)
}
}
int main()
int app_main()
{
bt_controller_init();
xTaskCreatePinnedToCore(&bleAdvtTask, "bleAdvtTask", 2048, NULL, 5, NULL, 0);
return 0;
}