Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo_Only2.4G/output/eeprom.dat	(revision 379)
+++ /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo_Only2.4G/output/eeprom.dat	(working copy)
@@ -2,60 +2,64 @@
 02
 aa
 55
-d2
-04
+62
+05
 c2
 84
 00
-0e
+0f
 c0
 00
 00
-20
+21
 c0
 45
 80
-77
+9b
 c0
 4f
 80
-55
+79
 c0
 57
 00
-24
+25
+c0
+61
+80
+31
 c0
 63
 81
-0a
+2e
 c0
 64
 80
-82
+a6
 c0
 65
 00
-8b
+af
 c0
 68
 00
-a5
+c9
 c0
 69
-80
-fb
+81
+1f
 c0
 6a
-00
-fd
+01
+21
 c0
 6b
 00
-99
+bd
 c0
 6c
 80
-b6
+da
 20
 20
 13
@@ -63,15 +67,15 @@
 c0
 11
 00
-12
+13
 c0
 11
 80
-18
+19
 c0
 6e
-80
-f6
+81
+1a
 20
 20
 13
@@ -155,7 +159,7 @@
 20
 40
 00
-35
+59
 20
 40
 41
@@ -179,11 +183,11 @@
 20
 40
 00
-30
+54
 20
 40
-00
-ff
+01
+23
 6f
 e0
 c9
@@ -196,6 +200,146 @@
 20
 3b
 cb
+6f
+e4
+4b
+ab
+c2
+97
+c8
+0a
+6f
+e0
+c9
+38
+c0
+00
+00
+38
+20
+40
+3d
+65
+24
+34
+42
+eb
+20
+20
+3d
+59
+6f
+e4
+4b
+ab
+c3
+08
+c8
+03
+6f
+e4
+4b
+ab
+c2
+98
+48
+0c
+c3
+18
+c8
+0c
+20
+40
+00
+4f
+1f
+e1
+7e
+07
+68
+48
+cb
+cb
+98
+46
+7c
+00
+20
+22
+c8
+27
+20
+20
+48
+0c
+20
+40
+00
+46
+20
+34
+48
+12
+20
+20
+48
+06
+df
+20
+00
+02
+d8
+c0
+49
+93
+20
+40
+7e
+54
+58
+00
+ff
+ff
+e8
+41
+00
+06
+98
+46
+7c
+00
+24
+42
+fe
+56
+c2
+00
+00
+4a
+20
+60
+00
+00
+20
+40
+41
+21
+20
+40
+41
+15
+d8
+40
+00
+00
+60
+49
+cb
+8e
+20
+60
+00
+00
 58
 00
 48
@@ -207,7 +351,7 @@
 58
 00
 01
-0e
+32
 67
 e1
 48
@@ -239,7 +383,7 @@
 20
 40
 00
-3f
+63
 68
 48
 c9
@@ -251,7 +395,7 @@
 20
 40
 00
-4f
+73
 20
 20
 3b
@@ -595,7 +739,7 @@
 20
 40
 00
-95
+b9
 20
 20
 3e
@@ -623,11 +767,11 @@
 c0
 1e
 00
-9d
+c1
 c0
 1d
 00
-a2
+c6
 20
 20
 43
@@ -659,7 +803,7 @@
 24
 3a
 00
-cc
+f0
 20
 20
 48
@@ -671,7 +815,7 @@
 20
 40
 00
-a8
+cc
 20
 20
 40
@@ -722,8 +866,8 @@
 c1
 20
 3a
-00
-e1
+01
+05
 67
 e0
 cb
@@ -758,8 +902,8 @@
 be
 20
 40
-00
-de
+01
+02
 20
 40
 40
@@ -819,7 +963,7 @@
 20
 20
 00
-d6
+fa
 70
 48
 a5
@@ -850,8 +994,8 @@
 01
 20
 40
-00
-ff
+01
+23
 20
 40
 3e
@@ -875,7 +1019,7 @@
 da
 40
 00
-db
+ff
 20
 20
 31
@@ -887,7 +1031,7 @@
 c0
 00
 00
-cc
+f0
 20
 20
 43
@@ -898,8 +1042,8 @@
 a8
 da
 40
-00
-e1
+01
+05
 20
 20
 31
@@ -954,12 +1098,12 @@
 03
 20
 41
-00
-f0
+01
+14
 24
 41
-00
-f4
+01
+18
 20
 20
 48
@@ -994,8 +1138,8 @@
 e1
 24
 5a
-00
-f9
+01
+1d
 20
 20
 21
@@ -1011,7 +1155,7 @@
 20
 40
 01
-03
+27
 20
 20
 41
@@ -1019,7 +1163,7 @@
 20
 40
 01
-03
+27
 20
 20
 42
@@ -1031,7 +1175,7 @@
 20
 40
 01
-03
+27
 58
 00
 08
@@ -1059,7 +1203,7 @@
 70
 44
 84
-76
+77
 20
 40
 3f
@@ -1074,8 +1218,8 @@
 32
 20
 40
-00
-ff
+01
+23
 20
 40
 3e
@@ -1151,7 +1295,7 @@
 24
 21
 01
-24
+48
 20
 40
 25
@@ -1163,11 +1307,11 @@
 24
 2c
 01
-2a
+4e
 24
 37
 81
-2a
+4e
 20
 40
 48
@@ -1191,7 +1335,7 @@
 c0
 08
 01
-2c
+50
 20
 60
 00
@@ -1203,7 +1347,7 @@
 20
 20
 01
-1a
+3e
 70
 4b
 a3
@@ -1234,10 +1378,10 @@
 b2
 20
 20
-00
-ff
-e4
-b9
+01
+23
+86
+57
 aa
 55
 40
@@ -1268,7 +1412,7 @@
 40
 00
 00
-80
+88
 06
 59
 02
@@ -1399,7 +1543,7 @@
 4a
 00
 00
-80
+00
 03
 03
 aa
@@ -1565,7 +1709,7 @@
 0a
 60
 06
-05
+0a
 00
 64
 00
@@ -1694,8 +1838,8 @@
 00
 a8
 40
-15
-a0
+18
+a2
 c8
 12
 23
@@ -2401,152 +2545,8 @@
 e8
 41
 01
-93
-7a
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+d8
+9b
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-86
-ef
+5d
+cd
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo_Only2.4G/output/program.lis	(revision 379)
+++ /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo_Only2.4G/output/program.lis	(working copy)
@@ -1,393 +1,443 @@
               include "bt_format "
               org 0x0000
-0000 c284000e bbit1 8 ,pf_patch_ext 
-0001 c0000020 beq patch00_0 ,p_soft_reset 
-0002 c0458077 beq patch11_3 ,p_initialize_radio_cont 
-0003 c04f8055 beq patch13_7 ,p_init_param 
-0004 c0570024 beq patch15_6 ,p_app_init 
-0005 c063810a beq patch18_7 ,p_mouse_app_enter_hibernate 
-0006 c0648082 beq patch19_1 ,p_mouse_setgpio_hibernate 
-0007 c065008b beq patch19_2 ,p_mouse_lpm_before_common 
-0008 c06800a5 beq patch1a_0 ,p_mouse_seting_dpi 
-0009 c06980fb beq patch1a_3 ,p_mouse_init_sunt 
-000a c06a00fd beq patch1a_4 ,p_mouse_sensor_poweron 
-000b c06b0099 beq patch1a_6 ,p_mouse_priority_bb_event 
-000c c06c80b6 beq patch1b_1 ,p_mouse_bb_event_timer 
-000d 2020137c branch loop 
+0000 c284000f bbit1 8 ,pf_patch_ext 
+0001 c0000021 beq patch00_0 ,p_soft_reset 
+0002 c045809b beq patch11_3 ,p_initialize_radio_cont 
+0003 c04f8079 beq patch13_7 ,p_init_param 
+0004 c0570025 beq patch15_6 ,p_app_init 
+0005 c0618031 beq patch18_3 ,p_mouse_start_work 
+0006 c063812e beq patch18_7 ,p_mouse_app_enter_hibernate 
+0007 c06480a6 beq patch19_1 ,p_mouse_setgpio_hibernate 
+0008 c06500af beq patch19_2 ,p_mouse_lpm_before_common 
+0009 c06800c9 beq patch1a_0 ,p_mouse_seting_dpi 
+000a c069811f beq patch1a_3 ,p_mouse_init_sunt 
+000b c06a0121 beq patch1a_4 ,p_mouse_sensor_poweron 
+000c c06b00bd beq patch1a_6 ,p_mouse_priority_bb_event 
+000d c06c80da beq patch1b_1 ,p_mouse_bb_event_timer 
+000e 2020137c branch loop 
 
 pf_patch_ext:
-000e c0110012 beq patch24_2 ,p_spid_write_reg 
-000f c0118018 beq patch24_3 ,p_spid_read_reg 
-0010 c06e80f6 beq patch3b_5 ,p_g24_dispatch 
-0011 2020137c branch loop 
+000f c0110013 beq patch24_2 ,p_spid_write_reg 
+0010 c0118019 beq patch24_3 ,p_spid_read_reg 
+0011 c06e811a beq patch3b_5 ,p_g24_dispatch 
+0012 2020137c branch loop 
 
 p_spid_write_reg:
-0012 1fe22200 copy pdata ,rega 
-0013 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-0014 d840003e arg gpcfg_output_low ,temp 
-0015 20406093 call gpio_config_function_int 
-0016 1a227e00 copy rega ,pdata 
-0017 20205cc2 branch spid_write_reg + 3 
+0013 1fe22200 copy pdata ,rega 
+0014 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
+0015 d840003e arg gpcfg_output_low ,temp 
+0016 20406093 call gpio_config_function_int 
+0017 1a227e00 copy rega ,pdata 
+0018 20205cc2 branch spid_write_reg + 3 
 
 p_spid_read_reg:
-0018 1fe22200 copy pdata ,rega 
-0019 18422400 copy temp ,regb 
-001a 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-001b d840003e arg gpcfg_output_low ,temp 
-001c 20406093 call gpio_config_function_int 
-001d 1a227e00 copy rega ,pdata 
-001e 1a420400 copy regb ,temp 
-001f 20205cc9 branch spid_read_reg + 3 
+0019 1fe22200 copy pdata ,rega 
+001a 18422400 copy temp ,regb 
+001b 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
+001c d840003e arg gpcfg_output_low ,temp 
+001d 20406093 call gpio_config_function_int 
+001e 1a227e00 copy rega ,pdata 
+001f 1a420400 copy regb ,temp 
+0020 20205cc9 branch spid_read_reg + 3 
 
 p_soft_reset:
-0020 20800000 clear_stack 
-0021 204030f3 call app_param_init 
-0022 20403bfd call mouse_xtal_init 
-0023 20200804 branch soft_reset + 3 
+0021 20800000 clear_stack 
+0022 204030f3 call app_param_init 
+0023 20403bfd call mouse_xtal_init 
+0024 20200804 branch soft_reset + 3 
 
 p_app_init:
 
 p_mouse_init:
-0024 20406df3 call enable_authrom 
-0025 20400035 call p_mouse_setting_config 
-0026 204041a7 call mouse_init_sunt 
-0027 2040408e call mouse_dpi_config 
-0028 20758000 rtn wake 
-0029 20403d8a call mouse_usb_check_enable 
-002a 20404728 call mouse_drawing_optima_init 
-002b 20400030 call p_mouse_cb_fuction 
-002c 204000ff call p_mouse_sensor_powerdown 
-002d 6fe0c92a fetch 1 ,mem_usb_addr 
-002e c3838000 rtnbit1 7 
-002f 20203bcb branch mouse_init_wireless 
+0025 20406df3 call enable_authrom 
+0026 20400059 call p_mouse_setting_config 
+0027 204041a7 call mouse_init_sunt 
+0028 2040408e call mouse_dpi_config 
+0029 20758000 rtn wake 
+002a 20403d8a call mouse_usb_check_enable 
+002b 20404728 call mouse_drawing_optima_init 
+002c 20400054 call p_mouse_cb_fuction 
+002d 20400123 call p_mouse_sensor_powerdown 
+002e 6fe0c92a fetch 1 ,mem_usb_addr 
+002f c3838000 rtnbit1 7 
+0030 20203bcb branch mouse_init_wireless 
+
+p_mouse_start_work:
+0031 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0032 c297c80a bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
+0033 6fe0c938 fetch 1 ,mem_device_flag 
+0034 c0000038 beq mode_24g_device ,p_mouse_24g_start_mode 
+0035 20403d65 call mouse_wakeup_from_power_check 
+0036 243442eb nbranch mouse_buletooth_fast_conn_init ,user 
+0037 20203d59 branch mouse_start_reconnect_device 
+
+p_mouse_24g_start_mode:
+0038 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0039 c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
+003a 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+003b c298480c bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
+003c c318c80c bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
+003d 2040004f call p_mouse_key_check_once 
+003e 1fe17e07 and pdata ,0x07 ,pdata 
+003f 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
+0040 98467c00 isub temp ,null 
+0041 2022c827 branch mouse_24g_start_pair_mode ,zero 
+0042 2020480c branch mouse_24g_reconn_general_dongle 
+
+p_mouse_24g_reconn_dongle_start:
+0043 20400046 call p_g24_factory_check 
+0044 20344812 branch mouse_24g_start_auto_pair_next ,user 
+0045 20204806 branch mouse_24g_reconn_dongle_start 
+
+p_g24_factory_check:
+0046 df200002 arg 2 ,loopcnt 
+0047 d8c04993 arg mem_mouse_24g_addr ,contr 
+
+p_pdata_0xff_check:
+0048 20407e54 call enable_user 
+0049 5800ffff setarg 0xffff 
+
+p_pdata_0xff_check_loop:
+004a e8410006 ifetcht 2 ,contr 
+004b 98467c00 isub temp ,null 
+004c 2442fe56 ncall disable_user ,zero 
+004d c200004a loop p_pdata_0xff_check_loop 
+004e 20600000 rtn 
+
+p_mouse_key_check_once:
+004f 20404121 call mouse_check_key_gpio_once 
+0050 20404115 call mouse_check_key_gpio 
+0051 d8400000 arg 0 ,temp 
+0052 6049cb8e storet 3 ,mem_mouse_lkey_press_status 
+0053 20600000 rtn 
 
 p_mouse_cb_fuction:
-0030 58004866 setarg mouse_24g_package_data 
-0031 67e1489b store 2 ,mem_cb_24g_transmit_data 
-0032 5800010e setarg p_mouse_24g_search_dongle 
-0033 67e1489d store 2 ,mem_cb_24g_search_receiver 
-0034 20203bd3 branch mouse_cb_fuction_next 
+0054 58004866 setarg mouse_24g_package_data 
+0055 67e1489b store 2 ,mem_cb_24g_transmit_data 
+0056 58000132 setarg p_mouse_24g_search_dongle 
+0057 67e1489d store 2 ,mem_cb_24g_search_receiver 
+0058 20203bd3 branch mouse_cb_fuction_next 
 
 p_mouse_setting_config:
-0035 20758000 rtn wake 
-0036 20402607 call g24_transmit_init 
-0037 204022ff call g24_chmap_param_init 
-0038 20403f1e call mouse_gpio_init 
-0039 20403d13 call mouse_param_init 
-003a 2040003f call p_mouse_sensor_set_angle 
-003b 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-003c 20406050 call gpio_config_input 
-003d 2040004f call p_ice_gpio_set_float 
-003e 20203bf5 branch mouse_setting_config_next 
+0059 20758000 rtn wake 
+005a 20402607 call g24_transmit_init 
+005b 204022ff call g24_chmap_param_init 
+005c 20403f1e call mouse_gpio_init 
+005d 20403d13 call mouse_param_init 
+005e 20400063 call p_mouse_sensor_set_angle 
+005f 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+0060 20406050 call gpio_config_input 
+0061 20400073 call p_ice_gpio_set_float 
+0062 20203bf5 branch mouse_setting_config_next 
 
 p_mouse_sensor_set_angle:
-003f 6fe0c924 fetch 1 ,mem_sensor_angle_default 
-0040 67e0c928 store 1 ,mem_config_sensor_angle 
-0041 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-0042 c17f8000 rtneq gpio_disable 
-0043 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-0044 d840003e arg gpcfg_output_low ,temp 
-0045 20406093 call gpio_config_function_int 
-0046 dfe00003 arg 3 ,pdata 
-0047 d840003e arg gpcfg_output_low ,temp 
-0048 20406093 call gpio_config_function_int 
-0049 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-004a 20403f56 call mouse_gpio_config_input_pu 
-004b 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-004c 20406059 call gpio_get_bit 
-004d 2440c2aa ncall mouse_sensor_switch_angle ,true 
-004e 20203f54 branch mouse_gpio_config_input_pd 
+0063 6fe0c924 fetch 1 ,mem_sensor_angle_default 
+0064 67e0c928 store 1 ,mem_config_sensor_angle 
+0065 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
+0066 c17f8000 rtneq gpio_disable 
+0067 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
+0068 d840003e arg gpcfg_output_low ,temp 
+0069 20406093 call gpio_config_function_int 
+006a dfe00003 arg 3 ,pdata 
+006b d840003e arg gpcfg_output_low ,temp 
+006c 20406093 call gpio_config_function_int 
+006d 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+006e 20403f56 call mouse_gpio_config_input_pu 
+006f 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+0070 20406059 call gpio_get_bit 
+0071 2440c2aa ncall mouse_sensor_switch_angle ,true 
+0072 20203f54 branch mouse_gpio_config_input_pd 
 
 p_ice_gpio_set_float:
-004f 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-0050 d8400000 arg gpcfg_high_impedance ,temp 
-0051 20406093 call gpio_config_function_int 
-0052 dfe00003 arg 3 ,pdata 
-0053 d8400000 arg gpcfg_high_impedance ,temp 
-0054 20206093 branch gpio_config_function_int 
+0073 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
+0074 d8400000 arg gpcfg_high_impedance ,temp 
+0075 20406093 call gpio_config_function_int 
+0076 dfe00003 arg 3 ,pdata 
+0077 d8400000 arg gpcfg_high_impedance ,temp 
+0078 20206093 branch gpio_config_function_int 
 
 p_init_param:
-0055 20758000 rtn wake 
-0056 7045f709 jam bluetooth_core_specification_5_0 ,mem_lmp_version 
-0057 5800050e setarg company_id_yichip 
-0058 67e145f8 store 2 ,mem_lmp_compid 
-0059 58000008 setarg 0x08 
-005a 67e145fa store 2 ,mem_lmp_subversion 
-005b 7044cf7f jam 0x7f ,mem_seqi 
-005c 58000024 setarg 0x24 
-005d 67e140b5 store 2 ,mem_iscan_window 
-005e 67e140b9 store 2 ,mem_pscan_window 
-005f 58000200 setarg 0x200 
-0060 67e140b7 store 2 ,mem_iscan_interval 
-0061 67e140bb store 2 ,mem_pscan_interval 
-0062 58000020 setarg 0x20 
-0063 67e140c3 store 2 ,mem_inq_window 
-0064 67e140bf store 2 ,mem_page_window 
-0065 58002000 setarg 0x2000 
-0066 67e140c1 store 2 ,mem_page_to 
-0067 58000480 setarg 0x480 
-0068 67e140c6 store 2 ,mem_rx_window_init 
-0069 58000c00 setarg 0xc00 
-006a 67e140c8 store 2 ,mem_rx_window_sniff 
-006b 58000c3f setarg 0xc3f 
-006c 67e1417e store 2 ,mem_lpm_xtalcnt + 1 
-006d 58000333 setarg 0x333 
-006e e7e10005 istore 2 ,contw 
-006f 5804109d setarg 0x04109d 
-0070 67e1c183 store 3 ,mem_lpm_ctrl3 + 1 
-0071 20407fdc call clear_wake 
-0072 58000000 setarg 0 
-0073 67e141e6 store 2 ,mem_tx_len 
-0074 1c437e00 rshift clkn_bt ,pdata 
-0075 67e2409c store 4 ,mem_last_clkn 
-0076 20600000 rtn 
+0079 20758000 rtn wake 
+007a 7045f709 jam bluetooth_core_specification_5_0 ,mem_lmp_version 
+007b 5800050e setarg company_id_yichip 
+007c 67e145f8 store 2 ,mem_lmp_compid 
+007d 58000008 setarg 0x08 
+007e 67e145fa store 2 ,mem_lmp_subversion 
+007f 7044cf7f jam 0x7f ,mem_seqi 
+0080 58000024 setarg 0x24 
+0081 67e140b5 store 2 ,mem_iscan_window 
+0082 67e140b9 store 2 ,mem_pscan_window 
+0083 58000200 setarg 0x200 
+0084 67e140b7 store 2 ,mem_iscan_interval 
+0085 67e140bb store 2 ,mem_pscan_interval 
+0086 58000020 setarg 0x20 
+0087 67e140c3 store 2 ,mem_inq_window 
+0088 67e140bf store 2 ,mem_page_window 
+0089 58002000 setarg 0x2000 
+008a 67e140c1 store 2 ,mem_page_to 
+008b 58000480 setarg 0x480 
+008c 67e140c6 store 2 ,mem_rx_window_init 
+008d 58000c00 setarg 0xc00 
+008e 67e140c8 store 2 ,mem_rx_window_sniff 
+008f 58000c3f setarg 0xc3f 
+0090 67e1417e store 2 ,mem_lpm_xtalcnt + 1 
+0091 58000333 setarg 0x333 
+0092 e7e10005 istore 2 ,contw 
+0093 5804109d setarg 0x04109d 
+0094 67e1c183 store 3 ,mem_lpm_ctrl3 + 1 
+0095 20407fdc call clear_wake 
+0096 58000000 setarg 0 
+0097 67e141e6 store 2 ,mem_tx_len 
+0098 1c437e00 rshift clkn_bt ,pdata 
+0099 67e2409c store 4 ,mem_last_clkn 
+009a 20600000 rtn 
 
 p_initialize_radio_cont:
-0077 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
-0078 2040126a call initialize_syn_afc_cfg1 
-0079 20401271 call initialize_rf_ldo_cfg1 
-007a 20401277 call initialize_rc_cal 
-007b 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
-007c 708a0305 jam 5 ,core_clkpll_cfg0 
-007d 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
-007e 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
-007f 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
-0080 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
-0081 2020125d branch initialize_radio_cont + 8 
+009b 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
+009c 2040126a call initialize_syn_afc_cfg1 
+009d 20401271 call initialize_rf_ldo_cfg1 
+009e 20401277 call initialize_rc_cal 
+009f 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
+00a0 708a0305 jam 5 ,core_clkpll_cfg0 
+00a1 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
+00a2 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
+00a3 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
+00a4 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
+00a5 2020125d branch initialize_radio_cont + 8 
 
 p_mouse_setgpio_hibernate:
-0082 204042e9 call mouse_set_sdio_high 
-0083 20407fdc call clear_wake 
-0084 20404015 call mouse_before_hibernate_wheel_gpio_set 
-0085 20403e40 call mouse_lpm_before_common 
-0086 d8400013 arg 19 ,temp 
-0087 20403f56 call mouse_gpio_config_input_pu 
-0088 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-0089 d840003f arg gpcfg_output_high ,temp 
-008a 20206093 branch gpio_config_function_int 
+00a6 204042e9 call mouse_set_sdio_high 
+00a7 20407fdc call clear_wake 
+00a8 20404015 call mouse_before_hibernate_wheel_gpio_set 
+00a9 20403e40 call mouse_lpm_before_common 
+00aa d8400013 arg 19 ,temp 
+00ab 20403f56 call mouse_gpio_config_input_pu 
+00ac 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
+00ad d840003f arg gpcfg_output_high ,temp 
+00ae 20206093 branch gpio_config_function_int 
 
 p_mouse_lpm_before_common:
-008b 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
-008c 20406050 call gpio_config_input 
-008d 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
-008e 20406050 call gpio_config_input 
-008f 20403f88 call mouse_wheel_check 
-0090 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
-0091 d840003f arg gpcfg_output_high ,temp 
-0092 20406093 call gpio_config_function_int 
-0093 20400095 call p_ice_gpio_set_input_pu 
-0094 20203e44 branch mouse_lpm_before_common_next 
+00af 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
+00b0 20406050 call gpio_config_input 
+00b1 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
+00b2 20406050 call gpio_config_input 
+00b3 20403f88 call mouse_wheel_check 
+00b4 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
+00b5 d840003f arg gpcfg_output_high ,temp 
+00b6 20406093 call gpio_config_function_int 
+00b7 204000b9 call p_ice_gpio_set_input_pu 
+00b8 20203e44 branch mouse_lpm_before_common_next 
 
 p_ice_gpio_set_input_pu:
-0095 d8400013 arg 19 ,temp 
-0096 20403f56 call mouse_gpio_config_input_pu 
-0097 d8400003 arg 3 ,temp 
-0098 20203f56 branch mouse_gpio_config_input_pu 
+00b9 d8400013 arg 19 ,temp 
+00ba 20403f56 call mouse_gpio_config_input_pu 
+00bb d8400003 arg 3 ,temp 
+00bc 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_priority_bb_event:
-0099 1a627e00 copy regc ,pdata 
-009a c01e009d beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-009b c01d00a2 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
-009c 20204336 branch mouse_priority_bb_event + 2 
+00bd 1a627e00 copy regc ,pdata 
+00be c01e00c1 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+00bf c01d00c6 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
+00c0 20204336 branch mouse_priority_bb_event + 2 
 
 p_mouse_24g_attempt_success:
-009d 6fe2483c fetch 4 ,mem_24g_addr 
-009e 67e24891 store 4 ,mem_24g_receiver_addr 
-009f 67e24993 store 4 ,mem_mouse_24g_addr 
-00a0 204048c6 call mouse_device_poweron_timer_init 
-00a1 2020484e branch mouse_24g_attempt_success 
+00c1 6fe2483c fetch 4 ,mem_24g_addr 
+00c2 67e24891 store 4 ,mem_24g_receiver_addr 
+00c3 67e24993 store 4 ,mem_mouse_24g_addr 
+00c4 204048c6 call mouse_device_poweron_timer_init 
+00c5 2020484e branch mouse_24g_attempt_success 
 
 p_mouse_24g_attempt_fail:
-00a2 6fe0c8a5 fetch 1 ,mem_24g_attempt_fail_flag 
-00a3 243a00cc nbranch p_mouse_24g_hibernate_set ,blank 
-00a4 20204835 branch mouse_24g_attempt_fail_next 
+00c6 6fe0c8a5 fetch 1 ,mem_24g_attempt_fail_flag 
+00c7 243a00f0 nbranch p_mouse_24g_hibernate_set ,blank 
+00c8 20204835 branch mouse_24g_attempt_fail_next 
 
 p_mouse_seting_dpi:
-00a5 2040408f call mouse_setting_dpi_4_level 
-00a6 204000a8 call p_mouse_dpi_led_blink_delay 
-00a7 20204098 branch mouse_seting_sensor_type 
+00c9 2040408f call mouse_setting_dpi_4_level 
+00ca 204000cc call p_mouse_dpi_led_blink_delay 
+00cb 20204098 branch mouse_seting_sensor_type 
 
 p_mouse_dpi_led_blink_delay:
-00a8 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00a9 c17f8000 rtneq gpio_disable 
-00aa 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-00ab 247a0000 nrtn blank 
-00ac 6fe14883 fetch 2 ,mem_24g_pair_timeout 
-00ad 247a0000 nrtn blank 
-00ae 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
-00af 247a0000 nrtn blank 
-00b0 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-00b1 247a0000 nrtn blank 
-00b2 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-00b3 203a00e1 branch p_mouse_dpi_led_blink_init ,blank 
-00b4 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
-00b5 20600000 rtn 
+00cc 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+00cd c17f8000 rtneq gpio_disable 
+00ce 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+00cf 247a0000 nrtn blank 
+00d0 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+00d1 247a0000 nrtn blank 
+00d2 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+00d3 247a0000 nrtn blank 
+00d4 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+00d5 247a0000 nrtn blank 
+00d6 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+00d7 203a0105 branch p_mouse_dpi_led_blink_init ,blank 
+00d8 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
+00d9 20600000 rtn 
 
 p_mouse_bb_event_timer:
-00b6 20403e9b call mouse_adc_read 
-00b7 20404956 call mouse_low_voltage_led_timer 
-00b8 2040232b call g24_pair_timeout_timer 
-00b9 20402556 call g24_reconn_timeout_timer 
-00ba 204047cd call mouse_24g_long_sleep_param_update_timer 
-00bb 204048be call mouse_device_poweron_timer 
-00bc 204000de call p_mouse_dpi_led_blink_delay_timer 
-00bd 2040407c call mouse_dpi_key_check_long_press 
-00be 204044cc call mouse_bt_discovery_check 
-00bf 204044dc call mouse_commbination_key_process 
-00c0 204044ff call mouse_check_discovery_timeout_timer 
-00c1 20404504 call mouse_check_direct_timeout_timer 
-00c2 20404512 call mouse_le_enable_att_list_timer 
-00c3 2040451f call mouse_le_battery_updata_timer 
-00c4 20404515 call mouse_le_send_smp_security_request_timer 
-00c5 2040452a call mouse_check_hid_handshake_timer 
-00c6 2040452d call mouse_bt_check_sniff_req_timeout_timer 
-00c7 20404532 call mouse_check_reconnect_delay_long_sleep 
-00c8 20404535 call mouse_current_mult_update_timer 
-00c9 20404022 call mouse_wheel_trigger_timer 
-00ca 20404547 call mouse_store_information_delay_timer 
-00cb 202000d6 branch p_mouse_check_no_data_timeout_timer 
+00da 20403e9b call mouse_adc_read 
+00db 20404956 call mouse_low_voltage_led_timer 
+00dc 2040232b call g24_pair_timeout_timer 
+00dd 20402556 call g24_reconn_timeout_timer 
+00de 204047cd call mouse_24g_long_sleep_param_update_timer 
+00df 204048be call mouse_device_poweron_timer 
+00e0 20400102 call p_mouse_dpi_led_blink_delay_timer 
+00e1 2040407c call mouse_dpi_key_check_long_press 
+00e2 204044cc call mouse_bt_discovery_check 
+00e3 204044dc call mouse_commbination_key_process 
+00e4 204044ff call mouse_check_discovery_timeout_timer 
+00e5 20404504 call mouse_check_direct_timeout_timer 
+00e6 20404512 call mouse_le_enable_att_list_timer 
+00e7 2040451f call mouse_le_battery_updata_timer 
+00e8 20404515 call mouse_le_send_smp_security_request_timer 
+00e9 2040452a call mouse_check_hid_handshake_timer 
+00ea 2040452d call mouse_bt_check_sniff_req_timeout_timer 
+00eb 20404532 call mouse_check_reconnect_delay_long_sleep 
+00ec 20404535 call mouse_current_mult_update_timer 
+00ed 20404022 call mouse_wheel_trigger_timer 
+00ee 20404547 call mouse_store_information_delay_timer 
+00ef 202000fa branch p_mouse_check_no_data_timeout_timer 
 
 p_mouse_24g_hibernate_set:
-00cc 7048a500 jam 0 ,mem_24g_attempt_fail_flag 
-00cd 20402652 call g24_transmit_next_packet 
-00ce 5fffffff setarg -1 
-00cf 67e2485c store 4 ,mem_24g_enter_hibernate 
-00d0 58000000 setarg 0 
-00d1 67e3c8d0 store 7 ,mem_mouse_key 
-00d2 704be101 jam 1 ,mem_sensor_shutdown_flag 
-00d3 204000ff call p_mouse_sensor_powerdown 
-00d4 20403e33 call mouse_setgpio_hibernate 
-00d5 202026b5 branch g24_long_sleep 
+00f0 7048a500 jam 0 ,mem_24g_attempt_fail_flag 
+00f1 20402652 call g24_transmit_next_packet 
+00f2 5fffffff setarg -1 
+00f3 67e2485c store 4 ,mem_24g_enter_hibernate 
+00f4 58000000 setarg 0 
+00f5 67e3c8d0 store 7 ,mem_mouse_key 
+00f6 704be101 jam 1 ,mem_sensor_shutdown_flag 
+00f7 20400123 call p_mouse_sensor_powerdown 
+00f8 20403e33 call mouse_setgpio_hibernate 
+00f9 202026b5 branch g24_long_sleep 
 
 p_mouse_check_no_data_timeout_timer:
-00d6 6fe0c92a fetch 1 ,mem_usb_addr 
-00d7 c3838000 rtnbit1 7 
-00d8 da604ab2 arg mem_mouse_no_data_timer ,regc 
-00d9 da4000db arg p_mouse_check_no_data_timeout ,regb 
-00da 20203191 branch timer_single_step_2b 
+00fa 6fe0c92a fetch 1 ,mem_usb_addr 
+00fb c3838000 rtnbit1 7 
+00fc da604ab2 arg mem_mouse_no_data_timer ,regc 
+00fd da4000ff arg p_mouse_check_no_data_timeout ,regb 
+00fe 20203191 branch timer_single_step_2b 
 
 p_mouse_check_no_data_timeout:
-00db 6fe0c938 fetch 1 ,mem_device_flag 
-00dc c00000cc beq mode_24g_device ,p_mouse_24g_hibernate_set 
-00dd 2020431b branch mouse_disconnect 
+00ff 6fe0c938 fetch 1 ,mem_device_flag 
+0100 c00000f0 beq mode_24g_device ,p_mouse_24g_hibernate_set 
+0101 2020431b branch mouse_disconnect 
 
 p_mouse_dpi_led_blink_delay_timer:
-00de da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-00df da4000e1 arg p_mouse_dpi_led_blink_init ,regb 
-00e0 2020318a branch timer_single_step 
+0102 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+0103 da400105 arg p_mouse_dpi_led_blink_init ,regb 
+0104 2020318a branch timer_single_step 
 
 p_mouse_dpi_led_blink_init:
-00e1 6fe0c927 fetch 1 ,mem_config_sensor_type 
-00e2 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-00e3 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-00e4 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00e5 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-00e6 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-00e7 67e14930 store 2 ,mem_mouse_on_time 
-00e8 67e14932 store 2 ,mem_mouse_off_time 
-00e9 da200000 arg 0 ,rega 
-00ea 6848c992 fetcht 1 ,mem_mouse_dpi 
-00eb 18408402 increase 2 ,temp 
-00ec 18467c03 sub temp ,3 ,null 
-00ed 204100f0 call p_mouse_dpi_led_blink_init_level_4 ,positive 
-00ee 244100f4 ncall p_mouse_dpi_led_blink_count_clean ,positive 
-00ef 202048ff branch mouse_dpi_led_blink_init_end 
+0105 6fe0c927 fetch 1 ,mem_config_sensor_type 
+0106 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
+0107 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
+0108 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+0109 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
+010a 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
+010b 67e14930 store 2 ,mem_mouse_on_time 
+010c 67e14932 store 2 ,mem_mouse_off_time 
+010d da200000 arg 0 ,rega 
+010e 6848c992 fetcht 1 ,mem_mouse_dpi 
+010f 18408402 increase 2 ,temp 
+0110 18467c03 sub temp ,3 ,null 
+0111 20410114 call p_mouse_dpi_led_blink_init_level_4 ,positive 
+0112 24410118 ncall p_mouse_dpi_led_blink_count_clean ,positive 
+0113 202048ff branch mouse_dpi_led_blink_init_end 
 
 p_mouse_dpi_led_blink_init_level_4:
-00f0 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00f1 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-00f2 18408401 increase 1 ,temp 
-00f3 20600000 rtn 
+0114 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0115 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+0116 18408401 increase 1 ,temp 
+0117 20600000 rtn 
 
 p_mouse_dpi_led_blink_count_clean:
-00f4 184085fd increase -3 ,temp 
-00f5 20600000 rtn 
+0118 184085fd increase -3 ,temp 
+0119 20600000 rtn 
 
 p_g24_dispatch:
-00f6 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-00f7 245a00f9 ncall p_mouse_enable_g24_mark ,blank 
-00f8 202021d2 branch g24_dispatch + 1 
+011a 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+011b 245a011d ncall p_mouse_enable_g24_mark ,blank 
+011c 202021d2 branch g24_dispatch + 1 
 
 p_mouse_enable_g24_mark:
-00f9 79200026 set1 mark_24g ,mark 
-00fa 20600000 rtn 
+011d 79200026 set1 mark_24g ,mark 
+011e 20600000 rtn 
 
 p_mouse_init_sunt:
-00fb 20400103 call p_mouse_sensor_spi_init 
-00fc 202041a9 branch mouse_init_sunt + 2 
+011f 20400127 call p_mouse_sensor_spi_init 
+0120 202041a9 branch mouse_init_sunt + 2 
 
 p_mouse_sensor_poweron:
-00fd 20400103 call p_mouse_sensor_spi_init 
-00fe 20204238 branch mouse_sensor_poweron + 2 
+0121 20400127 call p_mouse_sensor_spi_init 
+0122 20204238 branch mouse_sensor_poweron + 2 
 
 p_mouse_sensor_powerdown:
-00ff 204041a7 call mouse_init_sunt 
-0100 20400103 call p_mouse_sensor_spi_init 
-0101 58000806 setarg 0x0806 
-0102 20205b0c branch twspi_write 
+0123 204041a7 call mouse_init_sunt 
+0124 20400127 call p_mouse_sensor_spi_init 
+0125 58000806 setarg 0x0806 
+0126 20205b0c branch twspi_write 
 
 p_mouse_sensor_spi_init:
-0103 20403f6a call mouse_spid_init_pin 
-0104 6ff10050 fetch 2 ,core_clkoff 
-0105 79207e02 set1 clock_off_debug_uart ,pdata 
-0106 67f10050 store 2 ,core_clkoff 
-0107 70448476 jam 0x76 ,mem_spi_init_clk 
-0108 20403f69 call mouse_spi_init 
-0109 20205b08 branch twspi_enable 
+0127 20403f6a call mouse_spid_init_pin 
+0128 6ff10050 fetch 2 ,core_clkoff 
+0129 79207e02 set1 clock_off_debug_uart ,pdata 
+012a 67f10050 store 2 ,core_clkoff 
+012b 70448477 jam 0x77 ,mem_spi_init_clk 
+012c 20403f69 call mouse_spi_init 
+012d 20205b08 branch twspi_enable 
 
 p_mouse_app_enter_hibernate:
-010a 20404232 call mouse_sensor_reset 
-010b 204000ff call p_mouse_sensor_powerdown 
-010c 20403e33 call mouse_setgpio_hibernate 
-010d 20203217 branch app_enter_hibernate 
+012e 20404232 call mouse_sensor_reset 
+012f 20400123 call p_mouse_sensor_powerdown 
+0130 20403e33 call mouse_setgpio_hibernate 
+0131 20203217 branch app_enter_hibernate 
 
 p_mouse_24g_search_dongle:
-010e 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-010f c40b0000 rtnbit0 mouse_enable_24g_search_dongle 
-0110 6fe0caae fetch 1 ,mem_mouse_long_mult_flag 
-0111 207a0000 rtn blank 
-0112 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
-0113 207a0000 rtn blank 
-0114 6fe0cba1 fetch 1 ,mem_mouse_search_dongle_interval 
-0115 1fe0fe01 increase 1 ,pdata 
-0116 1fe17e03 and_into 3 ,pdata 
-0117 67e0cba1 store 1 ,mem_mouse_search_dongle_interval 
-0118 247a0000 nrtn blank 
-0119 704ba200 jam 0 ,mem_mouse_search_dongle_ch 
+0132 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0133 c40b0000 rtnbit0 mouse_enable_24g_search_dongle 
+0134 6fe0caae fetch 1 ,mem_mouse_long_mult_flag 
+0135 207a0000 rtn blank 
+0136 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
+0137 207a0000 rtn blank 
+0138 6fe0cba1 fetch 1 ,mem_mouse_search_dongle_interval 
+0139 1fe0fe01 increase 1 ,pdata 
+013a 1fe17e03 and_into 3 ,pdata 
+013b 67e0cba1 store 1 ,mem_mouse_search_dongle_interval 
+013c 247a0000 nrtn blank 
+013d 704ba200 jam 0 ,mem_mouse_search_dongle_ch 
 
 p_mouse_24g_search_dongle_loop:
-011a 6fe0cba2 fetch 1 ,mem_mouse_search_dongle_ch 
-011b 1fe0fe01 increase 1 ,pdata 
-011c 67e0cba2 store 1 ,mem_mouse_search_dongle_ch 
-011d 1fe67c08 sub pdata ,g24_ch_number ,null 
-011e 24210124 nbranch p_mouse_24g_search_dongle_loop_end ,positive 
-011f 2040259a call g24_reconn_data_prep 
-0120 2040265b call g24_transmit_receive_ack 
-0121 242c012a nbranch p_mouse_24g_search_dongle_loop_retry ,sync 
-0122 2437812a nbranch p_mouse_24g_search_dongle_loop_retry ,user3 
-0123 204048b5 call mouse_24g_search_dongle_success 
+013e 6fe0cba2 fetch 1 ,mem_mouse_search_dongle_ch 
+013f 1fe0fe01 increase 1 ,pdata 
+0140 67e0cba2 store 1 ,mem_mouse_search_dongle_ch 
+0141 1fe67c08 sub pdata ,g24_ch_number ,null 
+0142 24210148 nbranch p_mouse_24g_search_dongle_loop_end ,positive 
+0143 2040259a call g24_reconn_data_prep 
+0144 2040265b call g24_transmit_receive_ack 
+0145 242c014e nbranch p_mouse_24g_search_dongle_loop_retry ,sync 
+0146 2437814e nbranch p_mouse_24g_search_dongle_loop_retry ,user3 
+0147 204048b5 call mouse_24g_search_dongle_success 
 
 p_mouse_24g_search_dongle_loop_end:
-0124 20402597 call g24_txbuf_clear 
-0125 6fe0cba3 fetch 1 ,mem_mouse_search_dongle_count 
-0126 1fe0fe01 increase 1 ,pdata 
-0127 67e0cba3 store 1 ,mem_mouse_search_dongle_count 
-0128 c008012c beq g24_ch_poll_count ,p_mouse_24g_search_dongle_check 
-0129 20600000 rtn 
+0148 20402597 call g24_txbuf_clear 
+0149 6fe0cba3 fetch 1 ,mem_mouse_search_dongle_count 
+014a 1fe0fe01 increase 1 ,pdata 
+014b 67e0cba3 store 1 ,mem_mouse_search_dongle_count 
+014c c0080150 beq g24_ch_poll_count ,p_mouse_24g_search_dongle_check 
+014d 20600000 rtn 
 
 p_mouse_24g_search_dongle_loop_retry:
-012a 204022cb call g24_ch 
-012b 2020011a branch p_mouse_24g_search_dongle_loop 
+014e 204022cb call g24_ch 
+014f 2020013e branch p_mouse_24g_search_dongle_loop 
 
 p_mouse_24g_search_dongle_check:
-012c 704ba300 jam 0 ,mem_mouse_search_dongle_count 
-012d 6fe0cba4 fetch 1 ,mem_mouse_search_dongle_action 
-012e c3800000 rtnbit1 g24_disconn_state 
-012f 79207e00 set1 g24_disconn_state ,pdata 
-0130 67e0cba4 store 1 ,mem_mouse_search_dongle_action 
-0131 6fe14bbc fetch 2 ,mem_mouse_24g_search_dongle_time_init 
-0132 67e14ab2 store 2 ,mem_mouse_no_data_timer 
-0133 202000ff branch p_mouse_sensor_powerdown 
+0150 704ba300 jam 0 ,mem_mouse_search_dongle_count 
+0151 6fe0cba4 fetch 1 ,mem_mouse_search_dongle_action 
+0152 c3800000 rtnbit1 g24_disconn_state 
+0153 79207e00 set1 g24_disconn_state ,pdata 
+0154 67e0cba4 store 1 ,mem_mouse_search_dongle_action 
+0155 6fe14bbc fetch 2 ,mem_mouse_24g_search_dongle_time_init 
+0156 67e14ab2 store 2 ,mem_mouse_no_data_timer 
+0157 20200123 branch p_mouse_sensor_powerdown 
               org 0x800
 
 start:
@@ -22157,6 +22207,8 @@
 
 mouse_24g_start_auto_pair:
 4811 204048cc call mouse_discover_setting_led_gpio 
+
+mouse_24g_start_auto_pair_next:
 4812 6fe14881 fetch 2 ,mem_24g_pair_timeout_init 
 4813 67e14887 store 2 ,mem_24g_reconn_timeout 
 4814 70488b04 jam pair_and_3_0_addr ,mem_24g_reconn_type 
Index: program/app_mouse.prog
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo_Only2.4G/program/app_mouse.prog	(revision 379)
+++ /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo_Only2.4G/program/app_mouse.prog	(working copy)
@@ -4336,6 +4336,7 @@
 
 mouse_24g_start_auto_pair:
 	call mouse_discover_setting_led_gpio
+mouse_24g_start_auto_pair_next:
 	fetch 2,mem_24g_pair_timeout_init
 	store 2,mem_24g_reconn_timeout
 	jam PAIR_AND_3_0_ADDR,mem_24g_reconn_type
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo_Only2.4G/program/patch.prog	(revision 379)
+++ /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo_Only2.4G/program/patch.prog	(working copy)
@@ -3,8 +3,8 @@
 	beq patch00_0,p_soft_reset
 	beq patch11_3,p_initialize_radio_cont	
 	beq patch13_7,p_init_param
-	
 	beq patch15_6,p_app_init
+	beq patch18_3,p_mouse_start_work
 	beq patch18_7,p_mouse_app_enter_hibernate
 	beq patch19_1,p_mouse_setgpio_hibernate
 	beq patch19_2,p_mouse_lpm_before_common
@@ -62,6 +62,55 @@
 	rtnbit1 7
 	branch mouse_init_wireless
 
+p_mouse_start_work:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING, mouse_24g_first_start_auto_pair_mode
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,p_mouse_24g_start_mode
+	call mouse_wakeup_from_power_check	// wake from hibernate :enble user
+	nbranch mouse_buletooth_fast_conn_init,user
+	branch mouse_start_reconnect_device
+
+p_mouse_24g_start_mode:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_24G,mouse_24g_mode_setup_error
+//	call mouse_wakeup_from_power_check	// wake from hibernate :enble user
+//	branch p_mouse_24g_reconn_dongle_start,user
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_AUTO_24G_PARING,mouse_24g_reconn_general_dongle
+	bbit0 MOUSE_ENABLE_24G_POWER_ON_PAIRING,mouse_24g_reconn_general_dongle
+	call p_mouse_key_check_once
+	and pdata,0x07,pdata
+	fetcht 1,mem_mouse_commbination_key_24g
+	isub temp,null
+	branch mouse_24g_start_pair_mode,zero
+	branch mouse_24g_reconn_general_dongle
+
+p_mouse_24g_reconn_dongle_start:
+	call p_g24_factory_check
+	branch mouse_24g_start_auto_pair_next,user
+	branch mouse_24g_reconn_dongle_start
+
+p_g24_factory_check:
+	arg 2,loopcnt
+	arg mem_mouse_24g_addr,contr
+p_pdata_0xff_check:
+	call enable_user
+	setarg 0xffff
+p_pdata_0xff_check_loop:
+	ifetcht 2,contr
+	isub temp,null
+	ncall disable_user,zero
+	loop p_pdata_0xff_check_loop
+	rtn
+
+p_mouse_key_check_once:
+	call mouse_check_key_gpio_once
+	call mouse_check_key_gpio
+	arg 0,temp
+	storet 3,mem_mouse_lkey_press_status
+	rtn
+
 p_mouse_cb_fuction:
 	setarg mouse_24g_package_data
 	store 2,mem_cb_24g_transmit_data
@@ -371,7 +420,7 @@
 	set1 CLOCK_OFF_DEBUG_UART,pdata
 	store 2,core_clkoff	//after select sensor angle,before tw_spi enable
 	
-	jam 0x76,mem_spi_init_clk
+	jam 0x77,mem_spi_init_clk
 	call mouse_spi_init
 	branch twspi_enable
 
Index: sched/mouse.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo_Only2.4G/sched/mouse.dat	(revision 379)
+++ /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo_Only2.4G/sched/mouse.dat	(working copy)
@@ -106,7 +106,7 @@
 00 #poweron
 
 #mode switch+pair/discovery  2byte 
-80 03 #dip(matrix)+2.4 first
+00 03 #dip(matrix)+2.4 first
 
 #updata 1byte
 03
@@ -188,7 +188,7 @@
 mem_mouse_page_to:00 40		# 16384*0.625ms=10s
 mem_mouse_fast_direct_timeout:0a #1s
 mem_mouse_fast_page_to:60 06	# 1600*0.625ms = 1s
-mem_mouse_24g_power_on_fast_conn_timer:05 00 #500ms
+mem_mouse_24g_power_on_fast_conn_timer:0a 00 #1s
 mem_mouse_24g_search_dongle_time_init: 64 00
 mem_mouse_no_data_timeout:70 17 #10min
 
@@ -228,7 +228,7 @@
 mem_lpm_mult_init:20
 
 mem_app_connection_options:06
-mem_lap:15 a0 c8 12 23 51
+mem_lap:18 a2 c8 12 23 51
 mem_local_name_length:
 'Bluetooth Mouse 3.0
 mem_sniff_param_interval:
