Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YDN_Project/G-117-3_Only24g/output/eeprom.dat	(revision 619)
+++ /YC1308AC/branch/mouse_project/YDN_Project/G-117-3_Only24g/output/eeprom.dat	(working copy)
@@ -2,8 +2,8 @@
 02
 aa
 55
-ea
-0c
+16
+0d
 c2
 84
 00
@@ -43,7 +43,7 @@
 c0
 61
 81
-e0
+e6
 c0
 63
 81
@@ -59,39 +59,39 @@
 c0
 66
 03
-08
+13
 c0
 67
 02
-e8
+f3
 c0
 68
 01
-f4
+fa
 c0
 69
 82
-12
+18
 c0
 6a
 02
-2b
+31
 c0
 6b
 01
-c3
+c9
 c0
 6c
 82
-45
+4b
 c0
 6d
 02
-a5
+b0
 c0
 74
 02
-b0
+bb
 20
 20
 13
@@ -107,11 +107,11 @@
 c0
 43
 82
-ac
+b7
 c0
 50
 82
-c4
+cf
 c0
 54
 80
@@ -131,7 +131,7 @@
 c0
 76
 02
-e5
+f0
 20
 20
 13
@@ -615,7 +615,7 @@
 20
 40
 01
-f6
+fc
 20
 40
 3d
@@ -631,7 +631,7 @@
 20
 40
 02
-3d
+43
 20
 20
 3b
@@ -1231,7 +1231,7 @@
 20
 20
 02
-3d
+43
 6f
 e1
 4c
@@ -1555,7 +1555,7 @@
 24
 5a
 02
-14
+1a
 70
 4b
 e1
@@ -1647,11 +1647,11 @@
 20
 40
 02
-36
+3c
 20
 40
 02
-3d
+43
 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
-3d
+43
 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
@@ -1991,7 +2015,7 @@
 20
 22
 81
-f2
+f8
 20
 20
 48
@@ -2011,7 +2035,7 @@
 20
 40
 02
-04
+0a
 6f
 e0
 c9
@@ -2022,8 +2046,8 @@
 bb
 c0
 05
-81
-ff
+82
+05
 c0
 00
 40
@@ -2115,7 +2139,7 @@
 20
 3a
 02
-66
+6c
 67
 e0
 cb
@@ -2143,7 +2167,7 @@
 c0
 18
 02
-1c
+22
 c0
 18
 c2
@@ -2163,7 +2187,7 @@
 20
 20
 02
-15
+1b
 6f
 e0
 c9
@@ -2171,7 +2195,7 @@
 c0
 2d
 02
-25
+2b
 c0
 6c
 41
@@ -2199,7 +2223,7 @@
 20
 20
 02
-15
+1b
 70
 49
 27
@@ -2223,7 +2247,7 @@
 20
 20
 01
-f6
+fc
 20
 40
 3f
@@ -2235,7 +2259,7 @@
 c0
 05
 82
-32
+38
 20
 40
 42
@@ -2251,11 +2275,11 @@
 20
 20
 01
-f6
+fc
 20
 40
 02
-39
+3f
 da
 60
 4c
@@ -2267,7 +2291,7 @@
 20
 20
 01
-f6
+fc
 6f
 e0
 c9
@@ -2275,7 +2299,7 @@
 c0
 05
 82
-39
+3f
 20
 20
 42
@@ -2311,7 +2335,7 @@
 c0
 05
 82
-43
+49
 58
 00
 08
@@ -2331,7 +2355,7 @@
 20
 40
 02
-7b
+81
 20
 40
 3e
@@ -2339,7 +2363,7 @@
 20
 40
 03
-23
+2e
 20
 40
 23
@@ -2355,7 +2379,7 @@
 20
 40
 02
-63
+69
 20
 40
 40
@@ -2367,7 +2391,7 @@
 20
 40
 02
-90
+9b
 20
 40
 44
@@ -2415,7 +2439,7 @@
 20
 20
 02
-5b
+61
 6f
 e0
 c9
@@ -2431,7 +2455,7 @@
 da
 40
 02
-60
+66
 20
 20
 31
@@ -2443,7 +2467,7 @@
 c0
 00
 01
-b9
+bf
 20
 20
 43
@@ -2455,7 +2479,7 @@
 da
 40
 02
-66
+6c
 20
 20
 31
@@ -2511,11 +2535,11 @@
 20
 41
 02
-75
+7b
 24
 41
 02
-79
+7f
 20
 20
 48
@@ -2571,11 +2595,11 @@
 20
 3a
 02
-84
+8a
 20
 40
 02
-86
+8d
 20
 20
 49
@@ -2583,7 +2607,11 @@
 20
 40
 02
-86
+8d
+20
+40
+02
+97
 20
 20
 49
@@ -2628,6 +2656,22 @@
 20
 60
 69
+d8
+40
+00
+03
+20
+40
+3f
+56
+d8
+40
+00
+13
+20
+20
+3f
+56
 6f
 e0
 c9
@@ -2635,7 +2679,7 @@
 c0
 00
 02
-96
+a1
 6f
 e4
 4b
@@ -2651,7 +2695,7 @@
 20
 20
 02
-99
+a4
 6f
 e4
 4b
@@ -2687,7 +2731,7 @@
 20
 22
 82
-a0
+ab
 20
 20
 44
@@ -2783,7 +2827,7 @@
 c0
 04
 82
-b8
+c3
 20
 20
 4d
@@ -2883,7 +2927,7 @@
 c0
 02
 02
-d1
+dc
 20
 20
 19
@@ -2899,7 +2943,7 @@
 c0
 09
 02
-d5
+e0
 20
 20
 1c
@@ -2999,7 +3043,7 @@
 20
 40
 01
-f6
+fc
 20
 40
 3f
@@ -3030,8 +3074,8 @@
 28
 20
 40
-02
-f6
+03
+01
 20
 20
 45
@@ -3143,7 +3187,7 @@
 24
 21
 03
-21
+2c
 6f
 e0
 c4
@@ -3151,7 +3195,7 @@
 c0
 81
 03
-19
+24
 68
 49
 48
@@ -3308,8 +3352,8 @@
 60
 00
 00
-59
-63
+a1
+8a
 aa
 55
 40
@@ -4575,52 +4619,8 @@
 55
 fb
 81
-e2
-bb
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+70
+63
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-be
-c0
+1b
+47
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/YDN_Project/G-117-3_Only24g/output/program.lis	(revision 619)
+++ /YC1308AC/branch/mouse_project/YDN_Project/G-117-3_Only24g/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 c0660308 beq patch19_4 ,p_mouse_adc_read_start 
-000e c06702e8 beq patch19_6 ,p_mouse_motion 
-000f c06801f4 beq patch1a_0 ,p_mouse_seting_dpi 
-0010 c0698212 beq patch1a_3 ,p_mouse_init_sunt 
-0011 c06a022b beq patch1a_4 ,p_mouse_sensor_poweron 
-0012 c06b01c3 beq patch1a_6 ,p_mouse_priority_bb_event 
-0013 c06c8245 beq patch1b_1 ,p_mouse_bb_event_timer 
-0014 c06d02a5 beq patch1b_2 ,p_mouse_start_discovery 
-0015 c07402b0 beq patch1d_0 ,p_hid_rx_process 
+000d c0660313 beq patch19_4 ,p_mouse_adc_read_start 
+000e c06702f3 beq patch19_6 ,p_mouse_motion 
+000f c06801fa beq patch1a_0 ,p_mouse_seting_dpi 
+0010 c0698218 beq patch1a_3 ,p_mouse_init_sunt 
+0011 c06a0231 beq patch1a_4 ,p_mouse_sensor_poweron 
+0012 c06b01c9 beq patch1a_6 ,p_mouse_priority_bb_event 
+0013 c06c824b beq patch1b_1 ,p_mouse_bb_event_timer 
+0014 c06d02b0 beq patch1b_2 ,p_mouse_start_discovery 
+0015 c07402bb 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 c04382ac beq patch30_7 ,p_ui_timer_check 
-001a c05082c4 beq patch34_1 ,p_le_slave_match 
+0019 c04382b7 beq patch30_7 ,p_ui_timer_check 
+001a c05082cf 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 c07602e5 beq patch3d_4 ,p_g24_lpm_wait 
+001f c07602f0 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 204001f6 call p_mouse_dpi_config 
+0098 204001fc 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 2040023d call p_mouse_sensor_powerdown 
+009c 20400243 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 2020023d branch p_mouse_sensor_powerdown 
+0132 20200243 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 245a0214 ncall p_mouse_init_sensor_wakeup ,blank 
+0183 245a021a 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 20400236 call p_mouse_sensor_reset 
-019b 2040023d call p_mouse_sensor_powerdown 
+019a 2040023c call p_mouse_sensor_reset 
+019b 20400243 call p_mouse_sensor_powerdown 
 019c 20203e23 branch mouse_app_enter_hibernate + 3 
 
 p_mouse_setgpio_hibernate:
@@ -526,514 +526,527 @@
 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 2040023d 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 20400243 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 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
-01ef 98467c00 isub temp ,null 
-01f0 202281f2 branch p_mouse_24g_start_pair_mode ,zero 
-01f1 2020480c branch mouse_24g_reconn_general_dongle 
+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 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
+01f5 98467c00 isub temp ,null 
+01f6 202281f8 branch p_mouse_24g_start_pair_mode ,zero 
+01f7 2020480c branch mouse_24g_reconn_general_dongle 
 
 p_mouse_24g_start_pair_mode:
-01f2 7041e89e jam tx_power_f30db ,mem_tx_power 
-01f3 20204827 branch mouse_24g_start_pair_mode 
+01f8 7041e89e jam tx_power_f30db ,mem_tx_power 
+01f9 20204827 branch mouse_24g_start_pair_mode 
 
 p_mouse_seting_dpi:
-01f4 2040408f call mouse_setting_dpi_4_level 
-01f5 20400204 call p_mouse_dpi_led_blink_delay 
+01fa 2040408f call mouse_setting_dpi_4_level 
+01fb 2040020a call p_mouse_dpi_led_blink_delay 
 
 p_mouse_dpi_config:
 
 p_mouse_seting_sensor_type:
-01f6 6fe0c927 fetch 1 ,mem_config_sensor_type 
-01f7 c001c0bb beq p3212 ,mouse_seting_3212_dpi 
-01f8 c00581ff beq ka8g2 ,p_mouse_seting_ka8g2_dpi 
-01f9 c000409b beq p3205 ,mouse_seting_sensor_type + 3 
-01fa 6fe0c992 fetch 1 ,mem_mouse_dpi 
-01fb c00040a2 beq mouse_dpi_level1 ,mouse_set_cpi0 
-01fc c000c0a0 beq mouse_dpi_level2 ,mouse_set_cpi1 
-01fd c00140a6 beq mouse_dpi_level3 ,mouse_set_cpi3 
-01fe 202040a0 branch mouse_set_cpi1 
+01fc 6fe0c927 fetch 1 ,mem_config_sensor_type 
+01fd c001c0bb beq p3212 ,mouse_seting_3212_dpi 
+01fe c0058205 beq ka8g2 ,p_mouse_seting_ka8g2_dpi 
+01ff c000409b beq p3205 ,mouse_seting_sensor_type + 3 
+0200 6fe0c992 fetch 1 ,mem_mouse_dpi 
+0201 c00040a2 beq mouse_dpi_level1 ,mouse_set_cpi0 
+0202 c000c0a0 beq mouse_dpi_level2 ,mouse_set_cpi1 
+0203 c00140a6 beq mouse_dpi_level3 ,mouse_set_cpi3 
+0204 202040a0 branch mouse_set_cpi1 
 
 p_mouse_seting_ka8g2_dpi:
-01ff 6fe0c992 fetch 1 ,mem_mouse_dpi 
-0200 c00040d6 beq mouse_dpi_level1 ,mouse_set_pka8g2_cpi0 
-0201 c000c0d4 beq mouse_dpi_level2 ,mouse_set_pka8g2_cpi1 
-0202 c00140d8 beq mouse_dpi_level3 ,mouse_set_pka8g2_cpi2 
-0203 202040d4 branch mouse_set_pka8g2_cpi1 
+0205 6fe0c992 fetch 1 ,mem_mouse_dpi 
+0206 c00040d6 beq mouse_dpi_level1 ,mouse_set_pka8g2_cpi0 
+0207 c000c0d4 beq mouse_dpi_level2 ,mouse_set_pka8g2_cpi1 
+0208 c00140d8 beq mouse_dpi_level3 ,mouse_set_pka8g2_cpi2 
+0209 202040d4 branch mouse_set_pka8g2_cpi1 
 
 p_mouse_dpi_led_blink_delay:
-0204 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-0205 c17f8000 rtneq gpio_disable 
-0206 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-0207 247a0000 nrtn blank 
-0208 6fe14883 fetch 2 ,mem_24g_pair_timeout 
-0209 247a0000 nrtn blank 
-020a 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
-020b 247a0000 nrtn blank 
-020c 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+020a 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+020b c17f8000 rtneq gpio_disable 
+020c 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
 020d 247a0000 nrtn blank 
-020e 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-020f 203a0266 branch p_mouse_dpi_led_blink_init ,blank 
-0210 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
-0211 20600000 rtn 
+020e 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+020f 247a0000 nrtn blank 
+0210 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+0211 247a0000 nrtn blank 
+0212 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+0213 247a0000 nrtn blank 
+0214 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+0215 203a026c branch p_mouse_dpi_led_blink_init ,blank 
+0216 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
+0217 20600000 rtn 
 
 p_mouse_init_sunt:
-0212 20403f65 call mouse_sensor_spi_init 
-0213 20758000 rtn wake 
+0218 20403f65 call mouse_sensor_spi_init 
+0219 20758000 rtn wake 
 
 p_mouse_init_sensor_wakeup:
-0214 20404236 call mouse_sensor_poweron 
+021a 20404236 call mouse_sensor_poweron 
 
 p_mouse_init_sensor:
-0215 204041b5 call mouse_read_sensor_id 
-0216 c018021c beq p32xx_id1 ,p_mouse_init_p32xx_id2_judge 
-0217 c018c217 beq p3065_id1 ,mouse_init_p3065 
-0218 c02c4220 beq pka8g2_id1 ,mouse_ka8g2_id2_judge 
-0219 204041b2 call mouse_twspi_reset 
-021a 20001af4 nop 6900 
-021b 20200215 branch p_mouse_init_sensor 
+021b 204041b5 call mouse_read_sensor_id 
+021c c0180222 beq p32xx_id1 ,p_mouse_init_p32xx_id2_judge 
+021d c018c217 beq p3065_id1 ,mouse_init_p3065 
+021e c02c4220 beq pka8g2_id1 ,mouse_ka8g2_id2_judge 
+021f 204041b2 call mouse_twspi_reset 
+0220 20001af4 nop 6900 
+0221 2020021b branch p_mouse_init_sensor 
 
 p_mouse_init_p32xx_id2_judge:
-021c 6fe0c9c2 fetch 1 ,mem_sensor_id2 
-021d c02d0225 beq p_mx8650 ,p_mouse_mx8650_init_param 
-021e c06c41cb beq p8009_id2 ,mouse_8009_init_param 
-021f c068c1da beq p3205_tj3t_id2 ,mouse_3205_3t_init_param 
-0220 c06941e3 beq p3204_tj3l_id2 ,mouse_3204_3l_init_param 
-0221 c00141ea beq p3212_id2 ,mouse_3212_init_param 
-0222 c02a41ed beq pka8_id2 ,mouse_ka8_init_param_check 
-0223 c0284214 beq p6520a_id2 ,mouse_p6520_init_param 
-0224 20200215 branch p_mouse_init_sensor 
+0222 6fe0c9c2 fetch 1 ,mem_sensor_id2 
+0223 c02d022b beq p_mx8650 ,p_mouse_mx8650_init_param 
+0224 c06c41cb beq p8009_id2 ,mouse_8009_init_param 
+0225 c068c1da beq p3205_tj3t_id2 ,mouse_3205_3t_init_param 
+0226 c06941e3 beq p3204_tj3l_id2 ,mouse_3204_3l_init_param 
+0227 c00141ea beq p3212_id2 ,mouse_3212_init_param 
+0228 c02a41ed beq pka8_id2 ,mouse_ka8_init_param_check 
+0229 c0284214 beq p6520a_id2 ,mouse_p6520_init_param 
+022a 2020021b branch p_mouse_init_sensor 
 
 p_mouse_mx8650_init_param:
-0225 70492705 jam mx8650 ,mem_config_sensor_type 
-0226 20404232 call mouse_sensor_reset 
-0227 20407d12 call delay_10ms 
-0228 da604be6 arg mem_sensor_8650_init_new ,regc 
-0229 2040422b call mouse_sensor_wr_seq 
-022a 202001f6 branch p_mouse_dpi_config 
+022b 70492705 jam mx8650 ,mem_config_sensor_type 
+022c 20404232 call mouse_sensor_reset 
+022d 20407d12 call delay_10ms 
+022e da604be6 arg mem_sensor_8650_init_new ,regc 
+022f 2040422b call mouse_sensor_wr_seq 
+0230 202001fc branch p_mouse_dpi_config 
 
 p_mouse_sensor_poweron:
-022b 20403f65 call mouse_sensor_spi_init 
-022c 6fe0c927 fetch 1 ,mem_config_sensor_type 
-022d c0058232 beq ka8g2 ,p_mouse_ka8g2_sensor_init 
-022e 20404232 call mouse_sensor_reset 
-022f da604aa3 arg mem_sensor_poweron_init ,regc 
-0230 2040422b call mouse_sensor_wr_seq 
-0231 202001f6 branch p_mouse_dpi_config 
+0231 20403f65 call mouse_sensor_spi_init 
+0232 6fe0c927 fetch 1 ,mem_config_sensor_type 
+0233 c0058238 beq ka8g2 ,p_mouse_ka8g2_sensor_init 
+0234 20404232 call mouse_sensor_reset 
+0235 da604aa3 arg mem_sensor_poweron_init ,regc 
+0236 2040422b call mouse_sensor_wr_seq 
+0237 202001fc branch p_mouse_dpi_config 
 
 p_mouse_ka8g2_sensor_init:
-0232 20400239 call p_mouse_ka8g2_sensor_reset 
-0233 da604c0e arg mem_ka8g2_sensor_poweron_init ,regc 
-0234 2040422b call mouse_sensor_wr_seq 
-0235 202001f6 branch p_mouse_dpi_config 
+0238 2040023f call p_mouse_ka8g2_sensor_reset 
+0239 da604c0e arg mem_ka8g2_sensor_poweron_init ,regc 
+023a 2040422b call mouse_sensor_wr_seq 
+023b 202001fc branch p_mouse_dpi_config 
 
 p_mouse_sensor_reset:
-0236 6fe0c927 fetch 1 ,mem_config_sensor_type 
-0237 c0058239 beq ka8g2 ,p_mouse_ka8g2_sensor_reset 
-0238 20204232 branch mouse_sensor_reset 
+023c 6fe0c927 fetch 1 ,mem_config_sensor_type 
+023d c005823f beq ka8g2 ,p_mouse_ka8g2_sensor_reset 
+023e 20204232 branch mouse_sensor_reset 
 
 p_mouse_ka8g2_sensor_reset:
-0239 58009706 setarg 0x9706 
-023a 20405b0c call twspi_write 
-023b 20002ee0 nop 12000 
-023c 20600000 rtn 
+023f 58009706 setarg 0x9706 
+0240 20405b0c call twspi_write 
+0241 20002ee0 nop 12000 
+0242 20600000 rtn 
 
 p_mouse_sensor_powerdown:
-023d 204041a7 call mouse_init_sunt 
-023e 20403f65 call mouse_sensor_spi_init 
-023f 6fe0c927 fetch 1 ,mem_config_sensor_type 
-0240 c0058243 beq ka8g2 ,p_mouse_ka8g2_sensor_powerdown 
-0241 58000806 setarg 0x0806 
-0242 20205b0c branch twspi_write 
+0243 204041a7 call mouse_init_sunt 
+0244 20403f65 call mouse_sensor_spi_init 
+0245 6fe0c927 fetch 1 ,mem_config_sensor_type 
+0246 c0058249 beq ka8g2 ,p_mouse_ka8g2_sensor_powerdown 
+0247 58000806 setarg 0x0806 
+0248 20205b0c branch twspi_write 
 
 p_mouse_ka8g2_sensor_powerdown:
-0243 58001f06 setarg 0x1f06 
-0244 20205b0c branch twspi_write 
+0249 58001f06 setarg 0x1f06 
+024a 20205b0c branch twspi_write 
 
 p_mouse_bb_event_timer:
-0245 2040027b call p_mouse_device_poweron_timer 
-0246 20403e9b call mouse_adc_read 
-0247 20400323 call p_mouse_low_voltage_led_timer 
-0248 2040232b call g24_pair_timeout_timer 
-0249 20402556 call g24_reconn_timeout_timer 
-024a 204047cd call mouse_24g_long_sleep_param_update_timer 
-024b 20400263 call p_mouse_dpi_led_blink_delay_timer 
-024c 2040407c call mouse_dpi_key_check_long_press 
-024d 204044cc call mouse_bt_discovery_check 
-024e 20400290 call p_mouse_commbination_key_process 
-024f 204044ff call mouse_check_discovery_timeout_timer 
-0250 20404504 call mouse_check_direct_timeout_timer 
-0251 20404512 call mouse_le_enable_att_list_timer 
-0252 2040451f call mouse_le_battery_updata_timer 
-0253 20404515 call mouse_le_send_smp_security_request_timer 
-0254 2040452a call mouse_check_hid_handshake_timer 
-0255 2040452d call mouse_bt_check_sniff_req_timeout_timer 
-0256 20404532 call mouse_check_reconnect_delay_long_sleep 
-0257 20404535 call mouse_current_mult_update_timer 
-0258 20404022 call mouse_wheel_trigger_timer 
-0259 20404547 call mouse_store_information_delay_timer 
-025a 2020025b branch p_mouse_check_no_data_timeout_timer 
+024b 20400281 call p_mouse_device_poweron_timer 
+024c 20403e9b call mouse_adc_read 
+024d 2040032e call p_mouse_low_voltage_led_timer 
+024e 2040232b call g24_pair_timeout_timer 
+024f 20402556 call g24_reconn_timeout_timer 
+0250 204047cd call mouse_24g_long_sleep_param_update_timer 
+0251 20400269 call p_mouse_dpi_led_blink_delay_timer 
+0252 2040407c call mouse_dpi_key_check_long_press 
+0253 204044cc call mouse_bt_discovery_check 
+0254 2040029b call p_mouse_commbination_key_process 
+0255 204044ff call mouse_check_discovery_timeout_timer 
+0256 20404504 call mouse_check_direct_timeout_timer 
+0257 20404512 call mouse_le_enable_att_list_timer 
+0258 2040451f call mouse_le_battery_updata_timer 
+0259 20404515 call mouse_le_send_smp_security_request_timer 
+025a 2040452a call mouse_check_hid_handshake_timer 
+025b 2040452d call mouse_bt_check_sniff_req_timeout_timer 
+025c 20404532 call mouse_check_reconnect_delay_long_sleep 
+025d 20404535 call mouse_current_mult_update_timer 
+025e 20404022 call mouse_wheel_trigger_timer 
+025f 20404547 call mouse_store_information_delay_timer 
+0260 20200261 branch p_mouse_check_no_data_timeout_timer 
 
 p_mouse_check_no_data_timeout_timer:
-025b 6fe0c92a fetch 1 ,mem_usb_addr 
-025c c3838000 rtnbit1 7 
-025d da604ab2 arg mem_mouse_no_data_timer ,regc 
-025e da400260 arg p_mouse_check_no_data_timeout ,regb 
-025f 20203191 branch timer_single_step_2b 
+0261 6fe0c92a fetch 1 ,mem_usb_addr 
+0262 c3838000 rtnbit1 7 
+0263 da604ab2 arg mem_mouse_no_data_timer ,regc 
+0264 da400266 arg p_mouse_check_no_data_timeout ,regb 
+0265 20203191 branch timer_single_step_2b 
 
 p_mouse_check_no_data_timeout:
-0260 6fe0c938 fetch 1 ,mem_device_flag 
-0261 c00001b9 beq mode_24g_device ,p_mouse_24g_hibernate_set 
-0262 2020431b branch mouse_disconnect 
+0266 6fe0c938 fetch 1 ,mem_device_flag 
+0267 c00001bf beq mode_24g_device ,p_mouse_24g_hibernate_set 
+0268 2020431b branch mouse_disconnect 
 
 p_mouse_dpi_led_blink_delay_timer:
-0263 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-0264 da400266 arg p_mouse_dpi_led_blink_init ,regb 
-0265 2020318a branch timer_single_step 
+0269 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+026a da40026c arg p_mouse_dpi_led_blink_init ,regb 
+026b 2020318a branch timer_single_step 
 
 p_mouse_dpi_led_blink_init:
-0266 6fe0c927 fetch 1 ,mem_config_sensor_type 
-0267 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-0268 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-0269 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-026a 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-026b 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-026c 67e14930 store 2 ,mem_mouse_on_time 
-026d 67e14932 store 2 ,mem_mouse_off_time 
-026e da200000 arg 0 ,rega 
-026f 6848c992 fetcht 1 ,mem_mouse_dpi 
-0270 18408402 increase 2 ,temp 
-0271 18467c03 sub temp ,3 ,null 
-0272 20410275 call p_mouse_dpi_led_blink_init_level_4 ,positive 
-0273 24410279 ncall p_mouse_dpi_led_blink_count_clean ,positive 
-0274 202048ff branch mouse_dpi_led_blink_init_end 
+026c 6fe0c927 fetch 1 ,mem_config_sensor_type 
+026d c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
+026e c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
+026f 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+0270 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
+0271 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
+0272 67e14930 store 2 ,mem_mouse_on_time 
+0273 67e14932 store 2 ,mem_mouse_off_time 
+0274 da200000 arg 0 ,rega 
+0275 6848c992 fetcht 1 ,mem_mouse_dpi 
+0276 18408402 increase 2 ,temp 
+0277 18467c03 sub temp ,3 ,null 
+0278 2041027b call p_mouse_dpi_led_blink_init_level_4 ,positive 
+0279 2441027f ncall p_mouse_dpi_led_blink_count_clean ,positive 
+027a 202048ff branch mouse_dpi_led_blink_init_end 
 
 p_mouse_dpi_led_blink_init_level_4:
-0275 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0276 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-0277 18408401 increase 1 ,temp 
-0278 20600000 rtn 
+027b 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+027c c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+027d 18408401 increase 1 ,temp 
+027e 20600000 rtn 
 
 p_mouse_dpi_led_blink_count_clean:
-0279 184085fd increase -3 ,temp 
-027a 20600000 rtn 
+027f 184085fd increase -3 ,temp 
+0280 20600000 rtn 
 
 p_mouse_device_poweron_timer:
-027b 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-027c c4100000 rtnbit0 mouse_enable_power_on_led 
-027d 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-027e 207a0000 rtn blank 
-027f 1fe0ffff increase -1 ,pdata 
-0280 67e0cba7 store 1 ,mem_mouse_device_poweron_timer_count 
-0281 203a0284 branch p_mouse_device_led_off ,blank 
+0281 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0282 c4100000 rtnbit0 mouse_enable_power_on_led 
+0283 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+0284 207a0000 rtn blank 
+0285 1fe0ffff increase -1 ,pdata 
+0286 67e0cba7 store 1 ,mem_mouse_device_poweron_timer_count 
+0287 203a028a branch p_mouse_device_led_off ,blank 
 
 p_mouse_device_led_on:
-0282 20400286 call p_mouse_led_config_ouput 
-0283 20204920 branch mouse_device_led_on 
+0288 2040028d call p_mouse_led_config_ouput 
+0289 20204920 branch mouse_device_led_on 
 
 p_mouse_device_led_off:
-0284 20400286 call p_mouse_led_config_ouput 
-0285 20204912 branch mouse_device_led_off 
+028a 2040028d call p_mouse_led_config_ouput 
+028b 20400297 call p_mouse_reuse_ice_gpio_config_input 
+028c 20204912 branch mouse_device_led_off 
 
 p_mouse_led_config_ouput:
-0286 6848c921 fetcht 1 ,mem_config_low_voltage_alarm_gpio 
-0287 20406069 call gpio_config_output 
-0288 6848c915 fetcht 1 ,mem_config_device_24g_led_gpio 
-0289 20406069 call gpio_config_output 
-028a 6848c916 fetcht 1 ,mem_config_device_bt1_led_gpio 
-028b 20406069 call gpio_config_output 
-028c 6848c922 fetcht 1 ,mem_config_device_bt2_led_gpio 
-028d 20406069 call gpio_config_output 
-028e 6848c923 fetcht 1 ,mem_dpi_led_gpio 
-028f 20206069 branch gpio_config_output 
+028d 6848c921 fetcht 1 ,mem_config_low_voltage_alarm_gpio 
+028e 20406069 call gpio_config_output 
+028f 6848c915 fetcht 1 ,mem_config_device_24g_led_gpio 
+0290 20406069 call gpio_config_output 
+0291 6848c916 fetcht 1 ,mem_config_device_bt1_led_gpio 
+0292 20406069 call gpio_config_output 
+0293 6848c922 fetcht 1 ,mem_config_device_bt2_led_gpio 
+0294 20406069 call gpio_config_output 
+0295 6848c923 fetcht 1 ,mem_dpi_led_gpio 
+0296 20206069 branch gpio_config_output 
+
+p_mouse_reuse_ice_gpio_config_input:
+0297 d8400003 arg 0x03 ,temp 
+0298 20403f56 call mouse_gpio_config_input_pu 
+0299 d8400013 arg 0x13 ,temp 
+029a 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_commbination_key_process:
-0290 6fe0c938 fetch 1 ,mem_device_flag 
-0291 c0000296 beq mode_24g_device ,p_mouse_24g_commbination_key_process 
-0292 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0293 c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
-0294 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
-0295 20200299 branch p_mouse_commbination_key_start 
+029b 6fe0c938 fetch 1 ,mem_device_flag 
+029c c00002a1 beq mode_24g_device ,p_mouse_24g_commbination_key_process 
+029d 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+029e c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
+029f 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
+02a0 202002a4 branch p_mouse_commbination_key_start 
 
 p_mouse_24g_commbination_key_process:
-0296 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0297 c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
-0298 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
+02a1 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+02a2 c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
+02a3 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
 
 p_mouse_commbination_key_start:
-0299 6048cb9d storet 1 ,mem_mouse_commbination_key 
-029a 20404115 call mouse_check_key_gpio 
-029b 1fe17e07 and pdata ,0x07 ,pdata 
-029c 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
-029d 98467c00 isub temp ,null 
-029e 202282a0 branch p_mouse_commbination_key_down ,zero 
-029f 202044eb branch mouse_commbination_key_up 
+02a4 6048cb9d storet 1 ,mem_mouse_commbination_key 
+02a5 20404115 call mouse_check_key_gpio 
+02a6 1fe17e07 and pdata ,0x07 ,pdata 
+02a7 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
+02a8 98467c00 isub temp ,null 
+02a9 202282ab branch p_mouse_commbination_key_down ,zero 
+02aa 202044eb branch mouse_commbination_key_up 
 
 p_mouse_commbination_key_down:
