Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YDN_Project/G-117-3_Only24g_AutoPair/output/eeprom.dat	(revision 621)
+++ /YC1308AC/branch/mouse_project/YDN_Project/G-117-3_Only24g_AutoPair/output/eeprom.dat	(working copy)
@@ -2,8 +2,8 @@
 02
 aa
 55
-d6
-0c
+02
+0d
 c2
 84
 00
@@ -43,7 +43,7 @@
 c0
 61
 81
-e0
+e6
 c0
 63
 81
@@ -59,39 +59,39 @@
 c0
 66
 03
-03
+0e
 c0
 67
 02
-e3
+ee
 c0
 68
 01
-ef
+f5
 c0
 69
 82
-0d
+13
 c0
 6a
 02
-26
+2c
 c0
 6b
 01
-c3
+c9
 c0
 6c
 82
-40
+46
 c0
 6d
 02
-a0
+ab
 c0
 74
 02
-ab
+b6
 20
 20
 13
@@ -107,11 +107,11 @@
 c0
 43
 82
-a7
+b2
 c0
 50
 82
-bf
+ca
 c0
 54
 80
@@ -131,7 +131,7 @@
 c0
 76
 02
-e0
+eb
 20
 20
 13
@@ -615,7 +615,7 @@
 20
 40
 01
-f1
+f7
 20
 40
 3d
@@ -631,7 +631,7 @@
 20
 40
 02
-38
+3e
 20
 20
 3b
@@ -1231,7 +1231,7 @@
 20
 20
 02
-38
+3e
 6f
 e1
 4c
@@ -1555,7 +1555,7 @@
 24
 5a
 02
-0f
+15
 70
 4b
 e1
@@ -1647,11 +1647,11 @@
 20
 40
 02
-31
+37
 20
 40
 02
-38
+3e
 20
 20
 3e
@@ -1716,6 +1716,30 @@
 40
 60
 93
+6f
+e0
+80
+a1
+79
+3f
+fe
+03
+67
+e0
+80
+a1
+6f
+e0
+80
+9f
+79
+3f
+fe
+03
+67
+e0
+80
+9f
 20
 40
 5b
@@ -1799,7 +1823,7 @@
 20
 40
 02
-38
+3e
 20
 40
 3e
@@ -1815,15 +1839,15 @@
 c0
 1e
 01
-db
+e1
 c0
 19
 01
-c8
+ce
 c0
 22
 01
-cf
+d5
 20
 20
 43
@@ -1835,7 +1859,7 @@
 c0
 00
 81
-cc
+d2
 70
 4b
 76
@@ -1939,7 +1963,7 @@
 c0
 00
 01
-e5
+eb
 20
 20
 3d
@@ -1990,8 +2014,8 @@
 8f
 20
 40
-01
-ff
+02
+05
 6f
 e0
 c9
@@ -2002,8 +2026,8 @@
 bb
 c0
 05
-81
-fa
+82
+00
 c0
 00
 40
@@ -2095,7 +2119,7 @@
 20
 3a
 02
-61
+67
 67
 e0
 cb
@@ -2123,7 +2147,7 @@
 c0
 18
 02
-17
+1d
 c0
 18
 c2
@@ -2143,7 +2167,7 @@
 20
 20
 02
-10
+16
 6f
 e0
 c9
@@ -2151,7 +2175,7 @@
 c0
 2d
 02
-20
+26
 c0
 6c
 41
@@ -2179,7 +2203,7 @@
 20
 20
 02
-10
+16
 70
 49
 27
@@ -2203,7 +2227,7 @@
 20
 20
 01
-f1
+f7
 20
 40
 3f
@@ -2215,7 +2239,7 @@
 c0
 05
 82
-2d
+33
 20
 40
 42
@@ -2231,11 +2255,11 @@
 20
 20
 01
-f1
+f7
 20
 40
 02
-34
+3a
 da
 60
 4c
@@ -2247,7 +2271,7 @@
 20
 20
 01
-f1
+f7
 6f
 e0
 c9
@@ -2255,7 +2279,7 @@
 c0
 05
 82
-34
+3a
 20
 20
 42
@@ -2291,7 +2315,7 @@
 c0
 05
 82
-3e
+44
 58
 00
 08
@@ -2311,7 +2335,7 @@
 20
 40
 02
-76
+7c
 20
 40
 3e
@@ -2319,7 +2343,7 @@
 20
 40
 03
-1e
+29
 20
 40
 23
@@ -2335,7 +2359,7 @@
 20
 40
 02
-5e
+64
 20
 40
 40
@@ -2347,7 +2371,7 @@
 20
 40
 02
-8b
+96
 20
 40
 44
@@ -2395,7 +2419,7 @@
 20
 20
 02
-56
+5c
 6f
 e0
 c9
@@ -2411,7 +2435,7 @@
 da
 40
 02
-5b
+61
 20
 20
 31
@@ -2423,7 +2447,7 @@
 c0
 00
 01
-b9
+bf
 20
 20
 43
@@ -2435,7 +2459,7 @@
 da
 40
 02
-61
+67
 20
 20
 31
@@ -2491,11 +2515,11 @@
 20
 41
 02
-70
+76
 24
 41
 02
-74
+7a
 20
 20
 48
@@ -2551,11 +2575,11 @@
 20
 3a
 02
-7f
+85
 20
 40
 02
-81
+88
 20
 20
 49
@@ -2563,7 +2587,11 @@
 20
 40
 02
-81
+88
+20
+40
+02
+92
 20
 20
 49
@@ -2608,6 +2636,22 @@
 20
 60
 69
+d8
+40
+00
+03
+20
+40
+3f
+56
+d8
+40
+00
+13
+20
+20
+3f
+56
 6f
 e0
 c9
@@ -2615,7 +2659,7 @@
 c0
 00
 02
-91
+9c
 6f
 e4
 4b
@@ -2631,7 +2675,7 @@
 20
 20
 02
-94
+9f
 6f
 e4
 4b
@@ -2667,7 +2711,7 @@
 20
 22
 82
-9b
+a6
 20
 20
 44
@@ -2763,7 +2807,7 @@
 c0
 04
 82
-b3
+be
 20
 20
 4d
@@ -2863,7 +2907,7 @@
 c0
 02
 02
-cc
+d7
 20
 20
 19
@@ -2879,7 +2923,7 @@
 c0
 09
 02
-d0
+db
 20
 20
 1c
@@ -2979,7 +3023,7 @@
 20
 40
 01
-f1
+f7
 20
 40
 3f
@@ -3011,7 +3055,7 @@
 20
 40
 02
-f1
+fc
 20
 20
 45
@@ -3123,7 +3167,7 @@
 24
 21
 03
-1c
+27
 6f
 e0
 c4
@@ -3131,7 +3175,7 @@
 c0
 81
 03
-14
+1f
 68
 49
 48
@@ -3288,8 +3332,8 @@
 60
 00
 00
-86
-c4
+56
+4b
 aa
 55
 40
@@ -4555,52 +4599,8 @@
 55
 a4
 82
-3e
-98
-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
+97
+90
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-37
-f2
+c0
+06
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/YDN_Project/G-117-3_Only24g_AutoPair/output/program.lis	(revision 621)
+++ /YC1308AC/branch/mouse_project/YDN_Project/G-117-3_Only24g_AutoPair/output/program.lis	(working copy)
@@ -9,31 +9,31 @@
 0006 c04f8091 beq patch13_7 ,p_init_param 
 0007 c0570093 beq patch15_6 ,p_app_init 
 0008 c0580072 beq patch16_0 ,p_app_evt_100ms_loop 
-0009 c06181e0 beq patch18_3 ,p_mouse_start_work 
+0009 c06181e6 beq patch18_3 ,p_mouse_start_work 
 000a c0638197 beq patch18_7 ,p_mouse_app_enter_hibernate 
 000b c064819d beq patch19_1 ,p_mouse_setgpio_hibernate 
 000c c06501a8 beq patch19_2 ,p_mouse_lpm_before_common 
