39 lines
857 B
C
39 lines
857 B
C
|
#ifndef APP_MAIN_H
|
|||
|
#define APP_MAIN_H
|
|||
|
|
|||
|
typedef struct _APP_VAR {
|
|||
|
s8 music_volume;
|
|||
|
s8 call_volume;
|
|||
|
s8 wtone_volume;
|
|||
|
u8 opid_play_vol_sync;
|
|||
|
u8 aec_dac_gain;
|
|||
|
u8 aec_mic_gain;
|
|||
|
u8 rf_power;
|
|||
|
u8 goto_poweroff_flag;
|
|||
|
u8 goto_poweroff_cnt;
|
|||
|
u8 play_poweron_tone;
|
|||
|
u8 remote_dev_company;
|
|||
|
u8 siri_stu;
|
|||
|
int auto_stop_page_scan_timer; //用于1拖2时,有一台连接上后,超过三分钟自动关闭Page Scan
|
|||
|
volatile int auto_shut_down_timer;
|
|||
|
volatile int wait_exit_timer;
|
|||
|
u16 auto_off_time;
|
|||
|
u16 warning_tone_v;
|
|||
|
u16 poweroff_tone_v;
|
|||
|
u32 start_time;
|
|||
|
s8 usb_mic_gain;
|
|||
|
} APP_VAR;
|
|||
|
|
|||
|
enum {
|
|||
|
KEY_USER_DEAL_POST = 0,
|
|||
|
KEY_USER_DEAL_POST_MSG,
|
|||
|
KEY_USER_DEAL_POST_EVENT,
|
|||
|
KEY_USER_DEAL_POST_2,
|
|||
|
};
|
|||
|
|
|||
|
extern APP_VAR app_var;
|
|||
|
|
|||
|
void app_switch(const char *name, int action);
|
|||
|
|
|||
|
#endif
|