#include "system/includes.h" #include "media/includes.h" #include "tone_player.h" #include "earphone.h" #include "app_config.h" #include "app_action.h" #include "app_task.h" #include "btstack/avctp_user.h" #include "btstack/btstack_task.h" #include "btctrler/btctrler_task.h" #include "btstack/frame_queque.h" #include "user_cfg.h" #include "aec_user.h" #include "classic/hci_lmp.h" #include "bt_common.h" #include "bt_ble.h" #include "bt_tws.h" #include "pbg_user.h" #include "btstack/bluetooth.h" #include "colorful_lights/colorful_lights.h" #if TCFG_AUDIO_ANC_ENABLE #include "audio_anc.h" #endif/*TCFG_AUDIO_ANC_ENABLE*/ #if TCFG_ANC_BOX_ENABLE #include "app_ancbox.h" #endif #if TCFG_USER_TWS_ENABLE #include "bt_tws.h" #endif #if TCFG_AUDIO_SPATIAL_EFFECT_ENABLE #include "spatial_imu_trim.h" #endif /*TCFG_AUDIO_SPATIAL_EFFECT_ENABLE*/ #if (TCFG_BLE_DEMO_SELECT == DEF_BLE_DEMO_ADV) #include "include/bt_ble.h" #endif #if TCFG_AUDIO_CVP_DUT_ENABLE #include "audio_cvp_dut.h" #endif /*TCFG_AUDIO_CVP_DUT_ENABLE*/ #if TCFG_CHARGESTORE_ENABLE || TCFG_TEST_BOX_ENABLE #include "app_chargestore.h" #endif #include "jl_kws/jl_kws_api.h" #include "asm/charge.h" #include "app_charge.h" #include "ui_manage.h" #include "app_chargestore.h" #include "app_umidigi_chargestore.h" #include "app_testbox.h" #include "app_online_cfg.h" #include "app_main.h" #include "app_power_manage.h" #include "gSensor/gSensor_manage.h" #include "key_event_deal.h" #include "classic/tws_api.h" #include "asm/pwm_led.h" #include "ir_sensor/ir_manage.h" #include "in_ear_detect/in_ear_manage.h" #include "vol_sync.h" #include "bt_background.h" #include "default_event_handler.h" #ifdef CONFIG_BOARD_AISPEECH_VAD_ASR extern int ais_platform_asr_open(void); extern void ais_platform_asr_close(void); #endif /*CONFIG_BOARD_AISPEECH_VAD_ASR*/ #define LOG_TAG_CONST EARPHONE #define LOG_TAG "[EARPHONE]" #define LOG_ERROR_ENABLE #define LOG_DEBUG_ENABLE #define LOG_INFO_ENABLE /* #define LOG_DUMP_ENABLE */ #define LOG_CLI_ENABLE #include "debug.h" static const struct application_operation app_earphone_ops = { .state_machine = state_machine, .event_handler = event_handler, }; /* * 注册earphone模式 */ REGISTER_APPLICATION(app_BLE) = { .name = "BLE", .action = ACTION_EARPHONE_MAIN, .ops = &app_earphone_ops, .state = APP_STA_DESTROY, };