-000d c0660303 beq patch19_4 ,p_mouse_adc_read_start 
-000e c06702e3 beq patch19_6 ,p_mouse_motion 
-000f c06801ef beq patch1a_0 ,p_mouse_seting_dpi 
-0010 c069820d beq patch1a_3 ,p_mouse_init_sunt 
-0011 c06a0226 beq patch1a_4 ,p_mouse_sensor_poweron 
-0012 c06b01c3 beq patch1a_6 ,p_mouse_priority_bb_event 
-0013 c06c8240 beq patch1b_1 ,p_mouse_bb_event_timer 
-0014 c06d02a0 beq patch1b_2 ,p_mouse_start_discovery 
-0015 c07402ab beq patch1d_0 ,p_hid_rx_process 
+000d c066030e beq patch19_4 ,p_mouse_adc_read_start 
+000e c06702ee beq patch19_6 ,p_mouse_motion 
+000f c06801f5 beq patch1a_0 ,p_mouse_seting_dpi 
+0010 c0698213 beq patch1a_3 ,p_mouse_init_sunt 
+0011 c06a022c beq patch1a_4 ,p_mouse_sensor_poweron 
+0012 c06b01c9 beq patch1a_6 ,p_mouse_priority_bb_event 
+0013 c06c8246 beq patch1b_1 ,p_mouse_bb_event_timer 
+0014 c06d02ab beq patch1b_2 ,p_mouse_start_discovery 
+0015 c07402b6 beq patch1d_0 ,p_hid_rx_process 
 0016 2020137c branch loop 
 
 pf_patch_ext:
 0017 c0198052 beq patch26_3 ,p_adc_init_data 
 0018 c01a0057 beq patch26_4 ,p_enable_adc 
-0019 c04382a7 beq patch30_7 ,p_ui_timer_check 
-001a c05082bf beq patch34_1 ,p_le_slave_match 
+0019 c04382b2 beq patch30_7 ,p_ui_timer_check 
+001a c05082ca beq patch34_1 ,p_le_slave_match 
 001b c054808b beq patch35_1 ,p_le_enable 
 001c c0710133 beq patch3c_2 ,p_g24_pair_dispatch 
 001d c074813a beq patch3d_1 ,p_g24_reconn_dispatch 
 001e c0750154 beq patch3d_2 ,p_g24_transmit_no_interrupt 
-001f c07602e0 beq patch3d_4 ,p_g24_lpm_wait 
+001f c07602eb beq patch3d_4 ,p_g24_lpm_wait 
 0020 2020137c branch loop 
 
 p_soft_reset:
@@ -184,11 +184,11 @@
 0095 204000a6 call p_mouse_setting_config 
 0096 204041a7 call mouse_init_sunt 
 0097 20758000 rtn wake 
-0098 204001f1 call p_mouse_dpi_config 
+0098 204001f7 call p_mouse_dpi_config 
 0099 20403d8a call mouse_usb_check_enable 
 009a 20404728 call mouse_drawing_optima_init 
 009b 204000ec call p_mouse_cb_fuction 
-009c 20400238 call p_mouse_sensor_powerdown 
+009c 2040023e call p_mouse_sensor_powerdown 
 009d 20203bc9 branch mouse_init + 8 
 
 p_mouse_wheel_set_wakeup:
@@ -368,7 +368,7 @@
 012f 67e0cba4 store 1 ,mem_mouse_search_dongle_action 
 0130 6fe14bbc fetch 2 ,mem_mouse_24g_search_dongle_time_init 
 0131 67e14ab2 store 2 ,mem_mouse_no_data_timer 
-0132 20200238 branch p_mouse_sensor_powerdown 
+0132 2020023e branch p_mouse_sensor_powerdown 
 
 p_g24_pair_dispatch:
 0133 6fe14c0c fetch 2 ,mem_24g_pair_count 
@@ -473,7 +473,7 @@
 
 p_mouse_wakeup_24g:
 0182 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-0183 245a020f ncall p_mouse_init_sensor_wakeup ,blank 
+0183 245a0215 ncall p_mouse_init_sensor_wakeup ,blank 
 0184 704be100 jam 0 ,mem_sensor_shutdown_flag 
 0185 20600000 rtn 
 
@@ -504,8 +504,8 @@
 0197 58000006 setarg pan_reg_config 
 0198 20405b0d call twspi_read 
 0199 c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
-019a 20400231 call p_mouse_sensor_reset 
-019b 20400238 call p_mouse_sensor_powerdown 
+019a 20400237 call p_mouse_sensor_reset 
+019b 2040023e call p_mouse_sensor_powerdown 
 019c 20203e23 branch mouse_app_enter_hibernate + 3 
 
 p_mouse_setgpio_hibernate:
@@ -526,507 +526,520 @@
 01a9 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
 01aa d840003f arg gpcfg_output_high ,temp 
 01ab 20406093 call gpio_config_function_int 
-01ac 20405b04 call twspi_disable 
-01ad 6848c918 fetcht 1 ,mem_lbutton_gpio 
-01ae 20406036 call gpio_set_wake 
-01af 6848c919 fetcht 1 ,mem_rbutton_gpio 
-01b0 20406036 call gpio_set_wake 
-01b1 6848c91a fetcht 1 ,mem_mbutton_gpio 
-01b2 20406036 call gpio_set_wake 
-01b3 6848c90d fetcht 1 ,mem_bk_button_gpio 
+01ac 6fe080a1 fetch 1 ,mem_gpio_wakeup_low + 2 
+01ad 793ffe03 set0 3 ,pdata 
+01ae 67e080a1 store 1 ,mem_gpio_wakeup_low + 2 
+01af 6fe0809f fetch 1 ,mem_gpio_wakeup_low 
+01b0 793ffe03 set0 3 ,pdata 
+01b1 67e0809f store 1 ,mem_gpio_wakeup_low 
+01b2 20405b04 call twspi_disable 
+01b3 6848c918 fetcht 1 ,mem_lbutton_gpio 
 01b4 20406036 call gpio_set_wake 
-01b5 6848c90e fetcht 1 ,mem_fw_button_gpio 
+01b5 6848c919 fetcht 1 ,mem_rbutton_gpio 
 01b6 20406036 call gpio_set_wake 
-01b7 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-01b8 20206036 branch gpio_set_wake 
+01b7 6848c91a fetcht 1 ,mem_mbutton_gpio 
+01b8 20406036 call gpio_set_wake 
+01b9 6848c90d fetcht 1 ,mem_bk_button_gpio 
+01ba 20406036 call gpio_set_wake 
+01bb 6848c90e fetcht 1 ,mem_fw_button_gpio 
+01bc 20406036 call gpio_set_wake 
+01bd 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+01be 20206036 branch gpio_set_wake 
 
 p_mouse_24g_hibernate_set:
-01b9 7048a500 jam 0 ,mem_24g_attempt_fail_flag 
-01ba 20402652 call g24_transmit_next_packet 
-01bb 5fffffff setarg -1 
-01bc 67e2485c store 4 ,mem_24g_enter_hibernate 
-01bd 58000000 setarg 0 
-01be 67e3c8d0 store 7 ,mem_mouse_key 
-01bf 704be101 jam 1 ,mem_sensor_shutdown_flag 
-01c0 20400238 call p_mouse_sensor_powerdown 
-01c1 20403e33 call mouse_setgpio_hibernate 
-01c2 202026b5 branch g24_long_sleep 
+01bf 7048a500 jam 0 ,mem_24g_attempt_fail_flag 
+01c0 20402652 call g24_transmit_next_packet 
+01c1 5fffffff setarg -1 
+01c2 67e2485c store 4 ,mem_24g_enter_hibernate 
+01c3 58000000 setarg 0 
+01c4 67e3c8d0 store 7 ,mem_mouse_key 
+01c5 704be101 jam 1 ,mem_sensor_shutdown_flag 
+01c6 2040023e call p_mouse_sensor_powerdown 
+01c7 20403e33 call mouse_setgpio_hibernate 
+01c8 202026b5 branch g24_long_sleep 
 
 p_mouse_priority_bb_event:
-01c3 1a627e00 copy regc ,pdata 
-01c4 c01e01db beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-01c5 c01901c8 beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
-01c6 c02201cf beq bt_evt_le_parse_conn_param_accepted ,p_mouse_le_parse_conn_param_accepted 
-01c7 20204336 branch mouse_priority_bb_event + 2 
+01c9 1a627e00 copy regc ,pdata 
+01ca c01e01e1 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+01cb c01901ce beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
+01cc c02201d5 beq bt_evt_le_parse_conn_param_accepted ,p_mouse_le_parse_conn_param_accepted 
+01cd 20204336 branch mouse_priority_bb_event + 2 
 
 p_mouse_le_ll_start_encryt:
-01c8 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-01c9 c00081cc beq 1 ,p_mouse_le_ll_reconn_start_encryt 
-01ca 704b7614 jam 20 ,mem_le_start_encrypt_timer 
-01cb 20204373 branch mouse_le_ll_enable_start_enc_flag 
+01ce 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+01cf c00081d2 beq 1 ,p_mouse_le_ll_reconn_start_encryt 
+01d0 704b7614 jam 20 ,mem_le_start_encrypt_timer 
+01d1 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_ll_reconn_start_encryt:
-01cc 2040436c call mouse_updata_le_param 
-01cd 704b7605 jam 5 ,mem_le_start_encrypt_timer 
-01ce 20204373 branch mouse_le_ll_enable_start_enc_flag 
+01d2 2040436c call mouse_updata_le_param 
+01d3 704b7605 jam 5 ,mem_le_start_encrypt_timer 
+01d4 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_parse_conn_param_accepted:
-01cf 6fe082c1 fetch 1 ,mem_le_new_conninterval 
-01d0 1fe67c0c sub pdata ,le_interval_15ms ,null 
-01d1 24214384 nbranch mouse_le_conn_param_lpm_disable ,positive 
-01d2 67e14372 store 2 ,mem_le_interval_min 
-01d3 67e14374 store 2 ,mem_le_interval_min + 2 
-01d4 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
-01d5 6848cb8a fetcht 1 ,mem_lpm_mult_init 
-01d6 98467c00 isub temp ,null 
-01d7 2021439a branch mouse_le_lpm_mult_reinit ,positive 
-01d8 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
-01d9 67e0cb8a store 1 ,mem_lpm_mult_init 
-01da 20204386 branch mouse_le_conn_param_lpm_enable 
+01d5 6fe082c1 fetch 1 ,mem_le_new_conninterval 
+01d6 1fe67c0c sub pdata ,le_interval_15ms ,null 
+01d7 24214384 nbranch mouse_le_conn_param_lpm_disable ,positive 
+01d8 67e14372 store 2 ,mem_le_interval_min 
+01d9 67e14374 store 2 ,mem_le_interval_min + 2 
+01da 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+01db 6848cb8a fetcht 1 ,mem_lpm_mult_init 
+01dc 98467c00 isub temp ,null 
+01dd 2021439a branch mouse_le_lpm_mult_reinit ,positive 
+01de 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+01df 67e0cb8a store 1 ,mem_lpm_mult_init 
+01e0 20204386 branch mouse_le_conn_param_lpm_enable 
 
 p_mouse_24g_attempt_success:
-01db 6fe2483c fetch 4 ,mem_24g_addr 
-01dc 67e24891 store 4 ,mem_24g_receiver_addr 
-01dd 67e24993 store 4 ,mem_mouse_24g_addr 
-01de 204048c6 call mouse_device_poweron_timer_init 
-01df 2020484e branch mouse_24g_attempt_success 
+01e1 6fe2483c fetch 4 ,mem_24g_addr 
+01e2 67e24891 store 4 ,mem_24g_receiver_addr 
+01e3 67e24993 store 4 ,mem_mouse_24g_addr 
+01e4 204048c6 call mouse_device_poweron_timer_init 
+01e5 2020484e branch mouse_24g_attempt_success 
 
 p_mouse_start_work:
-01e0 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-01e1 c297c80a bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
-01e2 6fe0c938 fetch 1 ,mem_device_flag 
-01e3 c00001e5 beq mode_24g_device ,p_mouse_24g_start_mode 
-01e4 20203d57 branch mouse_start_work + 5 
+01e6 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+01e7 c297c80a bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
+01e8 6fe0c938 fetch 1 ,mem_device_flag 
+01e9 c00001eb beq mode_24g_device ,p_mouse_24g_start_mode 
+01ea 20203d57 branch mouse_start_work + 5 
 
 p_mouse_24g_start_mode:
-01e5 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-01e6 c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
-01e7 20403d65 call mouse_wakeup_from_power_check 
-01e8 20344806 branch mouse_24g_reconn_dongle_start ,user 
-01e9 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-01ea c298480c bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
-01eb c318c80c bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
-01ec 20404110 call mouse_key_check_once 
-01ed 1a217e07 and rega ,0x07 ,pdata 
-01ee 202047ff branch mouse_24g_start_mode + 9 
+01eb 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+01ec c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
+01ed 20403d65 call mouse_wakeup_from_power_check 
+01ee 20344806 branch mouse_24g_reconn_dongle_start ,user 
+01ef 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+01f0 c298480c bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
+01f1 c318c80c bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
+01f2 20404110 call mouse_key_check_once 
+01f3 1a217e07 and rega ,0x07 ,pdata 
+01f4 202047ff branch mouse_24g_start_mode + 9 
 
 p_mouse_seting_dpi:
-01ef 2040408f call mouse_setting_dpi_4_level 
-01f0 204001ff call p_mouse_dpi_led_blink_delay 
+01f5 2040408f call mouse_setting_dpi_4_level 
+01f6 20400205 call p_mouse_dpi_led_blink_delay 
 
 p_mouse_dpi_config:
 
 p_mouse_seting_sensor_type:
-01f1 6fe0c927 fetch 1 ,mem_config_sensor_type 
-01f2 c001c0bb beq p3212 ,mouse_seting_3212_dpi 
-01f3 c00581fa beq ka8g2 ,p_mouse_seting_ka8g2_dpi 
-01f4 c000409b beq p3205 ,mouse_seting_sensor_type + 3 
-01f5 6fe0c992 fetch 1 ,mem_mouse_dpi 
-01f6 c00040a2 beq mouse_dpi_level1 ,mouse_set_cpi0 
-01f7 c000c0a0 beq mouse_dpi_level2 ,mouse_set_cpi1 
-01f8 c00140a6 beq mouse_dpi_level3 ,mouse_set_cpi3 
-01f9 202040a0 branch mouse_set_cpi1 
+01f7 6fe0c927 fetch 1 ,mem_config_sensor_type 
+01f8 c001c0bb beq p3212 ,mouse_seting_3212_dpi 
+01f9 c0058200 beq ka8g2 ,p_mouse_seting_ka8g2_dpi 
+01fa c000409b beq p3205 ,mouse_seting_sensor_type + 3 
+01fb 6fe0c992 fetch 1 ,mem_mouse_dpi 
+01fc c00040a2 beq mouse_dpi_level1 ,mouse_set_cpi0 
+01fd c000c0a0 beq mouse_dpi_level2 ,mouse_set_cpi1 
+01fe c00140a6 beq mouse_dpi_level3 ,mouse_set_cpi3 
+01ff 202040a0 branch mouse_set_cpi1 
 
 p_mouse_seting_ka8g2_dpi:
-01fa 6fe0c992 fetch 1 ,mem_mouse_dpi 
-01fb c00040d6 beq mouse_dpi_level1 ,mouse_set_pka8g2_cpi0 
-01fc c000c0d4 beq mouse_dpi_level2 ,mouse_set_pka8g2_cpi1 
-01fd c00140d8 beq mouse_dpi_level3 ,mouse_set_pka8g2_cpi2 
-01fe 202040d4 branch mouse_set_pka8g2_cpi1 
+0200 6fe0c992 fetch 1 ,mem_mouse_dpi 
+0201 c00040d6 beq mouse_dpi_level1 ,mouse_set_pka8g2_cpi0 
+0202 c000c0d4 beq mouse_dpi_level2 ,mouse_set_pka8g2_cpi1 
+0203 c00140d8 beq mouse_dpi_level3 ,mouse_set_pka8g2_cpi2 
+0204 202040d4 branch mouse_set_pka8g2_cpi1 
 
 p_mouse_dpi_led_blink_delay:
-01ff 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-0200 c17f8000 rtneq gpio_disable 
-0201 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-0202 247a0000 nrtn blank 
-0203 6fe14883 fetch 2 ,mem_24g_pair_timeout 
-0204 247a0000 nrtn blank 
-0205 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
-0206 247a0000 nrtn blank 
-0207 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+0205 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+0206 c17f8000 rtneq gpio_disable 
+0207 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
 0208 247a0000 nrtn blank 
-0209 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-020a 203a0261 branch p_mouse_dpi_led_blink_init ,blank 
-020b 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
-020c 20600000 rtn 
+0209 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+020a 247a0000 nrtn blank 
+020b 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+020c 247a0000 nrtn blank 
+020d 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+020e 247a0000 nrtn blank 
+020f 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+0210 203a0267 branch p_mouse_dpi_led_blink_init ,blank 
+0211 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
+0212 20600000 rtn 
 
 p_mouse_init_sunt:
-020d 20403f65 call mouse_sensor_spi_init 
-020e 20758000 rtn wake 
+0213 20403f65 call mouse_sensor_spi_init 
+0214 20758000 rtn wake 
 
 p_mouse_init_sensor_wakeup:
-020f 20404236 call mouse_sensor_poweron 
+0215 20404236 call mouse_sensor_poweron 
 
 p_mouse_init_sensor:
-0210 204041b5 call mouse_read_sensor_id 
-0211 c0180217 beq p32xx_id1 ,p_mouse_init_p32xx_id2_judge 
-0212 c018c217 beq p3065_id1 ,mouse_init_p3065 
-0213 c02c4220 beq pka8g2_id1 ,mouse_ka8g2_id2_judge 
-0214 204041b2 call mouse_twspi_reset 
-0215 20001af4 nop 6900 
-0216 20200210 branch p_mouse_init_sensor 
+0216 204041b5 call mouse_read_sensor_id 
+0217 c018021d beq p32xx_id1 ,p_mouse_init_p32xx_id2_judge 
+0218 c018c217 beq p3065_id1 ,mouse_init_p3065 
+0219 c02c4220 beq pka8g2_id1 ,mouse_ka8g2_id2_judge 
+021a 204041b2 call mouse_twspi_reset 
+021b 20001af4 nop 6900 
+021c 20200216 branch p_mouse_init_sensor 
 
 p_mouse_init_p32xx_id2_judge:
-0217 6fe0c9c2 fetch 1 ,mem_sensor_id2 
-0218 c02d0220 beq p_mx8650 ,p_mouse_mx8650_init_param 
-0219 c06c41cb beq p8009_id2 ,mouse_8009_init_param 
-021a c068c1da beq p3205_tj3t_id2 ,mouse_3205_3t_init_param 
-021b c06941e3 beq p3204_tj3l_id2 ,mouse_3204_3l_init_param 
-021c c00141ea beq p3212_id2 ,mouse_3212_init_param 
-021d c02a41ed beq pka8_id2 ,mouse_ka8_init_param_check 
-021e c0284214 beq p6520a_id2 ,mouse_p6520_init_param 
-021f 20200210 branch p_mouse_init_sensor 
+021d 6fe0c9c2 fetch 1 ,mem_sensor_id2 
+021e c02d0226 beq p_mx8650 ,p_mouse_mx8650_init_param 
+021f c06c41cb beq p8009_id2 ,mouse_8009_init_param 
+0220 c068c1da beq p3205_tj3t_id2 ,mouse_3205_3t_init_param 
+0221 c06941e3 beq p3204_tj3l_id2 ,mouse_3204_3l_init_param 
+0222 c00141ea beq p3212_id2 ,mouse_3212_init_param 
+0223 c02a41ed beq pka8_id2 ,mouse_ka8_init_param_check 
+0224 c0284214 beq p6520a_id2 ,mouse_p6520_init_param 
+0225 20200216 branch p_mouse_init_sensor 
 
 p_mouse_mx8650_init_param:
-0220 70492705 jam mx8650 ,mem_config_sensor_type 
-0221 20404232 call mouse_sensor_reset 
-0222 20407d12 call delay_10ms 
-0223 da604be6 arg mem_sensor_8650_init_new ,regc 
-0224 2040422b call mouse_sensor_wr_seq 
-0225 202001f1 branch p_mouse_dpi_config 
+0226 70492705 jam mx8650 ,mem_config_sensor_type 
+0227 20404232 call mouse_sensor_reset 
+0228 20407d12 call delay_10ms 
+0229 da604be6 arg mem_sensor_8650_init_new ,regc 
+022a 2040422b call mouse_sensor_wr_seq 
+022b 202001f7 branch p_mouse_dpi_config 
 
 p_mouse_sensor_poweron:
-0226 20403f65 call mouse_sensor_spi_init 
-0227 6fe0c927 fetch 1 ,mem_config_sensor_type 
-0228 c005822d beq ka8g2 ,p_mouse_ka8g2_sensor_init 
-0229 20404232 call mouse_sensor_reset 
-022a da604aa3 arg mem_sensor_poweron_init ,regc 
-022b 2040422b call mouse_sensor_wr_seq 
-022c 202001f1 branch p_mouse_dpi_config 
+022c 20403f65 call mouse_sensor_spi_init 
+022d 6fe0c927 fetch 1 ,mem_config_sensor_type 
+022e c0058233 beq ka8g2 ,p_mouse_ka8g2_sensor_init 
+022f 20404232 call mouse_sensor_reset 
+0230 da604aa3 arg mem_sensor_poweron_init ,regc 
+0231 2040422b call mouse_sensor_wr_seq 
+0232 202001f7 branch p_mouse_dpi_config 
 
 p_mouse_ka8g2_sensor_init:
-022d 20400234 call p_mouse_ka8g2_sensor_reset 
-022e da604c0e arg mem_ka8g2_sensor_poweron_init ,regc 
-022f 2040422b call mouse_sensor_wr_seq 
-0230 202001f1 branch p_mouse_dpi_config 
+0233 2040023a call p_mouse_ka8g2_sensor_reset 
+0234 da604c0e arg mem_ka8g2_sensor_poweron_init ,regc 
+0235 2040422b call mouse_sensor_wr_seq 
+0236 202001f7 branch p_mouse_dpi_config 
 
 p_mouse_sensor_reset:
-0231 6fe0c927 fetch 1 ,mem_config_sensor_type 
-0232 c0058234 beq ka8g2 ,p_mouse_ka8g2_sensor_reset 
-0233 20204232 branch mouse_sensor_reset 
+0237 6fe0c927 fetch 1 ,mem_config_sensor_type 
+0238 c005823a beq ka8g2 ,p_mouse_ka8g2_sensor_reset 
+0239 20204232 branch mouse_sensor_reset 
 
 p_mouse_ka8g2_sensor_reset:
-0234 58009706 setarg 0x9706 
-0235 20405b0c call twspi_write 
-0236 20002ee0 nop 12000 
-0237 20600000 rtn 
+023a 58009706 setarg 0x9706 
+023b 20405b0c call twspi_write 
+023c 20002ee0 nop 12000 
+023d 20600000 rtn 
 
 p_mouse_sensor_powerdown:
-0238 204041a7 call mouse_init_sunt 
-0239 20403f65 call mouse_sensor_spi_init 
-023a 6fe0c927 fetch 1 ,mem_config_sensor_type 
-023b c005823e beq ka8g2 ,p_mouse_ka8g2_sensor_powerdown 
-023c 58000806 setarg 0x0806 
-023d 20205b0c branch twspi_write 
+023e 204041a7 call mouse_init_sunt 
+023f 20403f65 call mouse_sensor_spi_init 
+0240 6fe0c927 fetch 1 ,mem_config_sensor_type 
+0241 c0058244 beq ka8g2 ,p_mouse_ka8g2_sensor_powerdown 
+0242 58000806 setarg 0x0806 
+0243 20205b0c branch twspi_write 
 
 p_mouse_ka8g2_sensor_powerdown:
-023e 58001f06 setarg 0x1f06 
-023f 20205b0c branch twspi_write 
+0244 58001f06 setarg 0x1f06 
+0245 20205b0c branch twspi_write 
 
 p_mouse_bb_event_timer:
-0240 20400276 call p_mouse_device_poweron_timer 
-0241 20403e9b call mouse_adc_read 
-0242 2040031e call p_mouse_low_voltage_led_timer 
-0243 2040232b call g24_pair_timeout_timer 
-0244 20402556 call g24_reconn_timeout_timer 
-0245 204047cd call mouse_24g_long_sleep_param_update_timer 
-0246 2040025e call p_mouse_dpi_led_blink_delay_timer 
-0247 2040407c call mouse_dpi_key_check_long_press 
-0248 204044cc call mouse_bt_discovery_check 
-0249 2040028b call p_mouse_commbination_key_process 
-024a 204044ff call mouse_check_discovery_timeout_timer 
-024b 20404504 call mouse_check_direct_timeout_timer 
-024c 20404512 call mouse_le_enable_att_list_timer 
-024d 2040451f call mouse_le_battery_updata_timer 
-024e 20404515 call mouse_le_send_smp_security_request_timer 
-024f 2040452a call mouse_check_hid_handshake_timer 
-0250 2040452d call mouse_bt_check_sniff_req_timeout_timer 
-0251 20404532 call mouse_check_reconnect_delay_long_sleep 
-0252 20404535 call mouse_current_mult_update_timer 
-0253 20404022 call mouse_wheel_trigger_timer 
-0254 20404547 call mouse_store_information_delay_timer 
-0255 20200256 branch p_mouse_check_no_data_timeout_timer 
+0246 2040027c call p_mouse_device_poweron_timer 
+0247 20403e9b call mouse_adc_read 
+0248 20400329 call p_mouse_low_voltage_led_timer 
+0249 2040232b call g24_pair_timeout_timer 
+024a 20402556 call g24_reconn_timeout_timer 
+024b 204047cd call mouse_24g_long_sleep_param_update_timer 
+024c 20400264 call p_mouse_dpi_led_blink_delay_timer 
+024d 2040407c call mouse_dpi_key_check_long_press 
+024e 204044cc call mouse_bt_discovery_check 
+024f 20400296 call p_mouse_commbination_key_process 
+0250 204044ff call mouse_check_discovery_timeout_timer 
+0251 20404504 call mouse_check_direct_timeout_timer 
+0252 20404512 call mouse_le_enable_att_list_timer 
+0253 2040451f call mouse_le_battery_updata_timer 
+0254 20404515 call mouse_le_send_smp_security_request_timer 
+0255 2040452a call mouse_check_hid_handshake_timer 
+0256 2040452d call mouse_bt_check_sniff_req_timeout_timer 
+0257 20404532 call mouse_check_reconnect_delay_long_sleep 
+0258 20404535 call mouse_current_mult_update_timer 
+0259 20404022 call mouse_wheel_trigger_timer 
+025a 20404547 call mouse_store_information_delay_timer 
+025b 2020025c branch p_mouse_check_no_data_timeout_timer 
 
 p_mouse_check_no_data_timeout_timer:
-0256 6fe0c92a fetch 1 ,mem_usb_addr 
-0257 c3838000 rtnbit1 7 
-0258 da604ab2 arg mem_mouse_no_data_timer ,regc 
-0259 da40025b arg p_mouse_check_no_data_timeout ,regb 
-025a 20203191 branch timer_single_step_2b 
+025c 6fe0c92a fetch 1 ,mem_usb_addr 
+025d c3838000 rtnbit1 7 
+025e da604ab2 arg mem_mouse_no_data_timer ,regc 
+025f da400261 arg p_mouse_check_no_data_timeout ,regb 
+0260 20203191 branch timer_single_step_2b 
 
 p_mouse_check_no_data_timeout:
-025b 6fe0c938 fetch 1 ,mem_device_flag 
-025c c00001b9 beq mode_24g_device ,p_mouse_24g_hibernate_set 
-025d 2020431b branch mouse_disconnect 
+0261 6fe0c938 fetch 1 ,mem_device_flag 
+0262 c00001bf beq mode_24g_device ,p_mouse_24g_hibernate_set 
+0263 2020431b branch mouse_disconnect 
 
 p_mouse_dpi_led_blink_delay_timer:
-025e da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-025f da400261 arg p_mouse_dpi_led_blink_init ,regb 
-0260 2020318a branch timer_single_step 
+0264 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+0265 da400267 arg p_mouse_dpi_led_blink_init ,regb 
+0266 2020318a branch timer_single_step 
 
 p_mouse_dpi_led_blink_init:
-0261 6fe0c927 fetch 1 ,mem_config_sensor_type 
-0262 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-0263 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-0264 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-0265 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-0266 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-0267 67e14930 store 2 ,mem_mouse_on_time 
-0268 67e14932 store 2 ,mem_mouse_off_time 
-0269 da200000 arg 0 ,rega 
-026a 6848c992 fetcht 1 ,mem_mouse_dpi 
-026b 18408402 increase 2 ,temp 
-026c 18467c03 sub temp ,3 ,null 
-026d 20410270 call p_mouse_dpi_led_blink_init_level_4 ,positive 
-026e 24410274 ncall p_mouse_dpi_led_blink_count_clean ,positive 
-026f 202048ff branch mouse_dpi_led_blink_init_end 
+0267 6fe0c927 fetch 1 ,mem_config_sensor_type 
+0268 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
+0269 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
+026a 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+026b 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
+026c 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
+026d 67e14930 store 2 ,mem_mouse_on_time 
+026e 67e14932 store 2 ,mem_mouse_off_time 
+026f da200000 arg 0 ,rega 
+0270 6848c992 fetcht 1 ,mem_mouse_dpi 
+0271 18408402 increase 2 ,temp 
+0272 18467c03 sub temp ,3 ,null 
+0273 20410276 call p_mouse_dpi_led_blink_init_level_4 ,positive 
+0274 2441027a ncall p_mouse_dpi_led_blink_count_clean ,positive 
+0275 202048ff branch mouse_dpi_led_blink_init_end 
 
 p_mouse_dpi_led_blink_init_level_4:
-0270 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0271 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-0272 18408401 increase 1 ,temp 
-0273 20600000 rtn 
+0276 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0277 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+0278 18408401 increase 1 ,temp 
+0279 20600000 rtn 
 
 p_mouse_dpi_led_blink_count_clean:
-0274 184085fd increase -3 ,temp 
-0275 20600000 rtn 
+027a 184085fd increase -3 ,temp 
+027b 20600000 rtn 
 
 p_mouse_device_poweron_timer:
-0276 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0277 c4100000 rtnbit0 mouse_enable_power_on_led 
-0278 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-0279 207a0000 rtn blank 
-027a 1fe0ffff increase -1 ,pdata 
-027b 67e0cba7 store 1 ,mem_mouse_device_poweron_timer_count 
-027c 203a027f branch p_mouse_device_led_off ,blank 
+027c 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+027d c4100000 rtnbit0 mouse_enable_power_on_led 
+027e 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+027f 207a0000 rtn blank 
+0280 1fe0ffff increase -1 ,pdata 
+0281 67e0cba7 store 1 ,mem_mouse_device_poweron_timer_count 
+0282 203a0285 branch p_mouse_device_led_off ,blank 
 
 p_mouse_device_led_on:
-027d 20400281 call p_mouse_led_config_ouput 
-027e 20204920 branch mouse_device_led_on 
+0283 20400288 call p_mouse_led_config_ouput 
+0284 20204920 branch mouse_device_led_on 
 
 p_mouse_device_led_off:
-027f 20400281 call p_mouse_led_config_ouput 
-0280 20204912 branch mouse_device_led_off 
+0285 20400288 call p_mouse_led_config_ouput 
+0286 20400292 call p_mouse_reuse_ice_gpio_config_input 
+0287 20204912 branch mouse_device_led_off 
 
 p_mouse_led_config_ouput:
-0281 6848c921 fetcht 1 ,mem_config_low_voltage_alarm_gpio 
-0282 20406069 call gpio_config_output 
-0283 6848c915 fetcht 1 ,mem_config_device_24g_led_gpio 
-0284 20406069 call gpio_config_output 
-0285 6848c916 fetcht 1 ,mem_config_device_bt1_led_gpio 
-0286 20406069 call gpio_config_output 
-0287 6848c922 fetcht 1 ,mem_config_device_bt2_led_gpio 
-0288 20406069 call gpio_config_output 
-0289 6848c923 fetcht 1 ,mem_dpi_led_gpio 
-028a 20206069 branch gpio_config_output 
+0288 6848c921 fetcht 1 ,mem_config_low_voltage_alarm_gpio 
+0289 20406069 call gpio_config_output 
+028a 6848c915 fetcht 1 ,mem_config_device_24g_led_gpio 
+028b 20406069 call gpio_config_output 
+028c 6848c916 fetcht 1 ,mem_config_device_bt1_led_gpio 
+028d 20406069 call gpio_config_output 
+028e 6848c922 fetcht 1 ,mem_config_device_bt2_led_gpio 
+028f 20406069 call gpio_config_output 
+0290 6848c923 fetcht 1 ,mem_dpi_led_gpio 
+0291 20206069 branch gpio_config_output 
+
+p_mouse_reuse_ice_gpio_config_input:
+0292 d8400003 arg 0x03 ,temp 
+0293 20403f56 call mouse_gpio_config_input_pu 
+0294 d8400013 arg 0x13 ,temp 
+0295 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_commbination_key_process:
-028b 6fe0c938 fetch 1 ,mem_device_flag 
-028c c0000291 beq mode_24g_device ,p_mouse_24g_commbination_key_process 
-028d 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-028e c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
-028f 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
-0290 20200294 branch p_mouse_commbination_key_start 
+0296 6fe0c938 fetch 1 ,mem_device_flag 
+0297 c000029c beq mode_24g_device ,p_mouse_24g_commbination_key_process 
+0298 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0299 c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
+029a 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
+029b 2020029f branch p_mouse_commbination_key_start 
 
 p_mouse_24g_commbination_key_process:
-0291 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0292 c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
-0293 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
+029c 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+029d c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
+029e 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
 
 p_mouse_commbination_key_start:
-0294 6048cb9d storet 1 ,mem_mouse_commbination_key 
-0295 20404115 call mouse_check_key_gpio 
-0296 1fe17e07 and pdata ,0x07 ,pdata 
-0297 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
-0298 98467c00 isub temp ,null 
-0299 2022829b branch p_mouse_commbination_key_down ,zero 
-029a 202044eb branch mouse_commbination_key_up 
+029f 6048cb9d storet 1 ,mem_mouse_commbination_key 
+02a0 20404115 call mouse_check_key_gpio 
+02a1 1fe17e07 and pdata ,0x07 ,pdata 
+02a2 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
+02a3 98467c00 isub temp ,null 
+02a4 202282a6 branch p_mouse_commbination_key_down ,zero 
+02a5 202044eb branch mouse_commbination_key_up 
 
 p_mouse_commbination_key_down:
-029b 204044f6 call mouse_combination_ui_timer 
-029c 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
-029d c1008000 rtneq commbination_key_state_down 
-029e 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
-029f 20600000 rtn 
+02a6 204044f6 call mouse_combination_ui_timer 
+02a7 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
+02a8 c1008000 rtneq commbination_key_state_down 
+02a9 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
+02aa 20600000 rtn 
 
 p_mouse_start_discovery:
-02a0 6fe1478c fetch 2 ,mem_ui_state_map 
-02a1 2feffe0b isolate1 ui_state_ble_adv ,pdata 
-02a2 2040c581 call mouse_stop_le_adv ,true 
-02a3 6fe1478c fetch 2 ,mem_ui_state_map 
-02a4 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
-02a5 2040c322 call mouse_cancel_reconnect ,true 
-02a6 20204554 branch mouse_start_discovery + 1 
+02ab 6fe1478c fetch 2 ,mem_ui_state_map 
+02ac 2feffe0b isolate1 ui_state_ble_adv ,pdata 
+02ad 2040c581 call mouse_stop_le_adv ,true 
+02ae 6fe1478c fetch 2 ,mem_ui_state_map 
+02af 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
+02b0 2040c322 call mouse_cancel_reconnect ,true 
+02b1 20204554 branch mouse_start_discovery + 1 
 
 p_ui_timer_check:
-02a7 6fe0cbe2 fetch 1 ,mem_power_on_flag 
-02a8 245a7861 ncall ui_timer_init ,blank 
-02a9 704be200 jam 0 ,mem_power_on_flag 
-02aa 20207851 branch ui_timer_check + 1 
+02b2 6fe0cbe2 fetch 1 ,mem_power_on_flag 
+02b3 245a7861 ncall ui_timer_init ,blank 
+02b4 704be200 jam 0 ,mem_power_on_flag 
+02b5 20207851 branch ui_timer_check + 1 
 
 p_hid_rx_process:
-02ab 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
-02ac 1fe20c00 copy pdata ,contr 
-02ad efe08006 ifetch 1 ,contr 
-02ae 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
-02af 1fe1040f and pdata ,0x0f ,temp 
-02b0 1ff1fe00 rshift4 pdata ,pdata 
-02b1 c00482b3 beq hid_type_set_idle ,p_hid_rx_process_handshake 
-02b2 20204d93 branch hid_rx_process + 7 
+02b6 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+02b7 1fe20c00 copy pdata ,contr 
+02b8 efe08006 ifetch 1 ,contr 
+02b9 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
+02ba 1fe1040f and pdata ,0x0f ,temp 
+02bb 1ff1fe00 rshift4 pdata ,pdata 
+02bc c00482be beq hid_type_set_idle ,p_hid_rx_process_handshake 
+02bd 20204d93 branch hid_rx_process + 7 
 
 p_hid_rx_process_handshake:
-02b3 da200001 arg 1 ,rega 
-02b4 20404dc0 call hid_malloc_tx_buff 
-02b5 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
-02b6 e7e10005 istore 2 ,contw 
-02b7 58000000 setarg 0 
-02b8 e7e08005 istore 1 ,contw 
-02b9 70095001 jam 1 ,mem_ui_data_txbuff_length 
-02ba 6fe0c4e2 fetch 1 ,mem_hid_control_state 
-02bb 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
-02bc 67e0c4e2 store 1 ,mem_hid_control_state 
-02bd 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
-02be 20207871 branch ui_ipc_send_event 
+02be da200001 arg 1 ,rega 
+02bf 20404dc0 call hid_malloc_tx_buff 
+02c0 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
+02c1 e7e10005 istore 2 ,contw 
+02c2 58000000 setarg 0 
+02c3 e7e08005 istore 1 ,contw 
+02c4 70095001 jam 1 ,mem_ui_data_txbuff_length 
+02c5 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+02c6 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
+02c7 67e0c4e2 store 1 ,mem_hid_control_state 
+02c8 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
+02c9 20207871 branch ui_ipc_send_event 
 
 p_le_slave_match:
-02bf 6fe0c3dd fetch 1 ,mem_le_md_count 
-02c0 1fe0fe01 pincrease 1 
-02c1 67e0c3dd store 1 ,mem_le_md_count 
-02c2 c006165a beq le_md_max_count ,le_slave_cont 
-02c3 2040191b call le_acknowledge 
-02c4 2040196a call le_prepare_tx 
-02c5 6fe082bd fetch 1 ,mem_le_tx_phy 
-02c6 2040168b call le_enable_phy_by_pdata 
-02c7 20401838 call le_transmit 
-02c8 20201655 branch le_slave_match + 10 
+02ca 6fe0c3dd fetch 1 ,mem_le_md_count 
+02cb 1fe0fe01 pincrease 1 
+02cc 67e0c3dd store 1 ,mem_le_md_count 
+02cd c006165a beq le_md_max_count ,le_slave_cont 
+02ce 2040191b call le_acknowledge 
+02cf 2040196a call le_prepare_tx 
+02d0 6fe082bd fetch 1 ,mem_le_tx_phy 
+02d1 2040168b call le_enable_phy_by_pdata 
+02d2 20401838 call le_transmit 
+02d3 20201655 branch le_slave_match + 10 
 
 p_le_parse_l2cap:
-02c9 efe10006 ifetch 2 ,contr 
-02ca c00202cc beq le_l2cap_cid_att ,p_le_parse_att 
-02cb 202019e4 branch le_parse_l2cap + 10 
+02d4 efe10006 ifetch 2 ,contr 
+02d5 c00202d7 beq le_l2cap_cid_att ,p_le_parse_att 
+02d6 202019e4 branch le_parse_l2cap + 10 
 
 p_le_parse_att:
-02cc efe18006 ifetch 3 ,contr 
-02cd 67e1c436 store 3 ,mem_le_att_opcode 
-02ce c00902d0 beq attop_write_request ,p_le_parse_att_write_request 
-02cf 20201cd3 branch le_parse_att + 2 
+02d7 efe18006 ifetch 3 ,contr 
+02d8 67e1c436 store 3 ,mem_le_att_opcode 
+02d9 c00902db beq attop_write_request ,p_le_parse_att_write_request 
+02da 20201cd3 branch le_parse_att + 2 
 
 p_le_parse_att_write_request:
-02d0 18c22200 copy contr ,rega 
-02d1 6fe143d4 fetch 2 ,mem_le_l2cap_size 
-02d2 1fe0a5fd add pdata ,-3 ,regb 
-02d3 20401a25 call le_writeatt_cb 
-02d4 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-02d5 c07f9e73 beq 0xff ,le_send_att_write_response_check_auth 
-02d6 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-02d7 203a1e73 branch le_send_att_write_response_check_auth ,blank 
-02d8 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
-02d9 c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
-02da 5800001a setarg 0x001a 
-02db 68494437 fetcht 2 ,mem_le_att_handle 
-02dc 98467c00 isub temp ,null 
-02dd 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
-02de 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
-02df 20201ec9 branch le_send_att_error_response 
+02db 18c22200 copy contr ,rega 
+02dc 6fe143d4 fetch 2 ,mem_le_l2cap_size 
+02dd 1fe0a5fd add pdata ,-3 ,regb 
+02de 20401a25 call le_writeatt_cb 
+02df 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+02e0 c07f9e73 beq 0xff ,le_send_att_write_response_check_auth 
+02e1 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+02e2 203a1e73 branch le_send_att_write_response_check_auth ,blank 
+02e3 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
+02e4 c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
+02e5 5800001a setarg 0x001a 
+02e6 68494437 fetcht 2 ,mem_le_att_handle 
+02e7 98467c00 isub temp ,null 
+02e8 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
+02e9 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
+02ea 20201ec9 branch le_send_att_error_response 
 
 p_g24_lpm_wait:
-02e0 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
-02e1 245a26e1 ncall g24_transmit_by_interrupt_enable ,blank 
-02e2 202026bc branch g24_lpm_wait + 1 
+02eb 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
+02ec 245a26e1 ncall g24_transmit_by_interrupt_enable ,blank 
+02ed 202026bc branch g24_lpm_wait + 1 
 
 p_mouse_motion:
-02e3 78547c00 disable user 
-02e4 58000000 setarg 0 
-02e5 67e348d1 store 6 ,mem_mouse_x 
-02e6 20404240 call mouse_check_sensor_data 
-02e7 204001f1 call p_mouse_dpi_config 
-02e8 20403f7e call mouse_zwheel 
-02e9 20403f83 call mouse_t_zwheel 
-02ea 204040dc call mouse_key 
-02eb 6fe0c8d0 fetch 1 ,mem_mouse_key 
-02ec 1fe17e1f and_into 0x1f ,pdata 
-02ed 67e0c8d0 store 1 ,mem_mouse_key 
-02ee 24344728 nbranch mouse_drawing_optima_init ,user 
-02ef 204002f1 call p_mouse_drawing_optima 
-02f0 20204544 branch mouse_no_data_timer_init 
+02ee 78547c00 disable user 
+02ef 58000000 setarg 0 
+02f0 67e348d1 store 6 ,mem_mouse_x 
+02f1 20404240 call mouse_check_sensor_data 
+02f2 204001f7 call p_mouse_dpi_config 
+02f3 20403f7e call mouse_zwheel 
+02f4 20403f83 call mouse_t_zwheel 
+02f5 204040dc call mouse_key 
+02f6 6fe0c8d0 fetch 1 ,mem_mouse_key 
+02f7 1fe17e1f and_into 0x1f ,pdata 
+02f8 67e0c8d0 store 1 ,mem_mouse_key 
+02f9 24344728 nbranch mouse_drawing_optima_init ,user 
+02fa 204002fc call p_mouse_drawing_optima 
+02fb 20204544 branch mouse_no_data_timer_init 
 
 p_mouse_drawing_optima:
-02f1 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-02f2 c41c0000 rtnbit0 mouse_enable_smoother 
-02f3 6fe0c927 fetch 1 ,mem_config_sensor_type 
-02f4 c1018000 rtneq p3212 
-02f5 c1000000 rtneq p3205 
-02f6 6fe248d1 fetch 4 ,mem_mouse_x 
-02f7 207a0000 rtn blank 
-02f8 204047bd call mouse_data_abs_check 
-02f9 58000006 setarg 0x06 
-02fa 204047b3 call mouse_pdata_greater_than_check 
-02fb 205a47af call mouse_disable_asm ,blank 
-02fc 245a47b1 ncall mouse_enable_asm ,blank 
-02fd 58000004 setarg 0x04 
-02fe 204047b8 call mouse_data_less_than_check 
-02ff 205a47af call mouse_disable_asm ,blank 
-0300 6fe0c9c9 fetch 1 ,mem_mouse_asm_flag 
-0301 c000c72d beq 1 ,mouse_drawing_optima_modify 
-0302 20204728 branch mouse_drawing_optima_init 
+02fc 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+02fd c41c0000 rtnbit0 mouse_enable_smoother 
+02fe 6fe0c927 fetch 1 ,mem_config_sensor_type 
+02ff c1018000 rtneq p3212 
+0300 c1000000 rtneq p3205 
+0301 6fe248d1 fetch 4 ,mem_mouse_x 
+0302 207a0000 rtn blank 
+0303 204047bd call mouse_data_abs_check 
+0304 58000006 setarg 0x06 
+0305 204047b3 call mouse_pdata_greater_than_check 
+0306 205a47af call mouse_disable_asm ,blank 
+0307 245a47b1 ncall mouse_enable_asm ,blank 
+0308 58000004 setarg 0x04 
+0309 204047b8 call mouse_data_less_than_check 
+030a 205a47af call mouse_disable_asm ,blank 
+030b 6fe0c9c9 fetch 1 ,mem_mouse_asm_flag 
+030c c000c72d beq 1 ,mouse_drawing_optima_modify 
+030d 20204728 branch mouse_drawing_optima_init 
 
 p_mouse_adc_read_start:
-0303 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
-0304 247a0000 nrtn blank 
-0305 20400057 call p_enable_adc 
-0306 7048f600 jam 0 ,mem_adc_read_timer 
-0307 20406125 call vdd_calculate_by_mode 
-0308 67e148e9 store 2 ,mem_mouse_vdd_now_vol 
-0309 d8400012 arg 0x0012 ,temp 
-030a 98467c00 isub temp ,null 
-030b 2421031c nbranch p_mouse_adc_gpio_connect_gnd ,positive 
-030c 6fe0c4a0 fetch 1 ,mem_adc_config_flag 
-030d c0810314 bne adc_config_gpio ,p_mouse_adc_data_process 
-030e 684948e9 fetcht 2 ,mem_mouse_vdd_now_vol 
-030f 184ffe08 mul32 temp ,8 ,pdata 
-0310 1fe6fc0a div pdata ,10 
-0311 20407dec call get_div_result 
-0312 9840fe00 iadd temp ,pdata 
+030e 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
+030f 247a0000 nrtn blank 
+0310 20400057 call p_enable_adc 
+0311 7048f600 jam 0 ,mem_adc_read_timer 
+0312 20406125 call vdd_calculate_by_mode 
 0313 67e148e9 store 2 ,mem_mouse_vdd_now_vol 
+0314 d8400012 arg 0x0012 ,temp 
+0315 98467c00 isub temp ,null 
+0316 24210327 nbranch p_mouse_adc_gpio_connect_gnd ,positive 
+0317 6fe0c4a0 fetch 1 ,mem_adc_config_flag 
+0318 c081031f bne adc_config_gpio ,p_mouse_adc_data_process 
+0319 684948e9 fetcht 2 ,mem_mouse_vdd_now_vol 
+031a 184ffe08 mul32 temp ,8 ,pdata 
+031b 1fe6fc0a div pdata ,10 
+031c 20407dec call get_div_result 
+031d 9840fe00 iadd temp ,pdata 
+031e 67e148e9 store 2 ,mem_mouse_vdd_now_vol 
 
 p_mouse_adc_data_process:
-0314 da2048e3 arg mem_mouse_vdd_calculate_set ,rega 
-0315 20403ed8 call mouse_adc_bat_percent_lowpower_out 
-0316 6fe0c4a4 fetch 1 ,mem_adc_power_flag 
-0317 c2813f1a bbit1 2 ,mouse_adc_button_press 
-0318 c280bf1c bbit1 1 ,mouse_power_down 
-0319 c3003ed0 bbit0 0 ,mouse_adc_no_low_voltage 
-031a 7048fa01 jam 1 ,mem_mouse_adc_last_low_voltage_flag 
-031b 20203ece branch mouse_adc_low_voltage 
+031f da2048e3 arg mem_mouse_vdd_calculate_set ,rega 
+0320 20403ed8 call mouse_adc_bat_percent_lowpower_out 
+0321 6fe0c4a4 fetch 1 ,mem_adc_power_flag 
+0322 c2813f1a bbit1 2 ,mouse_adc_button_press 
+0323 c280bf1c bbit1 1 ,mouse_power_down 
+0324 c3003ed0 bbit0 0 ,mouse_adc_no_low_voltage 
+0325 7048fa01 jam 1 ,mem_mouse_adc_last_low_voltage_flag 
+0326 20203ece branch mouse_adc_low_voltage 
 
 p_mouse_adc_gpio_connect_gnd:
-031c 6848c8fc fetcht 1 ,mem_adc_channel_gpio 
-031d 20403f54 call mouse_gpio_config_input_pd 
+0327 6848c8fc fetcht 1 ,mem_adc_channel_gpio 
+0328 20403f54 call mouse_gpio_config_input_pd 
 
 p_mouse_low_voltage_led_timer:
-031e 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-031f 247a0000 nrtn blank 
-0320 6fe14883 fetch 2 ,mem_24g_pair_timeout 
-0321 247a0000 nrtn blank 
-0322 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
-0323 247a0000 nrtn blank 
-0324 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-0325 247a0000 nrtn blank 
-0326 20404904 call mouse_check_dpi_blink 
-0327 20740000 rtn user 
-0328 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0329 c4108000 rtnbit0 mouse_enable_low_voltage_led 
-032a c4020000 rtnbit0 mouse_low_voltage_flag 
-032b c291c97c bbit1 mouse_enable_low_voltage_led_blink_n_second ,mouse_low_voltage_led_blink_new_data 
-032c 6fe0c8f8 fetch 1 ,mem_adc_low_volatage_led_timer_count 
-032d 1fe0fe01 increase 1 ,pdata 
-032e 67e0c8f8 store 1 ,mem_adc_low_volatage_led_timer_count 
-032f 1fe67c08 sub pdata ,8 ,null 
-0330 2441496e ncall mouse_adc_low_volatage_led_timer_count_clean ,positive 
-0331 c001c970 beq 3 ,mouse_low_voltage_led_on 
-0332 c002c976 beq 5 ,mouse_low_voltage_led_off 
-0333 c003c970 beq 7 ,mouse_low_voltage_led_on 
-0334 20600000 rtn 
+0329 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+032a 247a0000 nrtn blank 
+032b 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+032c 247a0000 nrtn blank 
+032d 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+032e 247a0000 nrtn blank 
+032f 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+0330 247a0000 nrtn blank 
+0331 20404904 call mouse_check_dpi_blink 
+0332 20740000 rtn user 
+0333 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0334 c4108000 rtnbit0 mouse_enable_low_voltage_led 
+0335 c4020000 rtnbit0 mouse_low_voltage_flag 
+0336 c291c97c bbit1 mouse_enable_low_voltage_led_blink_n_second ,mouse_low_voltage_led_blink_new_data 
+0337 6fe0c8f8 fetch 1 ,mem_adc_low_volatage_led_timer_count 
+0338 1fe0fe01 increase 1 ,pdata 
+0339 67e0c8f8 store 1 ,mem_adc_low_volatage_led_timer_count 
+033a 1fe67c08 sub pdata ,8 ,null 
+033b 2441496e ncall mouse_adc_low_volatage_led_timer_count_clean ,positive 
+033c c001c970 beq 3 ,mouse_low_voltage_led_on 
+033d c002c976 beq 5 ,mouse_low_voltage_led_off 
+033e c003c970 beq 7 ,mouse_low_voltage_led_on 
+033f 20600000 rtn 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/YDN_Project/G-117-3_Only24g_AutoPair/program/patch.prog	(revision 621)
+++ /YC1308AC/branch/mouse_project/YDN_Project/G-117-3_Only24g_AutoPair/program/patch.prog	(working copy)
@@ -566,6 +566,14 @@
 	arg gpcfg_output_high,temp
  	call gpio_config_function_int
 
+	fetch 1,mem_gpio_wakeup_low+2	//clear gpio19 wakeup
+	set0 3,pdata
+	store 1,mem_gpio_wakeup_low+2
+
+ 	fetch 1,mem_gpio_wakeup_low		//clear gpio3 wakeup
+	set0 3,pdata
+	store 1,mem_gpio_wakeup_low
+
  	call twspi_disable
 	
 	fetcht 1,mem_lbutton_gpio
@@ -870,6 +878,7 @@
 
 p_mouse_device_led_off:
 	call p_mouse_led_config_ouput
+	call p_mouse_reuse_ice_gpio_config_input
 	branch mouse_device_led_off
 
 p_mouse_led_config_ouput:
@@ -888,7 +897,12 @@
 	fetcht 1,mem_dpi_led_gpio
 	branch gpio_config_output
 
-	
+p_mouse_reuse_ice_gpio_config_input:	//ice gpio config led
+	arg 0x03,temp
+	call mouse_gpio_config_input_pu
+	arg 0x13,temp
+	branch mouse_gpio_config_input_pu
+
 /////////////////////////////////////////////////////////////////////////////////////////////////
 
 p_mouse_commbination_key_process:
