From d85ff46bdf7008b0db9ac14c580dbaef1b0c233d Mon Sep 17 00:00:00 2001 From: yulong Date: Tue, 11 Oct 2016 08:05:58 -0400 Subject: [PATCH] commponent bt:modified the cpu_start.c app_main function to bt_app_main funciton --- components/bt/component.mk | 1 + components/esp32/cpu_start.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/bt/component.mk b/components/bt/component.mk index c45857050..cf2805bb7 100644 --- a/components/bt/component.mk +++ b/components/bt/component.mk @@ -49,6 +49,7 @@ COMPONENT_SRCDIRS := bluedroid/bta/dm \ bluedroid/main \ bluedroid/osi \ bluedroid/profiles/esp/ble_button \ + bluedroid/profiles/esp/wechat_AirSync \ bluedroid/profiles/esp \ bluedroid/profiles/std/avrc \ bluedroid/profiles/std/battery \ diff --git a/components/esp32/cpu_start.c b/components/esp32/cpu_start.c index 7b2ccdc60..7d875080b 100644 --- a/components/esp32/cpu_start.c +++ b/components/esp32/cpu_start.c @@ -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 void app_main(void); +extern void bt_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) { - app_main(); + bt_app_main(); vTaskDelete(NULL); }