diff --git a/apps/main/apps.cpp b/apps/main/apps.cpp index 69196e5..04ea58e 100644 --- a/apps/main/apps.cpp +++ b/apps/main/apps.cpp @@ -18,6 +18,7 @@ #include "ibrt.h" #include "key_handler.h" #include "led_control.h" +#include "rb_codec.h" #ifdef BTIF_BLE_APP_DATAPATH_SERVER #include "app_ble_cmd_handler.h" @@ -71,12 +72,6 @@ enum APP_POWERON_CASE_T { APP_POWERON_CASE_NUM }; -#ifdef RB_CODEC -extern int rb_ctl_init(); -extern bool rb_ctl_is_init_done(void); -extern void app_rbplay_audio_reset_pause_status(void); -#endif - #ifdef __SUPPORT_ANC_SINGLE_MODE_WITHOUT_BT__ extern bool app_pwr_key_monitor_get_val(void); static bool anc_single_mode_on = false; @@ -821,7 +816,6 @@ extern "C" void app_bt_key(APP_KEY_STATUS *status, void *param) { } } - void app_voice_assistant_key(APP_KEY_STATUS *status, void *param) { TRACE(2, "%s event %d", __func__, status->event); #if defined(BISTO_ENABLED) || defined(__AI_VOICE__) diff --git a/apps/main/ibrt.h b/apps/main/ibrt.h index a3183a0..6833296 100644 --- a/apps/main/ibrt.h +++ b/apps/main/ibrt.h @@ -1,5 +1,4 @@ -#ifndef IBRT_H_ -#define IBRT_H_ +#pragma once #include #ifdef __cplusplus @@ -13,4 +12,4 @@ uint8_t get_nv_role(void); #ifdef __cplusplus }; #endif -#endif \ No newline at end of file + diff --git a/apps/main/key_handler.h b/apps/main/key_handler.h index 7618ab8..29ebbd4 100644 --- a/apps/main/key_handler.h +++ b/apps/main/key_handler.h @@ -1,7 +1,5 @@ -#ifndef KEY_HANDLER_H_ -#define KEY_HANDLER_H_ +#pragma once void app_key_init(void); void app_key_init_on_charging(void); -#endif \ No newline at end of file diff --git a/apps/main/led_control.h b/apps/main/led_control.h index c9ede3d..252705d 100644 --- a/apps/main/led_control.h +++ b/apps/main/led_control.h @@ -1,9 +1,6 @@ -#ifndef LED_CONTROL_H_ -#define LED_CONTROL_H_ +#pragma once void LED_statusinit(void); void startLED_status(int ms); void stopLED_status(void); void LED_statusfun(const void *); - -#endif \ No newline at end of file diff --git a/apps/main/rb_codec.h b/apps/main/rb_codec.h new file mode 100644 index 0000000..a359d84 --- /dev/null +++ b/apps/main/rb_codec.h @@ -0,0 +1,7 @@ +#pragma once + +#ifdef RB_CODEC +extern int rb_ctl_init(); +extern bool rb_ctl_is_init_done(void); +extern void app_rbplay_audio_reset_pause_status(void); +#endif \ No newline at end of file