Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/output/eeprom.dat	(revision 683)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-8e
+66
 07
 c2
 84
@@ -35,7 +35,7 @@
 c0
 61
 81
-12
+25
 c0
 63
 80
@@ -47,7 +47,7 @@
 c0
 65
 00
-bb
+ce
 c0
 66
 00
@@ -55,27 +55,27 @@
 c0
 67
 01
-dd
+d3
 c0
 68
 01
-21
+34
 c0
 6b
 00
-db
+ee
 c0
 6c
 81
-32
+45
 c0
 6d
 01
-7d
+90
 c0
 74
 01
-88
+9b
 20
 20
 13
@@ -91,15 +91,15 @@
 c0
 43
 81
-84
+97
 c0
 50
 81
-9c
+af
 c0
 60
 01
-a6
+b9
 c0
 75
 00
@@ -107,7 +107,7 @@
 c0
 76
 01
-da
+d0
 20
 20
 13
@@ -639,7 +639,7 @@
 24
 34
 00
-cd
+e0
 20
 40
 26
@@ -748,10 +748,86 @@
 40
 60
 93
+d8
+40
+00
+03
 20
+40
+3f
+56
 20
+40
 3e
-36
+40
+20
+40
+60
+82
+d8
+40
+00
+13
+20
+40
+3f
+56
+20
+20
+00
+c1
+6f
+e1
+cb
+de
+67
+e1
+89
+5c
+df
+20
+00
+14
+d8
+40
+00
+00
+6f
+e1
+89
+5c
+2f
+ef
+fe
+00
+20
+40
+e0
+7f
+6f
+e1
+89
+5c
+1f
+e3
+7e
+00
+67
+e1
+89
+5c
+18
+40
+84
+01
+c2
+00
+00
+c5
+20
+60
+00
+00
 68
 48
 c9
@@ -823,7 +899,7 @@
 20
 20
 00
-d3
+e6
 6f
 e0
 c8
@@ -847,7 +923,7 @@
 20
 20
 00
-d3
+e6
 20
 40
 26
@@ -886,24 +962,24 @@
 00
 c0
 1e
-00
-fe
+01
+11
 c0
 1d
 01
-04
+17
 c0
 19
 00
-ea
+fd
 c0
 22
-00
-f1
+01
+04
 c0
 0a
 80
-e2
+f5
 20
 20
 43
@@ -946,8 +1022,8 @@
 c7
 c0
 00
-80
-ee
+81
+01
 70
 4b
 76
@@ -1051,7 +1127,7 @@
 24
 3a
 00
-c4
+d7
 6f
 e0
 c8
@@ -1059,7 +1135,7 @@
 c0
 01
 01
-09
+1c
 20
 20
 48
@@ -1115,7 +1191,7 @@
 c0
 00
 01
-17
+2a
 20
 20
 3d
@@ -1167,7 +1243,7 @@
 20
 40
 01
-24
+37
 20
 20
 40
@@ -1219,7 +1295,7 @@
 20
 3a
 01
-4b
+5e
 67
 e0
 cb
@@ -1255,7 +1331,7 @@
 20
 40
 01
-48
+5b
 20
 40
 40
@@ -1267,7 +1343,7 @@
 20
 40
 01
-60
+73
 20
 40
 44
@@ -1315,7 +1391,7 @@
 20
 20
 01
-75
+88
 da
 60
 4b
@@ -1323,7 +1399,7 @@
 da
 40
 01
-4b
+5e
 20
 20
 31
@@ -1379,11 +1455,11 @@
 20
 41
 01
-5a
+6d
 24
 41
 01
-5e
+71
 20
 20
 48
@@ -1419,7 +1495,7 @@
 c0
 00
 01
-66
+79
 6f
 e4
 4b
@@ -1435,7 +1511,7 @@
 20
 20
 01
-69
+7c
 6f
 e4
 4b
@@ -1471,7 +1547,7 @@
 20
 22
 81
-70
+83
 20
 20
 44
@@ -1511,7 +1587,7 @@
 da
 40
 01
-7a
+8d
 20
 20
 31
@@ -1523,7 +1599,7 @@
 c0
 00
 00
-c4
+d7
 20
 20
 43
@@ -1599,7 +1675,7 @@
 c0
 04
 81
-90
+a3
 20
 20
 4d
@@ -1699,31 +1775,11 @@
 c0
 02
 01
-a9
+bc
 20
 20
 19
 e4
-6f
-e4
-4b
-ab
-c3
-1d
-81
-ae
-20
-40
-7c
-eb
-20
-40
-01
-c3
-20
-40
-7c
-e5
 ef
 e1
 80
@@ -1733,109 +1789,13 @@
 c4
 36
 c0
-05
-01
-b3
-c0
 09
 01
-ca
+c0
 20
 20
 1c
 d3
-20
-40
-1e
-8d
-68
-49
-44
-37
-6f
-e0
-c3
-c0
-c2
-81
-81
-bd
-6f
-e4
-4b
-ab
-c3
-1d
-81
-bb
-6f
-e1
-44
-37
-c0
-18
-1e
-c8
-68
-49
-44
-37
-20
-20
-1d
-eb
-6f
-e1
-43
-d1
-98
-46
-7c
-00
-24
-22
-81
-b7
-20
-40
-1e
-8d
-24
-34
-01
-b7
-20
-20
-1e
-10
-6f
-e0
-ca
-c7
-20
-7a
-00
-00
-6f
-e0
-cb
-75
-1f
-e1
-7e
-03
-c1
-01
-80
-00
-70
-4b
-76
-02
-20
-60
-00
-00
 18
 c2
 22
@@ -1936,8 +1896,8 @@
 20
 3f
 75
-e0
-f3
+59
+10
 aa
 55
 40
@@ -3112,8 +3072,8 @@
 55
 6c
 5d
-3c
-44
+5a
+1e
 ff
 ff
 ff
@@ -8188,5 +8148,45 @@
 ff
 ff
 ff
-74
-8b
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+e6
+3b
Index: output/flash.dat
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/output/flash.dat	(revision 683)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/output/flash.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-8e
+66
 07
 c2
 84
@@ -35,7 +35,7 @@
 c0
 61
 81
-12
+25
 c0
 63
 80
@@ -47,7 +47,7 @@
 c0
 65
 00
-bb
+ce
 c0
 66
 00
@@ -55,27 +55,27 @@
 c0
 67
 01
-dd
+d3
 c0
 68
 01
-21
+34
 c0
 6b
 00
-db
+ee
 c0
 6c
 81
-32
+45
 c0
 6d
 01
-7d
+90
 c0
 74
 01
-88
+9b
 20
 20
 13
@@ -91,15 +91,15 @@
 c0
 43
 81
-84
+97
 c0
 50
 81
-9c
+af
 c0
 60
 01
-a6
+b9
 c0
 75
 00
@@ -107,7 +107,7 @@
 c0
 76
 01
-da
+d0
 20
 20
 13
@@ -639,7 +639,7 @@
 24
 34
 00
-cd
+e0
 20
 40
 26
@@ -748,10 +748,86 @@
 40
 60
 93
+d8
+40
+00
+03
 20
+40
+3f
+56
 20
+40
 3e
-36
+40
+20
+40
+60
+82
+d8
+40
+00
+13
+20
+40
+3f
+56
+20
+20
+00
+c1
+6f
+e1
+cb
+de
+67
+e1
+89
+5c
+df
+20
+00
+14
+d8
+40
+00
+00
+6f
+e1
+89
+5c
+2f
+ef
+fe
+00
+20
+40
+e0
+7f
+6f
+e1
+89
+5c
+1f
+e3
+7e
+00
+67
+e1
+89
+5c
+18
+40
+84
+01
+c2
+00
+00
+c5
+20
+60
+00
+00
 68
 48
 c9
@@ -823,7 +899,7 @@
 20
 20
 00
-d3
+e6
 6f
 e0
 c8
@@ -847,7 +923,7 @@
 20
 20
 00
-d3
+e6
 20
 40
 26
@@ -886,24 +962,24 @@
 00
 c0
 1e
-00
-fe
+01
+11
 c0
 1d
 01
-04
+17
 c0
 19
 00
-ea
+fd
 c0
 22
-00
-f1
+01
+04
 c0
 0a
 80
-e2
+f5
 20
 20
 43
@@ -946,8 +1022,8 @@
 c7
 c0
 00
-80
-ee
+81
+01
 70
 4b
 76
@@ -1051,7 +1127,7 @@
 24
 3a
 00
-c4
+d7
 6f
 e0
 c8
@@ -1059,7 +1135,7 @@
 c0
 01
 01
-09
+1c
 20
 20
 48
@@ -1115,7 +1191,7 @@
 c0
 00
 01
-17
+2a
 20
 20
 3d
@@ -1167,7 +1243,7 @@
 20
 40
 01
-24
+37
 20
 20
 40
@@ -1219,7 +1295,7 @@
 20
 3a
 01
-4b
+5e
 67
 e0
 cb
@@ -1255,7 +1331,7 @@
 20
 40
 01
-48
+5b
 20
 40
 40
@@ -1267,7 +1343,7 @@
 20
 40
 01
-60
+73
 20
 40
 44
@@ -1315,7 +1391,7 @@
 20
 20
 01
-75
+88
 da
 60
 4b
@@ -1323,7 +1399,7 @@
 da
 40
 01
-4b
+5e
 20
 20
 31
@@ -1379,11 +1455,11 @@
 20
 41
 01
-5a
+6d
 24
 41
 01
-5e
+71
 20
 20
 48
@@ -1419,7 +1495,7 @@
 c0
 00
 01
-66
+79
 6f
 e4
 4b
@@ -1435,7 +1511,7 @@
 20
 20
 01
-69
+7c
 6f
 e4
 4b
@@ -1471,7 +1547,7 @@
 20
 22
 81
-70
+83
 20
 20
 44
@@ -1511,7 +1587,7 @@
 da
 40
 01
-7a
+8d
 20
 20
 31
@@ -1523,7 +1599,7 @@
 c0
 00
 00
-c4
+d7
 20
 20
 43
@@ -1599,7 +1675,7 @@
 c0
 04
 81
-90
+a3
 20
 20
 4d
@@ -1699,31 +1775,11 @@
 c0
 02
 01
-a9
+bc
 20
 20
 19
 e4
-6f
-e4
-4b
-ab
-c3
-1d
-81
-ae
-20
-40
-7c
-eb
-20
-40
-01
-c3
-20
-40
-7c
-e5
 ef
 e1
 80
@@ -1733,109 +1789,13 @@
 c4
 36
 c0
-05
-01
-b3
-c0
 09
 01
-ca
+c0
 20
 20
 1c
 d3
-20
-40
-1e
-8d
-68
-49
-44
-37
-6f
-e0
-c3
-c0
-c2
-81
-81
-bd
-6f
-e4
-4b
-ab
-c3
-1d
-81
-bb
-6f
-e1
-44
-37
-c0
-18
-1e
-c8
-68
-49
-44
-37
-20
-20
-1d
-eb
-6f
-e1
-43
-d1
-98
-46
-7c
-00
-24
-22
-81
-b7
-20
-40
-1e
-8d
-24
-34
-01
-b7
-20
-20
-1e
-10
-6f
-e0
-ca
-c7
-20
-7a
-00
-00
-6f
-e0
-cb
-75
-1f
-e1
-7e
-03
-c1
-01
-80
-00
-70
-4b
-76
-02
-20
-60
-00
-00
 18
 c2
 22
@@ -1936,8 +1896,8 @@
 20
 3f
 75
-e0
-f3
+59
+10
 aa
 55
 40
@@ -3112,8 +3072,8 @@
 55
 6c
 5d
-3c
-44
+5a
+1e
 ff
 ff
 ff
@@ -8188,5 +8148,45 @@
 ff
 ff
 ff
-74
-8b
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+e6
+3b
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/output/program.lis	(revision 683)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/output/program.lis	(working copy)
@@ -7,27 +7,27 @@
 0004 c04f8073 beq patch13_7 ,p_init_param 
 0005 c0570075 beq patch15_6 ,p_app_init 
 0006 c058005c beq patch16_0 ,p_app_evt_100ms_loop 
-0007 c0618112 beq patch18_3 ,p_mouse_start_work 
+0007 c0618125 beq patch18_3 ,p_mouse_start_work 
 0008 c06380ac beq patch18_7 ,p_mouse_app_enter_hibernate 
 0009 c06480b0 beq patch19_1 ,p_mouse_setgpio_hibernate 
-000a c06500bb beq patch19_2 ,p_mouse_lpm_before_common 
+000a c06500ce beq patch19_2 ,p_mouse_lpm_before_common 
 000b c0660058 beq patch19_4 ,p_mouse_adc_read_start 
-000c c06701dd beq patch19_6 ,p_mouse_motion 
-000d c0680121 beq patch1a_0 ,p_mouse_seting_dpi 
-000e c06b00db beq patch1a_6 ,p_mouse_priority_bb_event 
-000f c06c8132 beq patch1b_1 ,p_mouse_bb_event_timer 
-0010 c06d017d beq patch1b_2 ,p_mouse_start_discovery 
-0011 c0740188 beq patch1d_0 ,p_hid_rx_process 
+000c c06701d3 beq patch19_6 ,p_mouse_motion 
+000d c0680134 beq patch1a_0 ,p_mouse_seting_dpi 
+000e c06b00ee beq patch1a_6 ,p_mouse_priority_bb_event 
+000f c06c8145 beq patch1b_1 ,p_mouse_bb_event_timer 
+0010 c06d0190 beq patch1b_2 ,p_mouse_start_discovery 
+0011 c074019b beq patch1d_0 ,p_hid_rx_process 
 0012 2020137c branch loop 
 
 pf_patch_ext:
 0013 c0198038 beq patch26_3 ,p_adc_init_data 
 0014 c01a003d beq patch26_4 ,p_enable_adc 
-0015 c0438184 beq patch30_7 ,p_ui_timer_check 
-0016 c050819c beq patch34_1 ,p_le_slave_match 
-0017 c06001a6 beq patch38_0 ,p_le_parse_l2cap 
+0015 c0438197 beq patch30_7 ,p_ui_timer_check 
+0016 c05081af beq patch34_1 ,p_le_slave_match 
+0017 c06001b9 beq patch38_0 ,p_le_parse_l2cap 
 0018 c075009d beq patch3d_2 ,p_g24_transmit_no_interrupt 
-0019 c07601da beq patch3d_4 ,p_g24_lpm_wait 
+0019 c07601d0 beq patch3d_4 ,p_g24_lpm_wait 
 001a 2020137c branch loop 
 
 p_soft_reset:
@@ -194,7 +194,7 @@
 
 p_g24_transmit_no_interrupt:
 009d 20402631 call g24_txdata_prep 
-009e 243400cd nbranch p_g24_nodata_transmit ,user 
+009e 243400e0 nbranch p_g24_nodata_transmit ,user 
 
 p_g24_transmit_start:
 009f 20402646 call g24_transmit_process 
@@ -230,389 +230,371 @@
 00b7 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
 00b8 d840003f arg gpcfg_output_high ,temp 
 00b9 20406093 call gpio_config_function_int 
-00ba 20203e36 branch mouse_setgpio_hibernate + 3 
+00ba d8400003 arg 3 ,temp 
+00bb 20403f56 call mouse_gpio_config_input_pu 
+00bc 20403e40 call mouse_lpm_before_common 
+00bd 20406082 call gpio_pd_idle 
+00be d8400013 arg 19 ,temp 
+00bf 20403f56 call mouse_gpio_config_input_pu 
+00c0 202000c1 branch p_mouse_gpio_set_high_impedance 
+
+p_mouse_gpio_set_high_impedance:
+00c1 6fe1cbde fetch 3 ,mem_mouse_set_high_impedance_bit_set 
+00c2 67e1895c store 3 ,mem_pdatatemp 
+00c3 df200014 arg 20 ,loopcnt 
+00c4 d8400000 arg 0 ,temp 
+
+p_mouse_gpio_set_high_impedance_bit_loop:
+00c5 6fe1895c fetch 3 ,mem_pdatatemp 
+00c6 2feffe00 isolate1 0 ,pdata 
+00c7 2040e07f call gpio_set_high_impedance ,true 
+00c8 6fe1895c fetch 3 ,mem_pdatatemp 
+00c9 1fe37e00 rshift pdata ,pdata 
+00ca 67e1895c store 3 ,mem_pdatatemp 
+00cb 18408401 increase 1 ,temp 
+00cc c20000c5 loop p_mouse_gpio_set_high_impedance_bit_loop 
+00cd 20600000 rtn 
 
 p_mouse_lpm_before_common:
-00bb 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
-00bc 20406050 call gpio_config_input 
-00bd 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
-00be 20406050 call gpio_config_input 
-00bf 20403f88 call mouse_wheel_check 
-00c0 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
-00c1 d840003f arg gpcfg_output_high ,temp 
-00c2 20406093 call gpio_config_function_int 
-00c3 20203e44 branch mouse_lpm_before_common_next 
+00ce 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
+00cf 20406050 call gpio_config_input 
+00d0 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
+00d1 20406050 call gpio_config_input 
+00d2 20403f88 call mouse_wheel_check 
+00d3 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
+00d4 d840003f arg gpcfg_output_high ,temp 
+00d5 20406093 call gpio_config_function_int 
+00d6 20203e44 branch mouse_lpm_before_common_next 
 
 p_mouse_24g_hibernate_set:
-00c4 7048a500 jam 0 ,mem_24g_attempt_fail_flag 
-00c5 20402652 call g24_transmit_next_packet 
-00c6 5fffffff setarg -1 
-00c7 67e2485c store 4 ,mem_24g_enter_hibernate 
-00c8 58000000 setarg 0 
-00c9 67e3c8d0 store 7 ,mem_mouse_key 
-00ca 704be101 jam 1 ,mem_sensor_shutdown_flag 
-00cb 2040423c call mouse_sensor_powerdown 
-00cc 202000d3 branch p_g24_long_sleep 
+00d7 7048a500 jam 0 ,mem_24g_attempt_fail_flag 
+00d8 20402652 call g24_transmit_next_packet 
+00d9 5fffffff setarg -1 
+00da 67e2485c store 4 ,mem_24g_enter_hibernate 
+00db 58000000 setarg 0 
+00dc 67e3c8d0 store 7 ,mem_mouse_key 
+00dd 704be101 jam 1 ,mem_sensor_shutdown_flag 
+00de 2040423c call mouse_sensor_powerdown 
+00df 202000e6 branch p_g24_long_sleep 
 
 p_g24_nodata_transmit:
-00cd 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
-00ce 205a26a7 call g24_send_abort_packet ,blank 
-00cf 6fe0c8bd fetch 1 ,mem_24g_transmit_by_interrupt 
-00d0 c1008000 rtneq g24_tx_timer_int_enable 
-00d1 2040269f call g24_search_receiver 
-00d2 202000d3 branch p_g24_long_sleep 
+00e0 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
+00e1 205a26a7 call g24_send_abort_packet ,blank 
+00e2 6fe0c8bd fetch 1 ,mem_24g_transmit_by_interrupt 
+00e3 c1008000 rtneq g24_tx_timer_int_enable 
+00e4 2040269f call g24_search_receiver 
+00e5 202000e6 branch p_g24_long_sleep 
 
 p_g24_long_sleep:
-00d3 204026bb call g24_lpm_wait 
-00d4 24740000 nrtn user 
-00d5 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-00d6 245a3e33 ncall mouse_setgpio_hibernate ,blank 
-00d7 6fe2485c fetch 4 ,mem_24g_enter_hibernate 
-00d8 20407daa call clk2lpo 
-00d9 604a4160 storet 4 ,mem_sleep_counter 
-00da 20201497 branch lpm_sleep 
+00e6 204026bb call g24_lpm_wait 
+00e7 24740000 nrtn user 
+00e8 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+00e9 245a3e33 ncall mouse_setgpio_hibernate ,blank 
+00ea 6fe2485c fetch 4 ,mem_24g_enter_hibernate 
+00eb 20407daa call clk2lpo 
+00ec 604a4160 storet 4 ,mem_sleep_counter 
+00ed 20201497 branch lpm_sleep 
 
 p_mouse_priority_bb_event:
-00db 1a627e00 copy regc ,pdata 
-00dc c01e00fe beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-00dd c01d0104 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
-00de c01900ea beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
-00df c02200f1 beq bt_evt_le_parse_conn_param_accepted ,p_mouse_le_parse_conn_param_accepted 
-00e0 c00a80e2 beq bt_evt_le_disconnected ,p_mouse_le_bb_disconnected 
-00e1 20204336 branch mouse_priority_bb_event + 2 
+00ee 1a627e00 copy regc ,pdata 
+00ef c01e0111 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+00f0 c01d0117 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
+00f1 c01900fd beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
+00f2 c0220104 beq bt_evt_le_parse_conn_param_accepted ,p_mouse_le_parse_conn_param_accepted 
+00f3 c00a80f5 beq bt_evt_le_disconnected ,p_mouse_le_bb_disconnected 
+00f4 20204336 branch mouse_priority_bb_event + 2 
 
 p_mouse_le_bb_disconnected:
-00e2 704ac600 jam 0 ,mem_mouse_le_bb_connected_flag 
-00e3 58000006 setarg le_interval_7_5ms 
-00e4 67e14372 store 2 ,mem_le_interval_min 
-00e5 67e14374 store 2 ,mem_le_interval_min + 2 
-00e6 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00e7 c28dc366 bbit1 mouse_enable_bt_125hz ,mouse_le_bb_disconnected_next + 2 
-00e8 58000007 setarg le_interval_8_75ms 
-00e9 20204364 branch mouse_le_bb_disconnected_next 
+00f5 704ac600 jam 0 ,mem_mouse_le_bb_connected_flag 
+00f6 58000006 setarg le_interval_7_5ms 
+00f7 67e14372 store 2 ,mem_le_interval_min 
+00f8 67e14374 store 2 ,mem_le_interval_min + 2 
+00f9 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00fa c28dc366 bbit1 mouse_enable_bt_125hz ,mouse_le_bb_disconnected_next + 2 
+00fb 58000007 setarg le_interval_8_75ms 
+00fc 20204364 branch mouse_le_bb_disconnected_next 
 
 p_mouse_le_ll_start_encryt:
-00ea 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-00eb c00080ee beq 1 ,p_mouse_le_ll_reconn_start_encryt 
-00ec 704b7614 jam 20 ,mem_le_start_encrypt_timer 
-00ed 20204373 branch mouse_le_ll_enable_start_enc_flag 
+00fd 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+00fe c0008101 beq 1 ,p_mouse_le_ll_reconn_start_encryt 
+00ff 704b7614 jam 20 ,mem_le_start_encrypt_timer 
+0100 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_ll_reconn_start_encryt:
-00ee 2040436c call mouse_updata_le_param 
-00ef 704b7605 jam 5 ,mem_le_start_encrypt_timer 
-00f0 20204373 branch mouse_le_ll_enable_start_enc_flag 
+0101 2040436c call mouse_updata_le_param 
+0102 704b7605 jam 5 ,mem_le_start_encrypt_timer 
+0103 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_parse_conn_param_accepted:
-00f1 6fe082c1 fetch 1 ,mem_le_new_conninterval 
-00f2 1fe67c0c sub pdata ,le_interval_15ms ,null 
-00f3 24214384 nbranch mouse_le_conn_param_lpm_disable ,positive 
-00f4 67e14372 store 2 ,mem_le_interval_min 
-00f5 67e14374 store 2 ,mem_le_interval_min + 2 
-00f6 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
-00f7 203a439a branch mouse_le_lpm_mult_reinit ,blank 
-00f8 6848cb8a fetcht 1 ,mem_lpm_mult_init 
-00f9 98467c00 isub temp ,null 
-00fa 2021439a branch mouse_le_lpm_mult_reinit ,positive 
-00fb 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
-00fc 67e0cb8a store 1 ,mem_lpm_mult_init 
-00fd 20204386 branch mouse_le_conn_param_lpm_enable 
+0104 6fe082c1 fetch 1 ,mem_le_new_conninterval 
+0105 1fe67c0c sub pdata ,le_interval_15ms ,null 
+0106 24214384 nbranch mouse_le_conn_param_lpm_disable ,positive 
+0107 67e14372 store 2 ,mem_le_interval_min 
+0108 67e14374 store 2 ,mem_le_interval_min + 2 
+0109 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+010a 203a439a branch mouse_le_lpm_mult_reinit ,blank 
+010b 6848cb8a fetcht 1 ,mem_lpm_mult_init 
+010c 98467c00 isub temp ,null 
+010d 2021439a branch mouse_le_lpm_mult_reinit ,positive 
+010e 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+010f 67e0cb8a store 1 ,mem_lpm_mult_init 
+0110 20204386 branch mouse_le_conn_param_lpm_enable 
 
 p_mouse_24g_attempt_success:
-00fe 6fe2483c fetch 4 ,mem_24g_addr 
-00ff 67e24891 store 4 ,mem_24g_receiver_addr 
-0100 67e24993 store 4 ,mem_mouse_24g_addr 
-0101 2040257e call g24_ch_syncword_crc8_init 
-0102 204048c6 call mouse_device_poweron_timer_init 
-0103 2020484e branch mouse_24g_attempt_success 
+0111 6fe2483c fetch 4 ,mem_24g_addr 
+0112 67e24891 store 4 ,mem_24g_receiver_addr 
+0113 67e24993 store 4 ,mem_mouse_24g_addr 
+0114 2040257e call g24_ch_syncword_crc8_init 
+0115 204048c6 call mouse_device_poweron_timer_init 
+0116 2020484e branch mouse_24g_attempt_success 
 
 p_mouse_24g_attempt_fail:
-0104 6fe0c8a5 fetch 1 ,mem_24g_attempt_fail_flag 
-0105 243a00c4 nbranch p_mouse_24g_hibernate_set ,blank 
-0106 6fe0c88b fetch 1 ,mem_24g_reconn_type 
-0107 c0010109 beq fast_conn_and_3_0_addr ,p_mouse_24g_fast_conn_attempt_fail 
-0108 20204837 branch mouse_24g_attempt_fail + 4 
+0117 6fe0c8a5 fetch 1 ,mem_24g_attempt_fail_flag 
+0118 243a00d7 nbranch p_mouse_24g_hibernate_set ,blank 
+0119 6fe0c88b fetch 1 ,mem_24g_reconn_type 
+011a c001011c beq fast_conn_and_3_0_addr ,p_mouse_24g_fast_conn_attempt_fail 
+011b 20204837 branch mouse_24g_attempt_fail + 4 
 
 p_mouse_24g_fast_conn_attempt_fail:
-0109 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-010a c297c811 bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_start_auto_pair 
-010b c2984811 bbit1 mouse_enable_auto_24g_paring ,mouse_24g_start_auto_pair 
-010c c31d4806 bbit0 mouse_enable_24g_auto_pair_nerver_been_paired ,mouse_24g_reconn_dongle_start 
-010d 6fe24993 fetch 4 ,mem_mouse_24g_addr 
-010e 684a4974 fetcht 4 ,mem_mouse_compare_addr_ff 
-010f 98467c00 isub temp ,null 
-0110 2022c827 branch mouse_24g_start_pair_mode ,zero 
-0111 20204806 branch mouse_24g_reconn_dongle_start 
+011c 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+011d c297c811 bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_start_auto_pair 
+011e c2984811 bbit1 mouse_enable_auto_24g_paring ,mouse_24g_start_auto_pair 
+011f c31d4806 bbit0 mouse_enable_24g_auto_pair_nerver_been_paired ,mouse_24g_reconn_dongle_start 
+0120 6fe24993 fetch 4 ,mem_mouse_24g_addr 
+0121 684a4974 fetcht 4 ,mem_mouse_compare_addr_ff 
+0122 98467c00 isub temp ,null 
+0123 2022c827 branch mouse_24g_start_pair_mode ,zero 
+0124 20204806 branch mouse_24g_reconn_dongle_start 
 
 p_mouse_start_work:
-0112 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0113 c297c80a bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
-0114 6fe0c938 fetch 1 ,mem_device_flag 
-0115 c0000117 beq mode_24g_device ,p_mouse_24g_start_mode 
-0116 20203d57 branch mouse_start_work + 5 
+0125 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0126 c297c80a bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
+0127 6fe0c938 fetch 1 ,mem_device_flag 
+0128 c000012a beq mode_24g_device ,p_mouse_24g_start_mode 
+0129 20203d57 branch mouse_start_work + 5 
 
 p_mouse_24g_start_mode:
-0117 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0118 c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
-0119 20403d65 call mouse_wakeup_from_power_check 
-011a 20344806 branch mouse_24g_reconn_dongle_start ,user 
-011b 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-011c c298480c bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
-011d c318c80c bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
-011e 20404110 call mouse_key_check_once 
-011f 1a217e07 and rega ,0x07 ,pdata 
-0120 202047ff branch mouse_24g_start_mode + 9 
+012a 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+012b c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
+012c 20403d65 call mouse_wakeup_from_power_check 
+012d 20344806 branch mouse_24g_reconn_dongle_start ,user 
+012e 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+012f c298480c bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
+0130 c318c80c bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
+0131 20404110 call mouse_key_check_once 
+0132 1a217e07 and rega ,0x07 ,pdata 
+0133 202047ff branch mouse_24g_start_mode + 9 
 
 p_mouse_seting_dpi:
-0121 2040408f call mouse_setting_dpi_4_level 
-0122 20400124 call p_mouse_dpi_led_blink_delay 
-0123 20204098 branch mouse_seting_sensor_type 
+0134 2040408f call mouse_setting_dpi_4_level 
+0135 20400137 call p_mouse_dpi_led_blink_delay 
+0136 20204098 branch mouse_seting_sensor_type 
 
 p_mouse_dpi_led_blink_delay:
-0124 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-0125 c17f8000 rtneq gpio_disable 
-0126 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-0127 247a0000 nrtn blank 
-0128 6fe14883 fetch 2 ,mem_24g_pair_timeout 
-0129 247a0000 nrtn blank 
-012a 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
-012b 247a0000 nrtn blank 
-012c 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-012d 247a0000 nrtn blank 
-012e 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-012f 203a014b branch p_mouse_dpi_led_blink_init ,blank 
-0130 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
-0131 20600000 rtn 
+0137 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+0138 c17f8000 rtneq gpio_disable 
+0139 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+013a 247a0000 nrtn blank 
+013b 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+013c 247a0000 nrtn blank 
+013d 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+013e 247a0000 nrtn blank 
+013f 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+0140 247a0000 nrtn blank 
+0141 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+0142 203a015e branch p_mouse_dpi_led_blink_init ,blank 
+0143 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
+0144 20600000 rtn 
 
 p_mouse_bb_event_timer:
-0132 20403e9b call mouse_adc_read 
-0133 20404956 call mouse_low_voltage_led_timer 
-0134 2040232b call g24_pair_timeout_timer 
-0135 20402556 call g24_reconn_timeout_timer 
-0136 204047cd call mouse_24g_long_sleep_param_update_timer 
-0137 204048be call mouse_device_poweron_timer 
-0138 20400148 call p_mouse_dpi_led_blink_delay_timer 
-0139 2040407c call mouse_dpi_key_check_long_press 
-013a 204044cc call mouse_bt_discovery_check 
-013b 20400160 call p_mouse_commbination_key_process 
-013c 204044ff call mouse_check_discovery_timeout_timer 
-013d 20404504 call mouse_check_direct_timeout_timer 
-013e 20404512 call mouse_le_enable_att_list_timer 
-013f 2040451f call mouse_le_battery_updata_timer 
-0140 20404515 call mouse_le_send_smp_security_request_timer 
-0141 2040452a call mouse_check_hid_handshake_timer 
-0142 2040452d call mouse_bt_check_sniff_req_timeout_timer 
-0143 20404532 call mouse_check_reconnect_delay_long_sleep 
-0144 20404535 call mouse_current_mult_update_timer 
-0145 20404022 call mouse_wheel_trigger_timer 
-0146 20404547 call mouse_store_information_delay_timer 
-0147 20200175 branch p_mouse_check_no_data_timeout_timer 
+0145 20403e9b call mouse_adc_read 
+0146 20404956 call mouse_low_voltage_led_timer 
+0147 2040232b call g24_pair_timeout_timer 
+0148 20402556 call g24_reconn_timeout_timer 
+0149 204047cd call mouse_24g_long_sleep_param_update_timer 
+014a 204048be call mouse_device_poweron_timer 
+014b 2040015b call p_mouse_dpi_led_blink_delay_timer 
+014c 2040407c call mouse_dpi_key_check_long_press 
+014d 204044cc call mouse_bt_discovery_check 
+014e 20400173 call p_mouse_commbination_key_process 
+014f 204044ff call mouse_check_discovery_timeout_timer 
+0150 20404504 call mouse_check_direct_timeout_timer 
+0151 20404512 call mouse_le_enable_att_list_timer 
+0152 2040451f call mouse_le_battery_updata_timer 
+0153 20404515 call mouse_le_send_smp_security_request_timer 
+0154 2040452a call mouse_check_hid_handshake_timer 
+0155 2040452d call mouse_bt_check_sniff_req_timeout_timer 
+0156 20404532 call mouse_check_reconnect_delay_long_sleep 
+0157 20404535 call mouse_current_mult_update_timer 
+0158 20404022 call mouse_wheel_trigger_timer 
+0159 20404547 call mouse_store_information_delay_timer 
+015a 20200188 branch p_mouse_check_no_data_timeout_timer 
 
 p_mouse_dpi_led_blink_delay_timer:
-0148 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-0149 da40014b arg p_mouse_dpi_led_blink_init ,regb 
-014a 2020318a branch timer_single_step 
+015b da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+015c da40015e arg p_mouse_dpi_led_blink_init ,regb 
+015d 2020318a branch timer_single_step 
 
 p_mouse_dpi_led_blink_init:
-014b 6fe0c927 fetch 1 ,mem_config_sensor_type 
-014c c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-014d c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-014e 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-014f 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-0150 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-0151 67e14930 store 2 ,mem_mouse_on_time 
-0152 67e14932 store 2 ,mem_mouse_off_time 
-0153 da200000 arg 0 ,rega 
-0154 6848c992 fetcht 1 ,mem_mouse_dpi 
-0155 18408402 increase 2 ,temp 
-0156 18467c03 sub temp ,3 ,null 
-0157 2041015a call p_mouse_dpi_led_blink_init_level_4 ,positive 
-0158 2441015e ncall p_mouse_dpi_led_blink_count_clean ,positive 
-0159 202048ff branch mouse_dpi_led_blink_init_end 
+015e 6fe0c927 fetch 1 ,mem_config_sensor_type 
+015f c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
+0160 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
+0161 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+0162 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
+0163 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
+0164 67e14930 store 2 ,mem_mouse_on_time 
+0165 67e14932 store 2 ,mem_mouse_off_time 
+0166 da200000 arg 0 ,rega 
+0167 6848c992 fetcht 1 ,mem_mouse_dpi 
+0168 18408402 increase 2 ,temp 
+0169 18467c03 sub temp ,3 ,null 
+016a 2041016d call p_mouse_dpi_led_blink_init_level_4 ,positive 
+016b 24410171 ncall p_mouse_dpi_led_blink_count_clean ,positive 
+016c 202048ff branch mouse_dpi_led_blink_init_end 
 
 p_mouse_dpi_led_blink_init_level_4:
-015a 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-015b c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-015c 18408401 increase 1 ,temp 
-015d 20600000 rtn 
+016d 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+016e c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+016f 18408401 increase 1 ,temp 
+0170 20600000 rtn 
 
 p_mouse_dpi_led_blink_count_clean:
-015e 184085fd increase -3 ,temp 
-015f 20600000 rtn 
+0171 184085fd increase -3 ,temp 
+0172 20600000 rtn 
 
 p_mouse_commbination_key_process:
-0160 6fe0c938 fetch 1 ,mem_device_flag 
-0161 c0000166 beq mode_24g_device ,p_mouse_24g_commbination_key_process 
-0162 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0163 c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
-0164 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
-0165 20200169 branch p_mouse_commbination_key_start 
+0173 6fe0c938 fetch 1 ,mem_device_flag 
+0174 c0000179 beq mode_24g_device ,p_mouse_24g_commbination_key_process 
+0175 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0176 c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
+0177 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
+0178 2020017c branch p_mouse_commbination_key_start 
 
 p_mouse_24g_commbination_key_process:
-0166 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0167 c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
-0168 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
+0179 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+017a c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
+017b 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
 
 p_mouse_commbination_key_start:
-0169 6048cb9d storet 1 ,mem_mouse_commbination_key 
-016a 20404115 call mouse_check_key_gpio 
-016b 1fe17e07 and pdata ,0x07 ,pdata 
-016c 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
-016d 98467c00 isub temp ,null 
-016e 20228170 branch p_mouse_commbination_key_down ,zero 
-016f 202044eb branch mouse_commbination_key_up 
+017c 6048cb9d storet 1 ,mem_mouse_commbination_key 
+017d 20404115 call mouse_check_key_gpio 
+017e 1fe17e07 and pdata ,0x07 ,pdata 
+017f 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
+0180 98467c00 isub temp ,null 
+0181 20228183 branch p_mouse_commbination_key_down ,zero 
+0182 202044eb branch mouse_commbination_key_up 
 
 p_mouse_commbination_key_down:
-0170 204044f6 call mouse_combination_ui_timer 
-0171 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
-0172 c1008000 rtneq commbination_key_state_down 
-0173 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
-0174 20600000 rtn 
+0183 204044f6 call mouse_combination_ui_timer 
+0184 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
+0185 c1008000 rtneq commbination_key_state_down 
+0186 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
+0187 20600000 rtn 
 
 p_mouse_check_no_data_timeout_timer:
-0175 6fe0c92a fetch 1 ,mem_usb_addr 
-0176 c3838000 rtnbit1 7 
-0177 da604ab2 arg mem_mouse_no_data_timer ,regc 
-0178 da40017a arg p_mouse_check_no_data_timeout ,regb 
-0179 20203191 branch timer_single_step_2b 
+0188 6fe0c92a fetch 1 ,mem_usb_addr 
+0189 c3838000 rtnbit1 7 
+018a da604ab2 arg mem_mouse_no_data_timer ,regc 
+018b da40018d arg p_mouse_check_no_data_timeout ,regb 
+018c 20203191 branch timer_single_step_2b 
 
 p_mouse_check_no_data_timeout:
-017a 6fe0c938 fetch 1 ,mem_device_flag 
-017b c00000c4 beq mode_24g_device ,p_mouse_24g_hibernate_set 
-017c 2020431b branch mouse_disconnect 
+018d 6fe0c938 fetch 1 ,mem_device_flag 
+018e c00000d7 beq mode_24g_device ,p_mouse_24g_hibernate_set 
+018f 2020431b branch mouse_disconnect 
 
 p_mouse_start_discovery:
-017d 6fe1478c fetch 2 ,mem_ui_state_map 
-017e 2feffe0b isolate1 ui_state_ble_adv ,pdata 
-017f 2040c581 call mouse_stop_le_adv ,true 
-0180 6fe1478c fetch 2 ,mem_ui_state_map 
-0181 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
-0182 2040c322 call mouse_cancel_reconnect ,true 
-0183 20204554 branch mouse_start_discovery + 1 
+0190 6fe1478c fetch 2 ,mem_ui_state_map 
+0191 2feffe0b isolate1 ui_state_ble_adv ,pdata 
+0192 2040c581 call mouse_stop_le_adv ,true 
+0193 6fe1478c fetch 2 ,mem_ui_state_map 
+0194 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
+0195 2040c322 call mouse_cancel_reconnect ,true 
+0196 20204554 branch mouse_start_discovery + 1 
 
 p_ui_timer_check:
-0184 6fe0cbe2 fetch 1 ,mem_power_on_flag 
-0185 245a7861 ncall ui_timer_init ,blank 
-0186 704be200 jam 0 ,mem_power_on_flag 
-0187 20207851 branch ui_timer_check + 1 
+0197 6fe0cbe2 fetch 1 ,mem_power_on_flag 
+0198 245a7861 ncall ui_timer_init ,blank 
+0199 704be200 jam 0 ,mem_power_on_flag 
+019a 20207851 branch ui_timer_check + 1 
 
 p_hid_rx_process:
-0188 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
-0189 1fe20c00 copy pdata ,contr 
-018a efe08006 ifetch 1 ,contr 
-018b 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
-018c 1fe1040f and pdata ,0x0f ,temp 
-018d 1ff1fe00 rshift4 pdata ,pdata 
-018e c0048190 beq hid_type_set_idle ,p_hid_rx_process_handshake 
-018f 20204d93 branch hid_rx_process + 7 
+019b 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+019c 1fe20c00 copy pdata ,contr 
+019d efe08006 ifetch 1 ,contr 
+019e 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
+019f 1fe1040f and pdata ,0x0f ,temp 
+01a0 1ff1fe00 rshift4 pdata ,pdata 
+01a1 c00481a3 beq hid_type_set_idle ,p_hid_rx_process_handshake 
+01a2 20204d93 branch hid_rx_process + 7 
 
 p_hid_rx_process_handshake:
-0190 da200001 arg 1 ,rega 
-0191 20404dc0 call hid_malloc_tx_buff 
-0192 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
-0193 e7e10005 istore 2 ,contw 
-0194 58000000 setarg 0 
-0195 e7e08005 istore 1 ,contw 
-0196 70095001 jam 1 ,mem_ui_data_txbuff_length 
-0197 6fe0c4e2 fetch 1 ,mem_hid_control_state 
-0198 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
-0199 67e0c4e2 store 1 ,mem_hid_control_state 
-019a 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
-019b 20207871 branch ui_ipc_send_event 
+01a3 da200001 arg 1 ,rega 
+01a4 20404dc0 call hid_malloc_tx_buff 
+01a5 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
+01a6 e7e10005 istore 2 ,contw 
+01a7 58000000 setarg 0 
+01a8 e7e08005 istore 1 ,contw 
+01a9 70095001 jam 1 ,mem_ui_data_txbuff_length 
+01aa 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+01ab 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
+01ac 67e0c4e2 store 1 ,mem_hid_control_state 
+01ad 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
+01ae 20207871 branch ui_ipc_send_event 
 
 p_le_slave_match:
-019c 6fe0c3dd fetch 1 ,mem_le_md_count 
-019d 1fe0fe01 pincrease 1 
-019e 67e0c3dd store 1 ,mem_le_md_count 
-019f c006165a beq le_md_max_count ,le_slave_cont 
-01a0 2040191b call le_acknowledge 
-01a1 2040196a call le_prepare_tx 
-01a2 6fe082bd fetch 1 ,mem_le_tx_phy 
-01a3 2040168b call le_enable_phy_by_pdata 
-01a4 20401838 call le_transmit 
-01a5 20201655 branch le_slave_match + 10 
+01af 6fe0c3dd fetch 1 ,mem_le_md_count 
+01b0 1fe0fe01 pincrease 1 
+01b1 67e0c3dd store 1 ,mem_le_md_count 
+01b2 c006165a beq le_md_max_count ,le_slave_cont 
+01b3 2040191b call le_acknowledge 
+01b4 2040196a call le_prepare_tx 
+01b5 6fe082bd fetch 1 ,mem_le_tx_phy 
+01b6 2040168b call le_enable_phy_by_pdata 
+01b7 20401838 call le_transmit 
+01b8 20201655 branch le_slave_match + 10 
 
 p_le_parse_l2cap:
-01a6 efe10006 ifetch 2 ,contr 
-01a7 c00201a9 beq le_l2cap_cid_att ,p_le_parse_att 
-01a8 202019e4 branch le_parse_l2cap + 10 
+01b9 efe10006 ifetch 2 ,contr 
+01ba c00201bc beq le_l2cap_cid_att ,p_le_parse_att 
+01bb 202019e4 branch le_parse_l2cap + 10 
 
 p_le_parse_att:
-01a9 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-01aa c31d81ae bbit0 mouse_enable_le_battery_service_cancel ,p_le_parse_att_next 
-01ab 20407ceb call store_contr 
-01ac 204001c3 call p_mouse_le_reconn_write_enable_timer_reinit 
-01ad 20407ce5 call get_contr 
-
-p_le_parse_att_next:
-01ae efe18006 ifetch 3 ,contr 
-01af 67e1c436 store 3 ,mem_le_att_opcode 
-01b0 c00501b3 beq attop_read_request ,p_le_parse_att_read_request 
-01b1 c00901ca beq attop_write_request ,p_le_parse_att_write_request 
-01b2 20201cd3 branch le_parse_att + 2 
-
-p_le_parse_att_read_request:
-01b3 20401e8d call le_check_encrypt_state 
-01b4 68494437 fetcht 2 ,mem_le_att_handle 
-01b5 6fe0c3c0 fetch 1 ,mem_le_configuration 
-01b6 c28181bd bbit1 bit_ble_read_auth ,p_le_send_att_read_response_check_auth 
-
-p_le_send_att_read_response:
-01b7 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-01b8 c31d81bb bbit0 mouse_enable_le_battery_service_cancel ,p_le_send_att_read_response_next 
-01b9 6fe14437 fetch 2 ,mem_le_att_handle 
-01ba c0181ec8 beq 0x30 ,le_send_att_error_response_notfound 
-
-p_le_send_att_read_response_next:
-01bb 68494437 fetcht 2 ,mem_le_att_handle 
-01bc 20201deb branch le_send_att_read_response 
-
-p_le_send_att_read_response_check_auth:
-01bd 6fe143d1 fetch 2 ,mem_le_pairing_handle 
-01be 98467c00 isub temp ,null 
-01bf 242281b7 nbranch p_le_send_att_read_response ,zero 
-01c0 20401e8d call le_check_encrypt_state 
-01c1 243401b7 nbranch p_le_send_att_read_response ,user 
-01c2 20201e10 branch le_send_att_read_response_error_insufficient_auth 
-
-p_mouse_le_reconn_write_enable_timer_reinit:
-01c3 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-01c4 207a0000 rtn blank 
-01c5 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
-01c6 1fe17e03 and pdata ,0x03 ,pdata 
-01c7 c1018000 rtneq 0x03 
-01c8 704b7602 jam 2 ,mem_le_start_encrypt_timer 
-01c9 20600000 rtn 
+01bc efe18006 ifetch 3 ,contr 
+01bd 67e1c436 store 3 ,mem_le_att_opcode 
+01be c00901c0 beq attop_write_request ,p_le_parse_att_write_request 
+01bf 20201cd3 branch le_parse_att + 2 
 
 p_le_parse_att_write_request:
-01ca 18c22200 copy contr ,rega 
-01cb 6fe143d4 fetch 2 ,mem_le_l2cap_size 
-01cc 1fe0a5fd add pdata ,-3 ,regb 
-01cd 20401a25 call le_writeatt_cb 
-01ce 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-01cf c07f9e73 beq 0xff ,le_send_att_write_response_check_auth 
-01d0 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-01d1 203a1e73 branch le_send_att_write_response_check_auth ,blank 
-01d2 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
-01d3 c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
-01d4 5800001a setarg 0x001a 
-01d5 68494437 fetcht 2 ,mem_le_att_handle 
-01d6 98467c00 isub temp ,null 
-01d7 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
-01d8 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
-01d9 20201ec9 branch le_send_att_error_response 
+01c0 18c22200 copy contr ,rega 
+01c1 6fe143d4 fetch 2 ,mem_le_l2cap_size 
+01c2 1fe0a5fd add pdata ,-3 ,regb 
+01c3 20401a25 call le_writeatt_cb 
+01c4 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+01c5 c07f9e73 beq 0xff ,le_send_att_write_response_check_auth 
+01c6 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+01c7 203a1e73 branch le_send_att_write_response_check_auth ,blank 
+01c8 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
+01c9 c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
+01ca 5800001a setarg 0x001a 
+01cb 68494437 fetcht 2 ,mem_le_att_handle 
+01cc 98467c00 isub temp ,null 
+01cd 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
+01ce 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
+01cf 20201ec9 branch le_send_att_error_response 
 
 p_g24_lpm_wait:
-01da 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
-01db 245a26e1 ncall g24_transmit_by_interrupt_enable ,blank 
-01dc 202026bc branch g24_lpm_wait + 1 
+01d0 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
+01d1 245a26e1 ncall g24_transmit_by_interrupt_enable ,blank 
+01d2 202026bc branch g24_lpm_wait + 1 
 
 p_mouse_motion:
-01dd 78547c00 disable user 
-01de 58000000 setarg 0 
-01df 67e348d1 store 6 ,mem_mouse_x 
-01e0 20404240 call mouse_check_sensor_data 
-01e1 2040408e call mouse_dpi_config 
-01e2 20203f75 branch mouse_motion + 5 
+01d3 78547c00 disable user 
+01d4 58000000 setarg 0 
+01d5 67e348d1 store 6 ,mem_mouse_x 
+01d6 20404240 call mouse_check_sensor_data 
+01d7 2040408e call mouse_dpi_config 
+01d8 20203f75 branch mouse_motion + 5 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/program/patch.prog	(revision 683)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/program/patch.prog	(working copy)
@@ -259,7 +259,29 @@
 	fetch 1,mem_mouse_sensor_sdio_gpio
 	arg gpcfg_output_high,temp
 	call gpio_config_function_int
-	branch mouse_setgpio_hibernate+3
+	arg 3,temp
+	call mouse_gpio_config_input_pu
+	call mouse_lpm_before_common
+	call gpio_pd_idle
+	arg 19,temp
+	call mouse_gpio_config_input_pu
+	branch p_mouse_gpio_set_high_impedance
+
+p_mouse_gpio_set_high_impedance:
+	fetch 3,mem_mouse_set_high_impedance_bit_set
+	store 3,mem_pdatatemp
+	arg 20,loopcnt
+	arg 0,temp
+p_mouse_gpio_set_high_impedance_bit_loop:	
+	fetch 3,mem_pdatatemp
+	isolate1 0,pdata
+	call gpio_set_high_impedance,true
+	fetch 3,mem_pdatatemp
+	rshift pdata,pdata
+	store 3,mem_pdatatemp
+	increase 1,temp
+	loop p_mouse_gpio_set_high_impedance_bit_loop
+	rtn
 
 
 p_mouse_lpm_before_common:
@@ -589,50 +611,49 @@
 	branch le_parse_l2cap+10
 		
 p_le_parse_att:
-	fetch MOUSE_FLAG_LEN,mem_mouse_flag
-	bbit0 MOUSE_ENABLE_LE_BATTERY_SERVICE_CANCEL,p_le_parse_att_next
-	call store_contr
-	call p_mouse_le_reconn_write_enable_timer_reinit
-	call get_contr
-p_le_parse_att_next:
+//ifdef BATTERY_SERVICE_CANCEL
+//	call store_contr
+//	call p_mouse_le_reconn_write_enable_timer_reinit
+//	call get_contr
+//endif	
 	ifetch 3,contr
 	store 3,mem_le_att_opcode
-	beq ATTOP_READ_REQUEST,p_le_parse_att_read_request
+//ifdef BATTERY_SERVICE_CANCEL
+//	beq ATTOP_READ_REQUEST,p_le_parse_att_read_request
+//endif
 	beq ATTOP_WRITE_REQUEST,p_le_parse_att_write_request	
 	branch le_parse_att+2
 	
-p_le_parse_att_read_request:
-	call le_check_encrypt_state
-	fetcht 2,mem_le_att_handle
-	fetch 1,mem_le_configuration
-	bbit1 BIT_BLE_READ_AUTH,p_le_send_att_read_response_check_auth
+//ifdef BATTERY_SERVICE_CANCEL	
+//p_le_parse_att_read_request:
+//	call le_check_encrypt_state
+//	fetcht 2,mem_le_att_handle
+//	fetch 1,mem_le_configuration
+//	bbit1 BIT_BLE_READ_AUTH,p_le_send_att_read_response_check_auth
 //input:temp is handle
-p_le_send_att_read_response:
-	fetch MOUSE_FLAG_LEN,mem_mouse_flag
-	bbit0 MOUSE_ENABLE_LE_BATTERY_SERVICE_CANCEL,p_le_send_att_read_response_next
-	fetch 2,mem_le_att_handle
-	beq 0x30,le_send_att_error_response_notfound
-p_le_send_att_read_response_next:	
-	fetcht 2,mem_le_att_handle
-	branch le_send_att_read_response
-
-p_le_send_att_read_response_check_auth:
-	fetch 2,mem_le_pairing_handle
-	isub temp,null
-	nbranch p_le_send_att_read_response,zero
-	call le_check_encrypt_state
-	nbranch p_le_send_att_read_response,user
-	branch le_send_att_read_response_error_insufficient_auth
-
-p_mouse_le_reconn_write_enable_timer_reinit:
-	fetch 1,mem_mouse_le_reconnect_flag
-	rtn blank
-	fetch 1,mem_le_connect_status_flag
-	and pdata,0x03,pdata
-	rtneq 0x03
-	jam 2,mem_le_start_encrypt_timer
-	rtn
-
+//p_le_send_att_read_response:
+//	fetch 2,mem_le_att_handle
+//	beq 0x30,le_send_att_error_response_notfound
+//	fetcht 2,mem_le_att_handle
+//	branch le_send_att_read_response
+
+//p_le_send_att_read_response_check_auth:
+//	fetch 2,mem_le_pairing_handle
+//	isub temp,null
+//	nbranch p_le_send_att_read_response,zero
+//	call le_check_encrypt_state
+//	nbranch p_le_send_att_read_response,user
+//	branch le_send_att_read_response_error_insufficient_auth
+
+//p_mouse_le_reconn_write_enable_timer_reinit:
+//	fetch 1,mem_mouse_le_reconnect_flag
+//	rtn blank
+//	fetch 1,mem_le_connect_status_flag
+//	and pdata,0x03,pdata
+//	rtneq 0x03
+//	jam 2,mem_le_start_encrypt_timer
+//	rtn
+//endif
 
 
 p_le_parse_att_write_request:		// mac os 10.9.5 reconnect can't move
