#include "bk_private/bk_init.h" #include #include #include #include "components/bluetooth/bk_dm_ble.h" #include #include "cli.h" #include "media_service.h" #include "bt_manager.h" extern void user_app_main(void); extern void rtos_set_user_app_entry(beken_thread_function_t entry); #ifdef CONFIG_CACHE_CUSTOM_SRAM_MAPPING const unsigned int g_sram_addr_map[4] = { 0x38000000, 0x30020000, 0x38020000, 0x30000000 }; #endif void user_app_main(void) { } int main(void) { #if (CONFIG_SYS_CPU0) rtos_set_user_app_entry((beken_thread_function_t)user_app_main); //bk_set_printf_sync(true); //shell_set_log_level(BK_LOG_INFO); #endif bk_init(); media_service_init(); #if CONFIG_SYS_CPU0 if (!ate_is_enabled()) { bt_manager_init(); #if CONFIG_A2DP_SINK_DEMO extern int a2dp_sink_demo_init(uint8_t aac_supported); a2dp_sink_demo_init(0); #endif #if CONFIG_HFP_HF_DEMO extern int hfp_hf_demo_init(uint8_t msbc_supported); hfp_hf_demo_init(0); #endif #if CONFIG_BT extern int cli_headset_demo_init(void); cli_headset_demo_init(); #endif #if CONFIG_BLE extern int cli_ble_gatt_demo_init(void); cli_ble_gatt_demo_init(); #endif } #endif return 0; }