-02a0 204044f6 call mouse_combination_ui_timer 
-02a1 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
-02a2 c1008000 rtneq commbination_key_state_down 
-02a3 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
-02a4 20600000 rtn 
+02ab 204044f6 call mouse_combination_ui_timer 
+02ac 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
+02ad c1008000 rtneq commbination_key_state_down 
+02ae 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
+02af 20600000 rtn 
 
 p_mouse_start_discovery:
-02a5 6fe1478c fetch 2 ,mem_ui_state_map 
-02a6 2feffe0b isolate1 ui_state_ble_adv ,pdata 
-02a7 2040c581 call mouse_stop_le_adv ,true 
-02a8 6fe1478c fetch 2 ,mem_ui_state_map 
-02a9 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
-02aa 2040c322 call mouse_cancel_reconnect ,true 
-02ab 20204554 branch mouse_start_discovery + 1 
+02b0 6fe1478c fetch 2 ,mem_ui_state_map 
+02b1 2feffe0b isolate1 ui_state_ble_adv ,pdata 
+02b2 2040c581 call mouse_stop_le_adv ,true 
+02b3 6fe1478c fetch 2 ,mem_ui_state_map 
+02b4 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
+02b5 2040c322 call mouse_cancel_reconnect ,true 
+02b6 20204554 branch mouse_start_discovery + 1 
 
 p_ui_timer_check:
-02ac 6fe0cbe2 fetch 1 ,mem_power_on_flag 
-02ad 245a7861 ncall ui_timer_init ,blank 
-02ae 704be200 jam 0 ,mem_power_on_flag 
-02af 20207851 branch ui_timer_check + 1 
+02b7 6fe0cbe2 fetch 1 ,mem_power_on_flag 
+02b8 245a7861 ncall ui_timer_init ,blank 
+02b9 704be200 jam 0 ,mem_power_on_flag 
+02ba 20207851 branch ui_timer_check + 1 
 
 p_hid_rx_process:
-02b0 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
-02b1 1fe20c00 copy pdata ,contr 
-02b2 efe08006 ifetch 1 ,contr 
-02b3 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
-02b4 1fe1040f and pdata ,0x0f ,temp 
-02b5 1ff1fe00 rshift4 pdata ,pdata 
-02b6 c00482b8 beq hid_type_set_idle ,p_hid_rx_process_handshake 
-02b7 20204d93 branch hid_rx_process + 7 
+02bb 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+02bc 1fe20c00 copy pdata ,contr 
+02bd efe08006 ifetch 1 ,contr 
+02be 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
+02bf 1fe1040f and pdata ,0x0f ,temp 
+02c0 1ff1fe00 rshift4 pdata ,pdata 
+02c1 c00482c3 beq hid_type_set_idle ,p_hid_rx_process_handshake 
+02c2 20204d93 branch hid_rx_process + 7 
 
 p_hid_rx_process_handshake:
-02b8 da200001 arg 1 ,rega 
-02b9 20404dc0 call hid_malloc_tx_buff 
-02ba 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
-02bb e7e10005 istore 2 ,contw 
-02bc 58000000 setarg 0 
-02bd e7e08005 istore 1 ,contw 
-02be 70095001 jam 1 ,mem_ui_data_txbuff_length 
-02bf 6fe0c4e2 fetch 1 ,mem_hid_control_state 
-02c0 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
-02c1 67e0c4e2 store 1 ,mem_hid_control_state 
-02c2 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
-02c3 20207871 branch ui_ipc_send_event 
+02c3 da200001 arg 1 ,rega 
+02c4 20404dc0 call hid_malloc_tx_buff 
+02c5 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
+02c6 e7e10005 istore 2 ,contw 
+02c7 58000000 setarg 0 
+02c8 e7e08005 istore 1 ,contw 
+02c9 70095001 jam 1 ,mem_ui_data_txbuff_length 
+02ca 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+02cb 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
+02cc 67e0c4e2 store 1 ,mem_hid_control_state 
+02cd 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
+02ce 20207871 branch ui_ipc_send_event 
 
 p_le_slave_match:
-02c4 6fe0c3dd fetch 1 ,mem_le_md_count 
-02c5 1fe0fe01 pincrease 1 
-02c6 67e0c3dd store 1 ,mem_le_md_count 
-02c7 c006165a beq le_md_max_count ,le_slave_cont 
-02c8 2040191b call le_acknowledge 
-02c9 2040196a call le_prepare_tx 
-02ca 6fe082bd fetch 1 ,mem_le_tx_phy 
-02cb 2040168b call le_enable_phy_by_pdata 
-02cc 20401838 call le_transmit 
-02cd 20201655 branch le_slave_match + 10 
+02cf 6fe0c3dd fetch 1 ,mem_le_md_count 
+02d0 1fe0fe01 pincrease 1 
+02d1 67e0c3dd store 1 ,mem_le_md_count 
+02d2 c006165a beq le_md_max_count ,le_slave_cont 
+02d3 2040191b call le_acknowledge 
+02d4 2040196a call le_prepare_tx 
+02d5 6fe082bd fetch 1 ,mem_le_tx_phy 
+02d6 2040168b call le_enable_phy_by_pdata 
+02d7 20401838 call le_transmit 
+02d8 20201655 branch le_slave_match + 10 
 
 p_le_parse_l2cap:
-02ce efe10006 ifetch 2 ,contr 
-02cf c00202d1 beq le_l2cap_cid_att ,p_le_parse_att 
-02d0 202019e4 branch le_parse_l2cap + 10 
+02d9 efe10006 ifetch 2 ,contr 
+02da c00202dc beq le_l2cap_cid_att ,p_le_parse_att 
+02db 202019e4 branch le_parse_l2cap + 10 
 
 p_le_parse_att:
-02d1 efe18006 ifetch 3 ,contr 
-02d2 67e1c436 store 3 ,mem_le_att_opcode 
-02d3 c00902d5 beq attop_write_request ,p_le_parse_att_write_request 
-02d4 20201cd3 branch le_parse_att + 2 
+02dc efe18006 ifetch 3 ,contr 
+02dd 67e1c436 store 3 ,mem_le_att_opcode 
+02de c00902e0 beq attop_write_request ,p_le_parse_att_write_request 
+02df 20201cd3 branch le_parse_att + 2 
 
 p_le_parse_att_write_request:
-02d5 18c22200 copy contr ,rega 
-02d6 6fe143d4 fetch 2 ,mem_le_l2cap_size 
-02d7 1fe0a5fd add pdata ,-3 ,regb 
-02d8 20401a25 call le_writeatt_cb 
-02d9 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-02da c07f9e73 beq 0xff ,le_send_att_write_response_check_auth 
-02db 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-02dc 203a1e73 branch le_send_att_write_response_check_auth ,blank 
-02dd 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
-02de c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
-02df 5800001a setarg 0x001a 
-02e0 68494437 fetcht 2 ,mem_le_att_handle 
-02e1 98467c00 isub temp ,null 
-02e2 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
-02e3 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
-02e4 20201ec9 branch le_send_att_error_response 
+02e0 18c22200 copy contr ,rega 
+02e1 6fe143d4 fetch 2 ,mem_le_l2cap_size 
+02e2 1fe0a5fd add pdata ,-3 ,regb 
+02e3 20401a25 call le_writeatt_cb 
+02e4 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+02e5 c07f9e73 beq 0xff ,le_send_att_write_response_check_auth 
+02e6 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+02e7 203a1e73 branch le_send_att_write_response_check_auth ,blank 
+02e8 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
+02e9 c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
+02ea 5800001a setarg 0x001a 
+02eb 68494437 fetcht 2 ,mem_le_att_handle 
+02ec 98467c00 isub temp ,null 
+02ed 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
+02ee 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
+02ef 20201ec9 branch le_send_att_error_response 
 
 p_g24_lpm_wait:
-02e5 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
-02e6 245a26e1 ncall g24_transmit_by_interrupt_enable ,blank 
-02e7 202026bc branch g24_lpm_wait + 1 
+02f0 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
+02f1 245a26e1 ncall g24_transmit_by_interrupt_enable ,blank 
+02f2 202026bc branch g24_lpm_wait + 1 
 
 p_mouse_motion:
-02e8 78547c00 disable user 
-02e9 58000000 setarg 0 
-02ea 67e348d1 store 6 ,mem_mouse_x 
-02eb 20404240 call mouse_check_sensor_data 
-02ec 204001f6 call p_mouse_dpi_config 
-02ed 20403f7e call mouse_zwheel 
-02ee 20403f83 call mouse_t_zwheel 
-02ef 204040dc call mouse_key 
-02f0 6fe0c8d0 fetch 1 ,mem_mouse_key 
-02f1 1fe17e1f and_into 0x1f ,pdata 
-02f2 67e0c8d0 store 1 ,mem_mouse_key 
-02f3 24344728 nbranch mouse_drawing_optima_init ,user 
-02f4 204002f6 call p_mouse_drawing_optima 
-02f5 20204544 branch mouse_no_data_timer_init 
+02f3 78547c00 disable user 
+02f4 58000000 setarg 0 
+02f5 67e348d1 store 6 ,mem_mouse_x 
+02f6 20404240 call mouse_check_sensor_data 
+02f7 204001fc call p_mouse_dpi_config 
+02f8 20403f7e call mouse_zwheel 
+02f9 20403f83 call mouse_t_zwheel 
+02fa 204040dc call mouse_key 
+02fb 6fe0c8d0 fetch 1 ,mem_mouse_key 
+02fc 1fe17e1f and_into 0x1f ,pdata 
+02fd 67e0c8d0 store 1 ,mem_mouse_key 
+02fe 24344728 nbranch mouse_drawing_optima_init ,user 
+02ff 20400301 call p_mouse_drawing_optima 
+0300 20204544 branch mouse_no_data_timer_init 
 
 p_mouse_drawing_optima:
-02f6 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-02f7 c41c0000 rtnbit0 mouse_enable_smoother 
-02f8 6fe0c927 fetch 1 ,mem_config_sensor_type 
-02f9 c1018000 rtneq p3212 
-02fa c1000000 rtneq p3205 
-02fb 6fe248d1 fetch 4 ,mem_mouse_x 
-02fc 207a0000 rtn blank 
-02fd 204047bd call mouse_data_abs_check 
-02fe 58000006 setarg 0x06 
-02ff 204047b3 call mouse_pdata_greater_than_check 
-0300 205a47af call mouse_disable_asm ,blank 
-0301 245a47b1 ncall mouse_enable_asm ,blank 
-0302 58000004 setarg 0x04 
-0303 204047b8 call mouse_data_less_than_check 
-0304 205a47af call mouse_disable_asm ,blank 
-0305 6fe0c9c9 fetch 1 ,mem_mouse_asm_flag 
-0306 c000c72d beq 1 ,mouse_drawing_optima_modify 
-0307 20204728 branch mouse_drawing_optima_init 
+0301 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0302 c41c0000 rtnbit0 mouse_enable_smoother 
+0303 6fe0c927 fetch 1 ,mem_config_sensor_type 
+0304 c1018000 rtneq p3212 
+0305 c1000000 rtneq p3205 
+0306 6fe248d1 fetch 4 ,mem_mouse_x 
+0307 207a0000 rtn blank 
+0308 204047bd call mouse_data_abs_check 
+0309 58000006 setarg 0x06 
+030a 204047b3 call mouse_pdata_greater_than_check 
+030b 205a47af call mouse_disable_asm ,blank 
+030c 245a47b1 ncall mouse_enable_asm ,blank 
+030d 58000004 setarg 0x04 
+030e 204047b8 call mouse_data_less_than_check 
+030f 205a47af call mouse_disable_asm ,blank 
+0310 6fe0c9c9 fetch 1 ,mem_mouse_asm_flag 
+0311 c000c72d beq 1 ,mouse_drawing_optima_modify 
+0312 20204728 branch mouse_drawing_optima_init 
 
 p_mouse_adc_read_start:
-0308 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
-0309 247a0000 nrtn blank 
-030a 20400057 call p_enable_adc 
-030b 7048f600 jam 0 ,mem_adc_read_timer 
-030c 20406125 call vdd_calculate_by_mode 
-030d 67e148e9 store 2 ,mem_mouse_vdd_now_vol 
-030e d8400012 arg 0x0012 ,temp 
-030f 98467c00 isub temp ,null 
-0310 24210321 nbranch p_mouse_adc_gpio_connect_gnd ,positive 
-0311 6fe0c4a0 fetch 1 ,mem_adc_config_flag 
-0312 c0810319 bne adc_config_gpio ,p_mouse_adc_data_process 
-0313 684948e9 fetcht 2 ,mem_mouse_vdd_now_vol 
-0314 184ffe08 mul32 temp ,8 ,pdata 
-0315 1fe6fc0a div pdata ,10 
-0316 20407dec call get_div_result 
-0317 9840fe00 iadd temp ,pdata 
+0313 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
+0314 247a0000 nrtn blank 
+0315 20400057 call p_enable_adc 
+0316 7048f600 jam 0 ,mem_adc_read_timer 
+0317 20406125 call vdd_calculate_by_mode 
 0318 67e148e9 store 2 ,mem_mouse_vdd_now_vol 
+0319 d8400012 arg 0x0012 ,temp 
+031a 98467c00 isub temp ,null 
+031b 2421032c nbranch p_mouse_adc_gpio_connect_gnd ,positive 
+031c 6fe0c4a0 fetch 1 ,mem_adc_config_flag 
+031d c0810324 bne adc_config_gpio ,p_mouse_adc_data_process 
+031e 684948e9 fetcht 2 ,mem_mouse_vdd_now_vol 
+031f 184ffe08 mul32 temp ,8 ,pdata 
+0320 1fe6fc0a div pdata ,10 
+0321 20407dec call get_div_result 
+0322 9840fe00 iadd temp ,pdata 
+0323 67e148e9 store 2 ,mem_mouse_vdd_now_vol 
 
 p_mouse_adc_data_process:
-0319 da2048e3 arg mem_mouse_vdd_calculate_set ,rega 
-031a 20403ed8 call mouse_adc_bat_percent_lowpower_out 
-031b 6fe0c4a4 fetch 1 ,mem_adc_power_flag 
-031c c2813f1a bbit1 2 ,mouse_adc_button_press 
-031d c280bf1c bbit1 1 ,mouse_power_down 
-031e c3003ed0 bbit0 0 ,mouse_adc_no_low_voltage 
-031f 7048fa01 jam 1 ,mem_mouse_adc_last_low_voltage_flag 
-0320 20203ece branch mouse_adc_low_voltage 
+0324 da2048e3 arg mem_mouse_vdd_calculate_set ,rega 
+0325 20403ed8 call mouse_adc_bat_percent_lowpower_out 
+0326 6fe0c4a4 fetch 1 ,mem_adc_power_flag 
+0327 c2813f1a bbit1 2 ,mouse_adc_button_press 
+0328 c280bf1c bbit1 1 ,mouse_power_down 
+0329 c3003ed0 bbit0 0 ,mouse_adc_no_low_voltage 
+032a 7048fa01 jam 1 ,mem_mouse_adc_last_low_voltage_flag 
+032b 20203ece branch mouse_adc_low_voltage 
 
 p_mouse_adc_gpio_connect_gnd:
-0321 6848c8fc fetcht 1 ,mem_adc_channel_gpio 
-0322 20403f54 call mouse_gpio_config_input_pd 
+032c 6848c8fc fetcht 1 ,mem_adc_channel_gpio 
+032d 20403f54 call mouse_gpio_config_input_pd 
 
 p_mouse_low_voltage_led_timer:
-0323 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-0324 247a0000 nrtn blank 
-0325 6fe14883 fetch 2 ,mem_24g_pair_timeout 
-0326 247a0000 nrtn blank 
-0327 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
-0328 247a0000 nrtn blank 
-0329 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-032a 247a0000 nrtn blank 
-032b 20404904 call mouse_check_dpi_blink 
-032c 20740000 rtn user 
-032d 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-032e c4108000 rtnbit0 mouse_enable_low_voltage_led 
-032f c4020000 rtnbit0 mouse_low_voltage_flag 
-0330 c291c97c bbit1 mouse_enable_low_voltage_led_blink_n_second ,mouse_low_voltage_led_blink_new_data 
-0331 6fe0c8f8 fetch 1 ,mem_adc_low_volatage_led_timer_count 
-0332 1fe0fe01 increase 1 ,pdata 
-0333 67e0c8f8 store 1 ,mem_adc_low_volatage_led_timer_count 
-0334 1fe67c08 sub pdata ,8 ,null 
-0335 2441496e ncall mouse_adc_low_volatage_led_timer_count_clean ,positive 
-0336 c001c970 beq 3 ,mouse_low_voltage_led_on 
-0337 c002c976 beq 5 ,mouse_low_voltage_led_off 
-0338 c003c970 beq 7 ,mouse_low_voltage_led_on 
-0339 20600000 rtn 
+032e 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+032f 247a0000 nrtn blank 
+0330 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+0331 247a0000 nrtn blank 
+0332 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+0333 247a0000 nrtn blank 
+0334 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+0335 247a0000 nrtn blank 
+0336 20404904 call mouse_check_dpi_blink 
+0337 20740000 rtn user 
+0338 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0339 c4108000 rtnbit0 mouse_enable_low_voltage_led 
+033a c4020000 rtnbit0 mouse_low_voltage_flag 
+033b c291c97c bbit1 mouse_enable_low_voltage_led_blink_n_second ,mouse_low_voltage_led_blink_new_data 
+033c 6fe0c8f8 fetch 1 ,mem_adc_low_volatage_led_timer_count 
+033d 1fe0fe01 increase 1 ,pdata 
+033e 67e0c8f8 store 1 ,mem_adc_low_volatage_led_timer_count 
+033f 1fe67c08 sub pdata ,8 ,null 
+0340 2441496e ncall mouse_adc_low_volatage_led_timer_count_clean ,positive 
+0341 c001c970 beq 3 ,mouse_low_voltage_led_on 
+0342 c002c976 beq 5 ,mouse_low_voltage_led_off 
+0343 c003c970 beq 7 ,mouse_low_voltage_led_on 
+0344 20600000 rtn 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/YDN_Project/G-117-3_Only24g/program/patch.prog	(revision 619)
+++ /YC1308AC/branch/mouse_project/YDN_Project/G-117-3_Only24g/program/patch.prog	(working copy)
@@ -565,6 +565,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
@@ -874,6 +882,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:
@@ -892,7 +901,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:
