Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo-Logo_Only2.4G/output/eeprom.dat	(revision 383)
+++ /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo-Logo_Only2.4G/output/eeprom.dat	(working copy)
@@ -2,64 +2,68 @@
 02
 aa
 55
-7e
-05
+0e
+06
 c2
 84
 00
-0f
+10
 c0
 00
 00
-21
+22
 c0
 45
 80
-78
+9c
 c0
 4f
 80
-56
+7a
 c0
 57
 00
-25
+26
+c0
+61
+80
+32
 c0
 63
 81
-35
+59
 c0
 64
 80
-83
+a7
 c0
 65
 00
-90
+b4
 c0
 67
 00
-aa
+ce
 c0
 68
 00
-c3
+e7
 c0
 69
 81
-26
+4a
 c0
 6a
 01
-28
+4c
 c0
 6b
 00
-9e
+c2
 c0
 6c
 80
-d4
+f8
 20
 20
 13
@@ -67,15 +71,15 @@
 c0
 11
 00
-13
+14
 c0
 11
 80
-19
+1a
 c0
 6e
 81
-21
+45
 20
 20
 13
@@ -159,7 +163,7 @@
 20
 40
 00
-36
+5a
 20
 40
 41
@@ -183,11 +187,11 @@
 20
 40
 00
-31
+55
 20
 40
 01
-2a
+4e
 6f
 e0
 c9
@@ -200,6 +204,146 @@
 20
 3b
 cb
+6f
+e4
+4b
+ab
+c2
+97
+c8
+0a
+6f
+e0
+c9
+38
+c0
+00
+00
+39
+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
+50
+1f
+e1
+7e
+07
+68
+48
+cb
+cb
+98
+46
+7c
+00
+20
+22
+c8
+27
+20
+20
+48
+0c
+20
+40
+00
+47
+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
+4b
+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
@@ -211,7 +355,7 @@
 58
 00
 01
-39
+5d
 67
 e1
 48
@@ -243,7 +387,7 @@
 20
 40
 00
-40
+64
 68
 48
 c9
@@ -255,7 +399,7 @@
 20
 40
 00
-50
+74
 20
 20
 3b
@@ -615,7 +759,7 @@
 20
 40
 00
-9a
+be
 20
 20
 3e
@@ -643,11 +787,11 @@
 c0
 1e
 00
-a2
+c6
 c0
 1d
 00
-a7
+cb
 20
 20
 43
@@ -678,8 +822,8 @@
 a5
 24
 3a
-00
-eb
+01
+0f
 20
 20
 48
@@ -727,7 +871,7 @@
 24
 34
 00
-b8
+dc
 20
 40
 47
@@ -735,7 +879,7 @@
 20
 40
 00
-bb
+df
 20
 20
 45
@@ -791,7 +935,7 @@
 20
 40
 00
-c6
+ea
 20
 20
 40
@@ -843,7 +987,7 @@
 20
 3a
 01
-0c
+30
 67
 e0
 cb
@@ -879,7 +1023,7 @@
 20
 40
 01
-09
+2d
 20
 40
 40
@@ -938,12 +1082,12 @@
 47
 20
 40
-00
-fe
+01
+22
 20
 20
-00
-f6
+01
+1a
 70
 48
 a5
@@ -975,7 +1119,7 @@
 20
 40
 01
-2a
+4e
 20
 40
 3e
@@ -983,7 +1127,7 @@
 20
 40
 01
-05
+29
 20
 20
 26
@@ -1002,8 +1146,8 @@
 b2
 da
 40
-00
-fb
+01
+1f
 20
 20
 31
@@ -1014,8 +1158,8 @@
 38
 c0
 00
-00
-eb
+01
+0f
 20
 20
 43
@@ -1043,7 +1187,7 @@
 da
 40
 01
-05
+29
 20
 20
 31
@@ -1071,7 +1215,7 @@
 da
 40
 01
-0c
+30
 20
 20
 31
@@ -1127,11 +1271,11 @@
 20
 41
 01
-1b
+3f
 24
 41
 01
-1f
+43
 20
 20
 48
@@ -1167,7 +1311,7 @@
 24
 5a
 01
-24
+48
 20
 20
 21
@@ -1183,7 +1327,7 @@
 20
 40
 01
-2e
+52
 20
 20
 41
@@ -1191,7 +1335,7 @@
 20
 40
 01
-2e
+52
 20
 20
 42
@@ -1203,7 +1347,7 @@
 20
 40
 01
-2e
+52
 58
 00
 08
@@ -1231,7 +1375,7 @@
 70
 44
 84
-76
+77
 20
 40
 3f
@@ -1247,7 +1391,7 @@
 20
 40
 01
-2a
+4e
 20
 40
 3e
@@ -1323,7 +1467,7 @@
 24
 21
 01
-4f
+73
 20
 40
 25
@@ -1335,11 +1479,11 @@
 24
 2c
 01
-55
+79
 24
 37
 81
-55
+79
 20
 40
 48
@@ -1363,7 +1507,7 @@
 c0
 08
 01
-57
+7b
 20
 60
 00
@@ -1375,7 +1519,7 @@
 20
 20
 01
-45
+69
 70
 4b
 a3
@@ -1407,9 +1551,9 @@
 20
 20
 01
-2a
-c0
-ac
+4e
+72
+e4
 aa
 55
 40
@@ -1440,7 +1584,7 @@
 40
 00
 00
-80
+88
 46
 59
 02
@@ -1571,7 +1715,7 @@
 4a
 00
 00
-80
+00
 03
 03
 aa
@@ -1744,7 +1888,7 @@
 0a
 60
 06
-05
+0a
 00
 64
 00
@@ -2580,152 +2724,8 @@
 e8
 41
 01
-96
-96
-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
+86
+06
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-00
-53
+4f
+23
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo-Logo_Only2.4G/output/program.lis	(revision 383)
+++ /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo-Logo_Only2.4G/output/program.lis	(working copy)
@@ -1,448 +1,498 @@
               include "bt_format "
               org 0x0000
-0000 c284000f bbit1 8 ,pf_patch_ext 
-0001 c0000021 beq patch00_0 ,p_soft_reset 
-0002 c0458078 beq patch11_3 ,p_initialize_radio_cont 
-0003 c04f8056 beq patch13_7 ,p_init_param 
-0004 c0570025 beq patch15_6 ,p_app_init 
-0005 c0638135 beq patch18_7 ,p_mouse_app_enter_hibernate 
-0006 c0648083 beq patch19_1 ,p_mouse_setgpio_hibernate 
-0007 c0650090 beq patch19_2 ,p_mouse_lpm_before_common 
-0008 c06700aa beq patch19_6 ,p_mouse_motion 
-0009 c06800c3 beq patch1a_0 ,p_mouse_seting_dpi 
-000a c0698126 beq patch1a_3 ,p_mouse_init_sunt 
-000b c06a0128 beq patch1a_4 ,p_mouse_sensor_poweron 
-000c c06b009e beq patch1a_6 ,p_mouse_priority_bb_event 
-000d c06c80d4 beq patch1b_1 ,p_mouse_bb_event_timer 
-000e 2020137c branch loop 
+0000 c2840010 bbit1 8 ,pf_patch_ext 
+0001 c0000022 beq patch00_0 ,p_soft_reset 
+0002 c045809c beq patch11_3 ,p_initialize_radio_cont 
+0003 c04f807a beq patch13_7 ,p_init_param 
+0004 c0570026 beq patch15_6 ,p_app_init 
+0005 c0618032 beq patch18_3 ,p_mouse_start_work 
+0006 c0638159 beq patch18_7 ,p_mouse_app_enter_hibernate 
+0007 c06480a7 beq patch19_1 ,p_mouse_setgpio_hibernate 
+0008 c06500b4 beq patch19_2 ,p_mouse_lpm_before_common 
+0009 c06700ce beq patch19_6 ,p_mouse_motion 
+000a c06800e7 beq patch1a_0 ,p_mouse_seting_dpi 
+000b c069814a beq patch1a_3 ,p_mouse_init_sunt 
+000c c06a014c beq patch1a_4 ,p_mouse_sensor_poweron 
+000d c06b00c2 beq patch1a_6 ,p_mouse_priority_bb_event 
+000e c06c80f8 beq patch1b_1 ,p_mouse_bb_event_timer 
+000f 2020137c branch loop 
 
 pf_patch_ext:
-000f c0110013 beq patch24_2 ,p_spid_write_reg 
-0010 c0118019 beq patch24_3 ,p_spid_read_reg 
-0011 c06e8121 beq patch3b_5 ,p_g24_dispatch 
-0012 2020137c branch loop 
+0010 c0110014 beq patch24_2 ,p_spid_write_reg 
+0011 c011801a beq patch24_3 ,p_spid_read_reg 
+0012 c06e8145 beq patch3b_5 ,p_g24_dispatch 
+0013 2020137c branch loop 
 
 p_spid_write_reg:
-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 
+0014 1fe22200 copy pdata ,rega 
+0015 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
+0016 d840003e arg gpcfg_output_low ,temp 
+0017 20406093 call gpio_config_function_int 
+0018 1a227e00 copy rega ,pdata 
+0019 20205cc2 branch spid_write_reg + 3 
 
 p_spid_read_reg:
-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 
+001a 1fe22200 copy pdata ,rega 
+001b 18422400 copy temp ,regb 
+001c 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
+001d d840003e arg gpcfg_output_low ,temp 
+001e 20406093 call gpio_config_function_int 
+001f 1a227e00 copy rega ,pdata 
+0020 1a420400 copy regb ,temp 
+0021 20205cc9 branch spid_read_reg + 3 
 
 p_soft_reset:
-0021 20800000 clear_stack 
-0022 204030f3 call app_param_init 
-0023 20403bfd call mouse_xtal_init 
-0024 20200804 branch soft_reset + 3 
+0022 20800000 clear_stack 
+0023 204030f3 call app_param_init 
+0024 20403bfd call mouse_xtal_init 
+0025 20200804 branch soft_reset + 3 
 
 p_app_init:
 
 p_mouse_init:
-0025 20406df3 call enable_authrom 
-0026 20400036 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 20400031 call p_mouse_cb_fuction 
-002d 2040012a call p_mouse_sensor_powerdown 
-002e 6fe0c92a fetch 1 ,mem_usb_addr 
-002f c3838000 rtnbit1 7 
-0030 20203bcb branch mouse_init_wireless 
+0026 20406df3 call enable_authrom 
+0027 2040005a call p_mouse_setting_config 
+0028 204041a7 call mouse_init_sunt 
+0029 2040408e call mouse_dpi_config 
+002a 20758000 rtn wake 
+002b 20403d8a call mouse_usb_check_enable 
+002c 20404728 call mouse_drawing_optima_init 
+002d 20400055 call p_mouse_cb_fuction 
+002e 2040014e call p_mouse_sensor_powerdown 
+002f 6fe0c92a fetch 1 ,mem_usb_addr 
+0030 c3838000 rtnbit1 7 
+0031 20203bcb branch mouse_init_wireless 
+
+p_mouse_start_work:
+0032 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0033 c297c80a bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
+0034 6fe0c938 fetch 1 ,mem_device_flag 
+0035 c0000039 beq mode_24g_device ,p_mouse_24g_start_mode 
+0036 20403d65 call mouse_wakeup_from_power_check 
+0037 243442eb nbranch mouse_buletooth_fast_conn_init ,user 
+0038 20203d59 branch mouse_start_reconnect_device 
+
+p_mouse_24g_start_mode:
+0039 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+003a c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
+003b 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+003c c298480c bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
+003d c318c80c bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
+003e 20400050 call p_mouse_key_check_once 
+003f 1fe17e07 and pdata ,0x07 ,pdata 
+0040 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
+0041 98467c00 isub temp ,null 
+0042 2022c827 branch mouse_24g_start_pair_mode ,zero 
+0043 2020480c branch mouse_24g_reconn_general_dongle 
+
+p_mouse_24g_reconn_dongle_start:
+0044 20400047 call p_g24_factory_check 
+0045 20344812 branch mouse_24g_start_auto_pair_next ,user 
+0046 20204806 branch mouse_24g_reconn_dongle_start 
+
+p_g24_factory_check:
+0047 df200002 arg 2 ,loopcnt 
+0048 d8c04993 arg mem_mouse_24g_addr ,contr 
+
+p_pdata_0xff_check:
+0049 20407e54 call enable_user 
+004a 5800ffff setarg 0xffff 
+
+p_pdata_0xff_check_loop:
+004b e8410006 ifetcht 2 ,contr 
+004c 98467c00 isub temp ,null 
+004d 2442fe56 ncall disable_user ,zero 
+004e c200004b loop p_pdata_0xff_check_loop 
+004f 20600000 rtn 
+
+p_mouse_key_check_once:
+0050 20404121 call mouse_check_key_gpio_once 
+0051 20404115 call mouse_check_key_gpio 
+0052 d8400000 arg 0 ,temp 
+0053 6049cb8e storet 3 ,mem_mouse_lkey_press_status 
+0054 20600000 rtn 
 
 p_mouse_cb_fuction:
-0031 58004866 setarg mouse_24g_package_data 
-0032 67e1489b store 2 ,mem_cb_24g_transmit_data 
-0033 58000139 setarg p_mouse_24g_search_dongle 
-0034 67e1489d store 2 ,mem_cb_24g_search_receiver 
-0035 20203bd3 branch mouse_cb_fuction_next 
+0055 58004866 setarg mouse_24g_package_data 
+0056 67e1489b store 2 ,mem_cb_24g_transmit_data 
+0057 5800015d setarg p_mouse_24g_search_dongle 
+0058 67e1489d store 2 ,mem_cb_24g_search_receiver 
+0059 20203bd3 branch mouse_cb_fuction_next 
 
 p_mouse_setting_config:
-0036 20758000 rtn wake 
-0037 20402607 call g24_transmit_init 
-0038 204022ff call g24_chmap_param_init 
-0039 20403f1e call mouse_gpio_init 
-003a 20403d13 call mouse_param_init 
-003b 20400040 call p_mouse_sensor_set_angle 
-003c 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-003d 20406050 call gpio_config_input 
-003e 20400050 call p_ice_gpio_set_float 
-003f 20203bf5 branch mouse_setting_config_next 
+005a 20758000 rtn wake 
+005b 20402607 call g24_transmit_init 
+005c 204022ff call g24_chmap_param_init 
+005d 20403f1e call mouse_gpio_init 
+005e 20403d13 call mouse_param_init 
+005f 20400064 call p_mouse_sensor_set_angle 
+0060 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+0061 20406050 call gpio_config_input 
+0062 20400074 call p_ice_gpio_set_float 
+0063 20203bf5 branch mouse_setting_config_next 
 
 p_mouse_sensor_set_angle:
-0040 6fe0c924 fetch 1 ,mem_sensor_angle_default 
-0041 67e0c928 store 1 ,mem_config_sensor_angle 
-0042 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-0043 c17f8000 rtneq gpio_disable 
-0044 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-0045 d840003e arg gpcfg_output_low ,temp 
-0046 20406093 call gpio_config_function_int 
-0047 dfe00003 arg 3 ,pdata 
-0048 d840003e arg gpcfg_output_low ,temp 
-0049 20406093 call gpio_config_function_int 
-004a 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-004b 20403f56 call mouse_gpio_config_input_pu 
-004c 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-004d 20406059 call gpio_get_bit 
-004e 2440c2aa ncall mouse_sensor_switch_angle ,true 
-004f 20203f54 branch mouse_gpio_config_input_pd 
+0064 6fe0c924 fetch 1 ,mem_sensor_angle_default 
+0065 67e0c928 store 1 ,mem_config_sensor_angle 
+0066 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
+0067 c17f8000 rtneq gpio_disable 
+0068 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
+0069 d840003e arg gpcfg_output_low ,temp 
+006a 20406093 call gpio_config_function_int 
+006b dfe00003 arg 3 ,pdata 
+006c d840003e arg gpcfg_output_low ,temp 
+006d 20406093 call gpio_config_function_int 
+006e 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+006f 20403f56 call mouse_gpio_config_input_pu 
+0070 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+0071 20406059 call gpio_get_bit 
+0072 2440c2aa ncall mouse_sensor_switch_angle ,true 
+0073 20203f54 branch mouse_gpio_config_input_pd 
 
 p_ice_gpio_set_float:
-0050 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-0051 d8400000 arg gpcfg_high_impedance ,temp 
-0052 20406093 call gpio_config_function_int 
-0053 dfe00003 arg 3 ,pdata 
-0054 d8400000 arg gpcfg_high_impedance ,temp 
-0055 20206093 branch gpio_config_function_int 
+0074 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
+0075 d8400000 arg gpcfg_high_impedance ,temp 
+0076 20406093 call gpio_config_function_int 
+0077 dfe00003 arg 3 ,pdata 
+0078 d8400000 arg gpcfg_high_impedance ,temp 
+0079 20206093 branch gpio_config_function_int 
 
 p_init_param:
-0056 20758000 rtn wake 
-0057 7045f709 jam bluetooth_core_specification_5_0 ,mem_lmp_version 
-0058 5800050e setarg company_id_yichip 
-0059 67e145f8 store 2 ,mem_lmp_compid 
-005a 58000008 setarg 0x08 
-005b 67e145fa store 2 ,mem_lmp_subversion 
-005c 7044cf7f jam 0x7f ,mem_seqi 
-005d 58000024 setarg 0x24 
-005e 67e140b5 store 2 ,mem_iscan_window 
-005f 67e140b9 store 2 ,mem_pscan_window 
-0060 58000200 setarg 0x200 
-0061 67e140b7 store 2 ,mem_iscan_interval 
-0062 67e140bb store 2 ,mem_pscan_interval 
-0063 58000020 setarg 0x20 
-0064 67e140c3 store 2 ,mem_inq_window 
-0065 67e140bf store 2 ,mem_page_window 
-0066 58002000 setarg 0x2000 
-0067 67e140c1 store 2 ,mem_page_to 
-0068 58000480 setarg 0x480 
-0069 67e140c6 store 2 ,mem_rx_window_init 
-006a 58000c00 setarg 0xc00 
-006b 67e140c8 store 2 ,mem_rx_window_sniff 
-006c 58000c3f setarg 0xc3f 
-006d 67e1417e store 2 ,mem_lpm_xtalcnt + 1 
-006e 58000333 setarg 0x333 
-006f e7e10005 istore 2 ,contw 
-0070 5804109d setarg 0x04109d 
-0071 67e1c183 store 3 ,mem_lpm_ctrl3 + 1 
-0072 20407fdc call clear_wake 
-0073 58000000 setarg 0 
-0074 67e141e6 store 2 ,mem_tx_len 
-0075 1c437e00 rshift clkn_bt ,pdata 
-0076 67e2409c store 4 ,mem_last_clkn 
-0077 20600000 rtn 
+007a 20758000 rtn wake 
+007b 7045f709 jam bluetooth_core_specification_5_0 ,mem_lmp_version 
+007c 5800050e setarg company_id_yichip 
+007d 67e145f8 store 2 ,mem_lmp_compid 
+007e 58000008 setarg 0x08 
+007f 67e145fa store 2 ,mem_lmp_subversion 
+0080 7044cf7f jam 0x7f ,mem_seqi 
+0081 58000024 setarg 0x24 
+0082 67e140b5 store 2 ,mem_iscan_window 
+0083 67e140b9 store 2 ,mem_pscan_window 
+0084 58000200 setarg 0x200 
+0085 67e140b7 store 2 ,mem_iscan_interval 
+0086 67e140bb store 2 ,mem_pscan_interval 
+0087 58000020 setarg 0x20 
+0088 67e140c3 store 2 ,mem_inq_window 
+0089 67e140bf store 2 ,mem_page_window 
+008a 58002000 setarg 0x2000 
+008b 67e140c1 store 2 ,mem_page_to 
+008c 58000480 setarg 0x480 
+008d 67e140c6 store 2 ,mem_rx_window_init 
+008e 58000c00 setarg 0xc00 
+008f 67e140c8 store 2 ,mem_rx_window_sniff 
+0090 58000c3f setarg 0xc3f 
+0091 67e1417e store 2 ,mem_lpm_xtalcnt + 1 
+0092 58000333 setarg 0x333 
+0093 e7e10005 istore 2 ,contw 
+0094 5804109d setarg 0x04109d 
+0095 67e1c183 store 3 ,mem_lpm_ctrl3 + 1 
+0096 20407fdc call clear_wake 
+0097 58000000 setarg 0 
+0098 67e141e6 store 2 ,mem_tx_len 
+0099 1c437e00 rshift clkn_bt ,pdata 
+009a 67e2409c store 4 ,mem_last_clkn 
+009b 20600000 rtn 
 
 p_initialize_radio_cont:
-0078 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
-0079 2040126a call initialize_syn_afc_cfg1 
-007a 20401271 call initialize_rf_ldo_cfg1 
-007b 20401277 call initialize_rc_cal 
-007c 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
-007d 708a0305 jam 5 ,core_clkpll_cfg0 
-007e 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
-007f 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
-0080 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
-0081 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
-0082 2020125d branch initialize_radio_cont + 8 
+009c 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
+009d 2040126a call initialize_syn_afc_cfg1 
+009e 20401271 call initialize_rf_ldo_cfg1 
+009f 20401277 call initialize_rc_cal 
+00a0 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
+00a1 708a0305 jam 5 ,core_clkpll_cfg0 
+00a2 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
+00a3 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
+00a4 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
+00a5 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
+00a6 2020125d branch initialize_radio_cont + 8 
 
 p_mouse_setgpio_hibernate:
-0083 204042e9 call mouse_set_sdio_high 
-0084 20407fdc call clear_wake 
-0085 20404015 call mouse_before_hibernate_wheel_gpio_set 
-0086 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-0087 20406069 call gpio_out_active 
-0088 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-0089 20406042 call gpio_clr_wake 
-008a 20403e40 call mouse_lpm_before_common 
-008b d8400013 arg 19 ,temp 
-008c 20403f56 call mouse_gpio_config_input_pu 
-008d 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-008e d840003f arg gpcfg_output_high ,temp 
-008f 20206093 branch gpio_config_function_int 
+00a7 204042e9 call mouse_set_sdio_high 
+00a8 20407fdc call clear_wake 
+00a9 20404015 call mouse_before_hibernate_wheel_gpio_set 
+00aa 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+00ab 20406069 call gpio_out_active 
+00ac 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+00ad 20406042 call gpio_clr_wake 
+00ae 20403e40 call mouse_lpm_before_common 
+00af d8400013 arg 19 ,temp 
+00b0 20403f56 call mouse_gpio_config_input_pu 
+00b1 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
+00b2 d840003f arg gpcfg_output_high ,temp 
+00b3 20206093 branch gpio_config_function_int 
 
 p_mouse_lpm_before_common:
-0090 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
-0091 20406050 call gpio_config_input 
-0092 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
-0093 20406050 call gpio_config_input 
-0094 20403f88 call mouse_wheel_check 
-0095 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
-0096 d840003f arg gpcfg_output_high ,temp 
-0097 20406093 call gpio_config_function_int 
-0098 2040009a call p_ice_gpio_set_input_pu 
-0099 20203e44 branch mouse_lpm_before_common_next 
+00b4 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
+00b5 20406050 call gpio_config_input 
+00b6 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
+00b7 20406050 call gpio_config_input 
+00b8 20403f88 call mouse_wheel_check 
+00b9 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
+00ba d840003f arg gpcfg_output_high ,temp 
+00bb 20406093 call gpio_config_function_int 
+00bc 204000be call p_ice_gpio_set_input_pu 
+00bd 20203e44 branch mouse_lpm_before_common_next 
 
 p_ice_gpio_set_input_pu:
-009a d8400013 arg 19 ,temp 
-009b 20403f56 call mouse_gpio_config_input_pu 
-009c d8400003 arg 3 ,temp 
-009d 20203f56 branch mouse_gpio_config_input_pu 
+00be d8400013 arg 19 ,temp 
+00bf 20403f56 call mouse_gpio_config_input_pu 
+00c0 d8400003 arg 3 ,temp 
+00c1 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_priority_bb_event:
-009e 1a627e00 copy regc ,pdata 
-009f c01e00a2 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-00a0 c01d00a7 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
-00a1 20204336 branch mouse_priority_bb_event + 2 
+00c2 1a627e00 copy regc ,pdata 
+00c3 c01e00c6 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+00c4 c01d00cb beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
+00c5 20204336 branch mouse_priority_bb_event + 2 
 
 p_mouse_24g_attempt_success:
-00a2 6fe2483c fetch 4 ,mem_24g_addr 
-00a3 67e24891 store 4 ,mem_24g_receiver_addr 
-00a4 67e24993 store 4 ,mem_mouse_24g_addr 
-00a5 204048c6 call mouse_device_poweron_timer_init 
-00a6 2020484e branch mouse_24g_attempt_success 
+00c6 6fe2483c fetch 4 ,mem_24g_addr 
+00c7 67e24891 store 4 ,mem_24g_receiver_addr 
+00c8 67e24993 store 4 ,mem_mouse_24g_addr 
+00c9 204048c6 call mouse_device_poweron_timer_init 
+00ca 2020484e branch mouse_24g_attempt_success 
 
 p_mouse_24g_attempt_fail:
-00a7 6fe0c8a5 fetch 1 ,mem_24g_attempt_fail_flag 
-00a8 243a00eb nbranch p_mouse_24g_hibernate_set ,blank 
-00a9 20204835 branch mouse_24g_attempt_fail_next 
+00cb 6fe0c8a5 fetch 1 ,mem_24g_attempt_fail_flag 
+00cc 243a010f nbranch p_mouse_24g_hibernate_set ,blank 
+00cd 20204835 branch mouse_24g_attempt_fail_next 
 
 p_mouse_motion:
-00aa 78547c00 disable user 
-00ab 58000000 setarg 0 
-00ac 67e348d1 store 6 ,mem_mouse_x 
-00ad 20404240 call mouse_check_sensor_data 
-00ae 20403f7e call mouse_zwheel 
-00af 20403f83 call mouse_t_zwheel 
-00b0 204040dc call mouse_key 
-00b1 6fe0c8d0 fetch 1 ,mem_mouse_key 
-00b2 1fe17e1f and_into 0x1f ,pdata 
-00b3 67e0c8d0 store 1 ,mem_mouse_key 
-00b4 243400b8 nbranch p_mouse_motion_nodata ,user 
-00b5 2040471a call mouse_drawing_optima 
-00b6 204000bb call p_mouse_logo_led_on_check 
-00b7 20204544 branch mouse_no_data_timer_init 
+00ce 78547c00 disable user 
+00cf 58000000 setarg 0 
+00d0 67e348d1 store 6 ,mem_mouse_x 
+00d1 20404240 call mouse_check_sensor_data 
+00d2 20403f7e call mouse_zwheel 
+00d3 20403f83 call mouse_t_zwheel 
+00d4 204040dc call mouse_key 
+00d5 6fe0c8d0 fetch 1 ,mem_mouse_key 
+00d6 1fe17e1f and_into 0x1f ,pdata 
+00d7 67e0c8d0 store 1 ,mem_mouse_key 
+00d8 243400dc nbranch p_mouse_motion_nodata ,user 
+00d9 2040471a call mouse_drawing_optima 
+00da 204000df call p_mouse_logo_led_on_check 
+00db 20204544 branch mouse_no_data_timer_init 
 
 p_mouse_motion_nodata:
-00b8 20404728 call mouse_drawing_optima_init 
-00b9 704be300 jam 0 ,mem_mouse_logo_led_on_check_count 
-00ba 20600000 rtn 
+00dc 20404728 call mouse_drawing_optima_init 
+00dd 704be300 jam 0 ,mem_mouse_logo_led_on_check_count 
+00de 20600000 rtn 
 
 p_mouse_logo_led_on_check:
-00bb 6fe0cbe3 fetch 1 ,mem_mouse_logo_led_on_check_count 
-00bc 1fe0fe01 increase 1 ,pdata 
-00bd 67e0cbe3 store 1 ,mem_mouse_logo_led_on_check_count 
-00be 1fe67c08 sub pdata ,low_voltage_led_count ,null 
-00bf 20610000 rtn positive 
+00df 6fe0cbe3 fetch 1 ,mem_mouse_logo_led_on_check_count 
+00e0 1fe0fe01 increase 1 ,pdata 
+00e1 67e0cbe3 store 1 ,mem_mouse_logo_led_on_check_count 
+00e2 1fe67c08 sub pdata ,low_voltage_led_count ,null 
+00e3 20610000 rtn positive 
 
 p_mouse_logo_led_on:
-00c0 58000258 setarg 0x0258 
-00c1 67e14be4 store 2 ,mem_mouse_logo_led_on_timer 
-00c2 20600000 rtn 
+00e4 58000258 setarg 0x0258 
+00e5 67e14be4 store 2 ,mem_mouse_logo_led_on_timer 
+00e6 20600000 rtn 
 
 p_mouse_seting_dpi:
-00c3 2040408f call mouse_setting_dpi_4_level 
-00c4 204000c6 call p_mouse_dpi_led_blink_delay 
-00c5 20204098 branch mouse_seting_sensor_type 
+00e7 2040408f call mouse_setting_dpi_4_level 
+00e8 204000ea call p_mouse_dpi_led_blink_delay 
+00e9 20204098 branch mouse_seting_sensor_type 
 
 p_mouse_dpi_led_blink_delay:
-00c6 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00c7 c17f8000 rtneq gpio_disable 
-00c8 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-00c9 247a0000 nrtn blank 
-00ca 6fe14883 fetch 2 ,mem_24g_pair_timeout 
-00cb 247a0000 nrtn blank 
-00cc 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
-00cd 247a0000 nrtn blank 
-00ce 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-00cf 247a0000 nrtn blank 
-00d0 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-00d1 203a010c branch p_mouse_dpi_led_blink_init ,blank 
-00d2 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
-00d3 20600000 rtn 
+00ea 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+00eb c17f8000 rtneq gpio_disable 
+00ec 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+00ed 247a0000 nrtn blank 
+00ee 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+00ef 247a0000 nrtn blank 
+00f0 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+00f1 247a0000 nrtn blank 
+00f2 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+00f3 247a0000 nrtn blank 
+00f4 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+00f5 203a0130 branch p_mouse_dpi_led_blink_init ,blank 
+00f6 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
+00f7 20600000 rtn 
 
 p_mouse_bb_event_timer:
-00d4 20403e9b call mouse_adc_read 
-00d5 20404956 call mouse_low_voltage_led_timer 
-00d6 2040232b call g24_pair_timeout_timer 
-00d7 20402556 call g24_reconn_timeout_timer 
-00d8 204047cd call mouse_24g_long_sleep_param_update_timer 
-00d9 204048be call mouse_device_poweron_timer 
-00da 20400109 call p_mouse_dpi_led_blink_delay_timer 
-00db 2040407c call mouse_dpi_key_check_long_press 
-00dc 204044cc call mouse_bt_discovery_check 
-00dd 204044dc call mouse_commbination_key_process 
-00de 204044ff call mouse_check_discovery_timeout_timer 
-00df 20404504 call mouse_check_direct_timeout_timer 
-00e0 20404512 call mouse_le_enable_att_list_timer 
-00e1 2040451f call mouse_le_battery_updata_timer 
-00e2 20404515 call mouse_le_send_smp_security_request_timer 
-00e3 2040452a call mouse_check_hid_handshake_timer 
-00e4 2040452d call mouse_bt_check_sniff_req_timeout_timer 
-00e5 20404532 call mouse_check_reconnect_delay_long_sleep 
-00e6 20404535 call mouse_current_mult_update_timer 
-00e7 20404022 call mouse_wheel_trigger_timer 
-00e8 20404547 call mouse_store_information_delay_timer 
-00e9 204000fe call p_mouse_logo_led_on_timer 
-00ea 202000f6 branch p_mouse_check_no_data_timeout_timer 
+00f8 20403e9b call mouse_adc_read 
+00f9 20404956 call mouse_low_voltage_led_timer 
+00fa 2040232b call g24_pair_timeout_timer 
+00fb 20402556 call g24_reconn_timeout_timer 
+00fc 204047cd call mouse_24g_long_sleep_param_update_timer 
+00fd 204048be call mouse_device_poweron_timer 
+00fe 2040012d call p_mouse_dpi_led_blink_delay_timer 
+00ff 2040407c call mouse_dpi_key_check_long_press 
+0100 204044cc call mouse_bt_discovery_check 
+0101 204044dc call mouse_commbination_key_process 
+0102 204044ff call mouse_check_discovery_timeout_timer 
+0103 20404504 call mouse_check_direct_timeout_timer 
+0104 20404512 call mouse_le_enable_att_list_timer 
+0105 2040451f call mouse_le_battery_updata_timer 
+0106 20404515 call mouse_le_send_smp_security_request_timer 
+0107 2040452a call mouse_check_hid_handshake_timer 
+0108 2040452d call mouse_bt_check_sniff_req_timeout_timer 
+0109 20404532 call mouse_check_reconnect_delay_long_sleep 
+010a 20404535 call mouse_current_mult_update_timer 
+010b 20404022 call mouse_wheel_trigger_timer 
+010c 20404547 call mouse_store_information_delay_timer 
+010d 20400122 call p_mouse_logo_led_on_timer 
+010e 2020011a branch p_mouse_check_no_data_timeout_timer 
 
 p_mouse_24g_hibernate_set:
-00eb 7048a500 jam 0 ,mem_24g_attempt_fail_flag 
-00ec 20402652 call g24_transmit_next_packet 
-00ed 5fffffff setarg -1 
-00ee 67e2485c store 4 ,mem_24g_enter_hibernate 
-00ef 58000000 setarg 0 
-00f0 67e3c8d0 store 7 ,mem_mouse_key 
-00f1 704be101 jam 1 ,mem_sensor_shutdown_flag 
-00f2 2040012a call p_mouse_sensor_powerdown 
-00f3 20403e33 call mouse_setgpio_hibernate 
-00f4 20400105 call p_mouse_logo_led_on_timeout 
-00f5 202026b5 branch g24_long_sleep 
+010f 7048a500 jam 0 ,mem_24g_attempt_fail_flag 
+0110 20402652 call g24_transmit_next_packet 
+0111 5fffffff setarg -1 
+0112 67e2485c store 4 ,mem_24g_enter_hibernate 
+0113 58000000 setarg 0 
+0114 67e3c8d0 store 7 ,mem_mouse_key 
+0115 704be101 jam 1 ,mem_sensor_shutdown_flag 
+0116 2040014e call p_mouse_sensor_powerdown 
+0117 20403e33 call mouse_setgpio_hibernate 
+0118 20400129 call p_mouse_logo_led_on_timeout 
+0119 202026b5 branch g24_long_sleep 
 
 p_mouse_check_no_data_timeout_timer:
-00f6 6fe0c92a fetch 1 ,mem_usb_addr 
-00f7 c3838000 rtnbit1 7 
-00f8 da604ab2 arg mem_mouse_no_data_timer ,regc 
-00f9 da4000fb arg p_mouse_check_no_data_timeout ,regb 
-00fa 20203191 branch timer_single_step_2b 
+011a 6fe0c92a fetch 1 ,mem_usb_addr 
+011b c3838000 rtnbit1 7 
+011c da604ab2 arg mem_mouse_no_data_timer ,regc 
+011d da40011f arg p_mouse_check_no_data_timeout ,regb 
+011e 20203191 branch timer_single_step_2b 
 
 p_mouse_check_no_data_timeout:
-00fb 6fe0c938 fetch 1 ,mem_device_flag 
-00fc c00000eb beq mode_24g_device ,p_mouse_24g_hibernate_set 
-00fd 2020431b branch mouse_disconnect 
+011f 6fe0c938 fetch 1 ,mem_device_flag 
+0120 c000010f beq mode_24g_device ,p_mouse_24g_hibernate_set 
+0121 2020431b branch mouse_disconnect 
 
 p_mouse_logo_led_on_timer:
-00fe 6fe14be4 fetch 2 ,mem_mouse_logo_led_on_timer 
-00ff 207a0000 rtn blank 
-0100 6848cbe2 fetcht 1 ,mem_mouse_logo_led_gpio 
-0101 20406069 call gpio_out_active 
-0102 da604be4 arg mem_mouse_logo_led_on_timer ,regc 
-0103 da400105 arg p_mouse_logo_led_on_timeout ,regb 
-0104 20203191 branch timer_single_step_2b 
+0122 6fe14be4 fetch 2 ,mem_mouse_logo_led_on_timer 
+0123 207a0000 rtn blank 
+0124 6848cbe2 fetcht 1 ,mem_mouse_logo_led_gpio 
+0125 20406069 call gpio_out_active 
+0126 da604be4 arg mem_mouse_logo_led_on_timer ,regc 
+0127 da400129 arg p_mouse_logo_led_on_timeout ,regb 
+0128 20203191 branch timer_single_step_2b 
 
 p_mouse_logo_led_on_timeout:
-0105 58000000 setarg 0 
-0106 67e14be4 store 2 ,mem_mouse_logo_led_on_timer 
-0107 6848cbe2 fetcht 1 ,mem_mouse_logo_led_gpio 
-0108 20206065 branch gpio_out_inactive 
+0129 58000000 setarg 0 
+012a 67e14be4 store 2 ,mem_mouse_logo_led_on_timer 
+012b 6848cbe2 fetcht 1 ,mem_mouse_logo_led_gpio 
+012c 20206065 branch gpio_out_inactive 
 
 p_mouse_dpi_led_blink_delay_timer:
-0109 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-010a da40010c arg p_mouse_dpi_led_blink_init ,regb 
-010b 2020318a branch timer_single_step 
+012d da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+012e da400130 arg p_mouse_dpi_led_blink_init ,regb 
+012f 2020318a branch timer_single_step 
 
 p_mouse_dpi_led_blink_init:
-010c 6fe0c927 fetch 1 ,mem_config_sensor_type 
-010d c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-010e c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-010f 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-0110 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-0111 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-0112 67e14930 store 2 ,mem_mouse_on_time 
-0113 67e14932 store 2 ,mem_mouse_off_time 
-0114 da200000 arg 0 ,rega 
-0115 6848c992 fetcht 1 ,mem_mouse_dpi 
-0116 18408402 increase 2 ,temp 
-0117 18467c03 sub temp ,3 ,null 
-0118 2041011b call p_mouse_dpi_led_blink_init_level_4 ,positive 
-0119 2441011f ncall p_mouse_dpi_led_blink_count_clean ,positive 
-011a 202048ff branch mouse_dpi_led_blink_init_end 
+0130 6fe0c927 fetch 1 ,mem_config_sensor_type 
+0131 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
+0132 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
+0133 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+0134 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
+0135 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
+0136 67e14930 store 2 ,mem_mouse_on_time 
+0137 67e14932 store 2 ,mem_mouse_off_time 
+0138 da200000 arg 0 ,rega 
+0139 6848c992 fetcht 1 ,mem_mouse_dpi 
+013a 18408402 increase 2 ,temp 
+013b 18467c03 sub temp ,3 ,null 
+013c 2041013f call p_mouse_dpi_led_blink_init_level_4 ,positive 
+013d 24410143 ncall p_mouse_dpi_led_blink_count_clean ,positive 
+013e 202048ff branch mouse_dpi_led_blink_init_end 
 
 p_mouse_dpi_led_blink_init_level_4:
-011b 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-011c c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-011d 18408401 increase 1 ,temp 
-011e 20600000 rtn 
+013f 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0140 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+0141 18408401 increase 1 ,temp 
+0142 20600000 rtn 
 
 p_mouse_dpi_led_blink_count_clean:
-011f 184085fd increase -3 ,temp 
-0120 20600000 rtn 
+0143 184085fd increase -3 ,temp 
+0144 20600000 rtn 
 
 p_g24_dispatch:
-0121 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-0122 245a0124 ncall p_mouse_enable_g24_mark ,blank 
-0123 202021d2 branch g24_dispatch + 1 
+0145 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+0146 245a0148 ncall p_mouse_enable_g24_mark ,blank 
+0147 202021d2 branch g24_dispatch + 1 
 
 p_mouse_enable_g24_mark:
-0124 79200026 set1 mark_24g ,mark 
-0125 20600000 rtn 
+0148 79200026 set1 mark_24g ,mark 
+0149 20600000 rtn 
 
 p_mouse_init_sunt:
-0126 2040012e call p_mouse_sensor_spi_init 
-0127 202041a9 branch mouse_init_sunt + 2 
+014a 20400152 call p_mouse_sensor_spi_init 
+014b 202041a9 branch mouse_init_sunt + 2 
 
 p_mouse_sensor_poweron:
-0128 2040012e call p_mouse_sensor_spi_init 
-0129 20204238 branch mouse_sensor_poweron + 2 
+014c 20400152 call p_mouse_sensor_spi_init 
+014d 20204238 branch mouse_sensor_poweron + 2 
 
 p_mouse_sensor_powerdown:
-012a 204041a7 call mouse_init_sunt 
-012b 2040012e call p_mouse_sensor_spi_init 
-012c 58000806 setarg 0x0806 
-012d 20205b0c branch twspi_write 
+014e 204041a7 call mouse_init_sunt 
+014f 20400152 call p_mouse_sensor_spi_init 
+0150 58000806 setarg 0x0806 
+0151 20205b0c branch twspi_write 
 
 p_mouse_sensor_spi_init:
-012e 20403f6a call mouse_spid_init_pin 
-012f 6ff10050 fetch 2 ,core_clkoff 
-0130 79207e02 set1 clock_off_debug_uart ,pdata 
-0131 67f10050 store 2 ,core_clkoff 
-0132 70448476 jam 0x76 ,mem_spi_init_clk 
-0133 20403f69 call mouse_spi_init 
-0134 20205b08 branch twspi_enable 
+0152 20403f6a call mouse_spid_init_pin 
+0153 6ff10050 fetch 2 ,core_clkoff 
+0154 79207e02 set1 clock_off_debug_uart ,pdata 
+0155 67f10050 store 2 ,core_clkoff 
+0156 70448477 jam 0x77 ,mem_spi_init_clk 
+0157 20403f69 call mouse_spi_init 
+0158 20205b08 branch twspi_enable 
 
 p_mouse_app_enter_hibernate:
-0135 20404232 call mouse_sensor_reset 
-0136 2040012a call p_mouse_sensor_powerdown 
-0137 20403e33 call mouse_setgpio_hibernate 
-0138 20203217 branch app_enter_hibernate 
+0159 20404232 call mouse_sensor_reset 
+015a 2040014e call p_mouse_sensor_powerdown 
+015b 20403e33 call mouse_setgpio_hibernate 
+015c 20203217 branch app_enter_hibernate 
 
 p_mouse_24g_search_dongle:
-0139 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-013a c40b0000 rtnbit0 mouse_enable_24g_search_dongle 
-013b 6fe0caae fetch 1 ,mem_mouse_long_mult_flag 
-013c 207a0000 rtn blank 
-013d 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
-013e 207a0000 rtn blank 
-013f 6fe0cba1 fetch 1 ,mem_mouse_search_dongle_interval 
-0140 1fe0fe01 increase 1 ,pdata 
-0141 1fe17e03 and_into 3 ,pdata 
-0142 67e0cba1 store 1 ,mem_mouse_search_dongle_interval 
-0143 247a0000 nrtn blank 
-0144 704ba200 jam 0 ,mem_mouse_search_dongle_ch 
+015d 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+015e c40b0000 rtnbit0 mouse_enable_24g_search_dongle 
+015f 6fe0caae fetch 1 ,mem_mouse_long_mult_flag 
+0160 207a0000 rtn blank 
+0161 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
+0162 207a0000 rtn blank 
+0163 6fe0cba1 fetch 1 ,mem_mouse_search_dongle_interval 
+0164 1fe0fe01 increase 1 ,pdata 
+0165 1fe17e03 and_into 3 ,pdata 
+0166 67e0cba1 store 1 ,mem_mouse_search_dongle_interval 
+0167 247a0000 nrtn blank 
+0168 704ba200 jam 0 ,mem_mouse_search_dongle_ch 
 
 p_mouse_24g_search_dongle_loop:
-0145 6fe0cba2 fetch 1 ,mem_mouse_search_dongle_ch 
-0146 1fe0fe01 increase 1 ,pdata 
-0147 67e0cba2 store 1 ,mem_mouse_search_dongle_ch 
-0148 1fe67c08 sub pdata ,g24_ch_number ,null 
-0149 2421014f nbranch p_mouse_24g_search_dongle_loop_end ,positive 
-014a 2040259a call g24_reconn_data_prep 
-014b 2040265b call g24_transmit_receive_ack 
-014c 242c0155 nbranch p_mouse_24g_search_dongle_loop_retry ,sync 
-014d 24378155 nbranch p_mouse_24g_search_dongle_loop_retry ,user3 
-014e 204048b5 call mouse_24g_search_dongle_success 
+0169 6fe0cba2 fetch 1 ,mem_mouse_search_dongle_ch 
+016a 1fe0fe01 increase 1 ,pdata 
+016b 67e0cba2 store 1 ,mem_mouse_search_dongle_ch 
+016c 1fe67c08 sub pdata ,g24_ch_number ,null 
+016d 24210173 nbranch p_mouse_24g_search_dongle_loop_end ,positive 
+016e 2040259a call g24_reconn_data_prep 
+016f 2040265b call g24_transmit_receive_ack 
+0170 242c0179 nbranch p_mouse_24g_search_dongle_loop_retry ,sync 
+0171 24378179 nbranch p_mouse_24g_search_dongle_loop_retry ,user3 
+0172 204048b5 call mouse_24g_search_dongle_success 
 
 p_mouse_24g_search_dongle_loop_end:
-014f 20402597 call g24_txbuf_clear 
-0150 6fe0cba3 fetch 1 ,mem_mouse_search_dongle_count 
-0151 1fe0fe01 increase 1 ,pdata 
-0152 67e0cba3 store 1 ,mem_mouse_search_dongle_count 
-0153 c0080157 beq g24_ch_poll_count ,p_mouse_24g_search_dongle_check 
-0154 20600000 rtn 
+0173 20402597 call g24_txbuf_clear 
+0174 6fe0cba3 fetch 1 ,mem_mouse_search_dongle_count 
+0175 1fe0fe01 increase 1 ,pdata 
+0176 67e0cba3 store 1 ,mem_mouse_search_dongle_count 
+0177 c008017b beq g24_ch_poll_count ,p_mouse_24g_search_dongle_check 
+0178 20600000 rtn 
 
 p_mouse_24g_search_dongle_loop_retry:
-0155 204022cb call g24_ch 
-0156 20200145 branch p_mouse_24g_search_dongle_loop 
+0179 204022cb call g24_ch 
+017a 20200169 branch p_mouse_24g_search_dongle_loop 
 
 p_mouse_24g_search_dongle_check:
-0157 704ba300 jam 0 ,mem_mouse_search_dongle_count 
-0158 6fe0cba4 fetch 1 ,mem_mouse_search_dongle_action 
-0159 c3800000 rtnbit1 g24_disconn_state 
-015a 79207e00 set1 g24_disconn_state ,pdata 
-015b 67e0cba4 store 1 ,mem_mouse_search_dongle_action 
-015c 6fe14bbc fetch 2 ,mem_mouse_24g_search_dongle_time_init 
-015d 67e14ab2 store 2 ,mem_mouse_no_data_timer 
-015e 2020012a branch p_mouse_sensor_powerdown 
+017b 704ba300 jam 0 ,mem_mouse_search_dongle_count 
+017c 6fe0cba4 fetch 1 ,mem_mouse_search_dongle_action 
+017d c3800000 rtnbit1 g24_disconn_state 
+017e 79207e00 set1 g24_disconn_state ,pdata 
+017f 67e0cba4 store 1 ,mem_mouse_search_dongle_action 
+0180 6fe14bbc fetch 2 ,mem_mouse_24g_search_dongle_time_init 
+0181 67e14ab2 store 2 ,mem_mouse_no_data_timer 
+0182 2020014e branch p_mouse_sensor_powerdown 
               org 0x800
 
 start:
@@ -22212,6 +22262,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-Logo_Only2.4G/program/app_mouse.prog	(revision 383)
+++ /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo-Logo_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-Logo_Only2.4G/program/patch.prog	(revision 383)
+++ /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo-Logo_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
@@ -63,6 +63,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
@@ -420,7 +469,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-Logo_Only2.4G/sched/mouse.dat	(revision 383)
+++ /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo-Logo_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
@@ -190,7 +190,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
 
