Index: format/app_mouse.format
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/format/app_mouse.format	(revision 579)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/format/app_mouse.format	(working copy)
@@ -434,6 +434,8 @@
 //byte 8
 0x38 MOUSE_ENABLE_SMOOTHER
 0x39 MOUSE_ENABLE_XY_OFFSET
+0x3a MOUSE_ENABLE_24G_AUTO_PAIR_NERVER_BEEN_PAIRED
+0x3b MOUSE_ENABLE_LE_BATTERY_SERVICE_CANCEL
 
 //mouse dpi level
 0x00 MOUSE_DPI_LEVEL1
Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/output/eeprom.dat	(revision 579)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-06
+be
 06
 c2
 84
@@ -11,71 +11,71 @@
 c0
 00
 00
-1a
+1b
 c0
 01
 80
-1e
+1f
 c0
 45
 80
-67
+68
 c0
 4f
 80
-72
+73
 c0
 57
 00
-74
+75
 c0
 58
 00
-5b
+5c
 c0
 61
 80
-e0
+f1
 c0
 63
 80
-ab
+ac
 c0
 64
 80
-af
+b0
 c0
 65
 00
-ba
+bb
 c0
 66
 00
-57
+58
 c0
 67
 01
-7b
+a9
 c0
 68
+01
 00
-ef
 c0
 6b
 00
-c3
+c4
 c0
 6c
 81
-00
+11
 c0
 6d
 01
-38
+49
 c0
 74
 01
-43
+54
 20
 20
 13
@@ -83,27 +83,31 @@
 c0
 19
 80
-37
+38
 c0
 1a
 00
-3c
+3d
 c0
 43
 81
-3f
+50
 c0
 50
 81
-57
+68
+c0
+60
+01
+72
 c0
 75
 00
-9c
+9d
 c0
 76
 01
-78
+a6
 20
 20
 13
@@ -171,7 +175,7 @@
 20
 40
 00
-2b
+2c
 20
 20
 08
@@ -203,7 +207,7 @@
 20
 3a
 00
-34
+35
 6f
 e0
 c6
@@ -363,7 +367,7 @@
 20
 40
 00
-3c
+3d
 20
 20
 3e
@@ -415,7 +419,7 @@
 20
 20
 00
-5b
+5c
 70
 8a
 8b
@@ -499,7 +503,7 @@
 20
 40
 00
-7d
+7e
 20
 20
 3b
@@ -507,7 +511,7 @@
 58
 00
 00
-80
+81
 67
 e1
 48
@@ -535,7 +539,7 @@
 c3
 0a
 80
-87
+88
 6f
 e0
 cb
@@ -555,7 +559,7 @@
 c2
 80
 80
-96
+97
 68
 48
 c7
@@ -651,7 +655,7 @@
 24
 3a
 00
-a6
+a7
 6f
 e4
 48
@@ -791,15 +795,19 @@
 c0
 1e
 00
-db
+dd
+c0
+1d
+00
+e3
 c0
 19
 00
-c8
+ca
 c0
 22
 00
-cf
+d1
 20
 20
 43
@@ -811,7 +819,7 @@
 c0
 00
 80
-cc
+ce
 70
 4b
 76
@@ -894,6 +902,10 @@
 93
 20
 40
+25
+7e
+20
+40
 48
 c6
 20
@@ -901,6 +913,62 @@
 48
 4e
 6f
+e0
+c8
+a5
+24
+3a
+47
+e1
+6f
+e0
+c8
+8b
+c0
+01
+00
+e8
+20
+20
+48
+37
+6f
+e4
+4b
+ab
+c2
+97
+c8
+11
+c2
+98
+48
+11
+c3
+1d
+48
+06
+6f
+e2
+49
+93
+68
+4a
+49
+74
+98
+46
+7c
+00
+20
+22
+c8
+27
+20
+20
+48
+06
+6f
 e4
 4b
 ab
@@ -915,7 +983,7 @@
 c0
 00
 00
-e5
+f6
 20
 20
 3d
@@ -966,8 +1034,8 @@
 8f
 20
 40
-00
-f2
+01
+03
 20
 20
 40
@@ -1019,7 +1087,7 @@
 20
 3a
 01
-0e
+1f
 67
 e0
 cb
@@ -1055,7 +1123,7 @@
 20
 40
 01
-0b
+1c
 20
 40
 40
@@ -1067,7 +1135,7 @@
 20
 40
 01
-23
+34
 20
 20
 44
@@ -1079,7 +1147,7 @@
 da
 40
 01
-0e
+1f
 20
 20
 31
@@ -1135,11 +1203,11 @@
 20
 41
 01
-1d
+2e
 24
 41
 01
-21
+32
 20
 20
 48
@@ -1175,7 +1243,7 @@
 c0
 00
 01
-29
+3a
 6f
 e4
 4b
@@ -1191,7 +1259,7 @@
 20
 20
 01
-2c
+3d
 6f
 e4
 4b
@@ -1227,7 +1295,7 @@
 20
 22
 81
-33
+44
 20
 20
 44
@@ -1323,7 +1391,7 @@
 c0
 04
 81
-4b
+5c
 20
 20
 4d
@@ -1423,11 +1491,31 @@
 c0
 02
 01
-64
+75
 20
 20
 19
 e4
+6f
+e4
+4b
+ab
+c3
+1d
+81
+7a
+20
+40
+7c
+eb
+20
+40
+01
+8f
+20
+40
+7c
+e5
 ef
 e1
 80
@@ -1437,13 +1525,109 @@
 c4
 36
 c0
+05
+01
+7f
+c0
 09
 01
-68
+96
 20
 20
 1c
 d3
+20
+40
+1e
+8d
+68
+49
+44
+37
+6f
+e0
+c3
+c0
+c2
+81
+81
+89
+6f
+e4
+4b
+ab
+c3
+1d
+81
+87
+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
+83
+20
+40
+1e
+8d
+24
+34
+01
+83
+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
@@ -1544,8 +1728,8 @@
 20
 3f
 75
-05
-a8
+6c
+9f
 aa
 55
 40
@@ -1608,7 +1792,7 @@
 00
 00
 00
-00
+01
 00
 00
 00
@@ -1720,26 +1904,26 @@
 00
 0d
 49
-07
-06
-08
-0a
-ff
+0b
+0c
+0d
 ff
-04
-05
 ff
 ff
-0d
-07
-06
+05
+04
+03
+03
 08
+0b
+0c
+0d
 ff
 ff
 ff
 ff
-0b
-0c
+07
+06
 ff
 ff
 ff
@@ -2718,194 +2902,10 @@
 aa
 aa
 55
-5f
-5e
-ed
-b4
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+6c
+5d
+8f
+f3
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-fc
-2b
+36
+d8
Index: output/flash.dat
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/output/flash.dat	(revision 579)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/output/flash.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-06
+be
 06
 c2
 84
@@ -11,71 +11,71 @@
 c0
 00
 00
-1a
+1b
 c0
 01
 80
-1e
+1f
 c0
 45
 80
-67
+68
 c0
 4f
 80
-72
+73
 c0
 57
 00
-74
+75
 c0
 58
 00
-5b
+5c
 c0
 61
 80
-e0
+f1
 c0
 63
 80
-ab
+ac
 c0
 64
 80
-af
+b0
 c0
 65
 00
-ba
+bb
 c0
 66
 00
-57
+58
 c0
 67
 01
-7b
+a9
 c0
 68
+01
 00
-ef
 c0
 6b
 00
-c3
+c4
 c0
 6c
 81
-00
+11
 c0
 6d
 01
-38
+49
 c0
 74
 01
-43
+54
 20
 20
 13
@@ -83,27 +83,31 @@
 c0
 19
 80
-37
+38
 c0
 1a
 00
-3c
+3d
 c0
 43
 81
-3f
+50
 c0
 50
 81
-57
+68
+c0
+60
+01
+72
 c0
 75
 00
-9c
+9d
 c0
 76
 01
-78
+a6
 20
 20
 13
@@ -171,7 +175,7 @@
 20
 40
 00
-2b
+2c
 20
 20
 08
@@ -203,7 +207,7 @@
 20
 3a
 00
-34
+35
 6f
 e0
 c6
@@ -363,7 +367,7 @@
 20
 40
 00
-3c
+3d
 20
 20
 3e
@@ -415,7 +419,7 @@
 20
 20
 00
-5b
+5c
 70
 8a
 8b
@@ -499,7 +503,7 @@
 20
 40
 00
-7d
+7e
 20
 20
 3b
@@ -507,7 +511,7 @@
 58
 00
 00
-80
+81
 67
 e1
 48
@@ -535,7 +539,7 @@
 c3
 0a
 80
-87
+88
 6f
 e0
 cb
@@ -555,7 +559,7 @@
 c2
 80
 80
-96
+97
 68
 48
 c7
@@ -651,7 +655,7 @@
 24
 3a
 00
-a6
+a7
 6f
 e4
 48
@@ -791,15 +795,19 @@
 c0
 1e
 00
-db
+dd
+c0
+1d
+00
+e3
 c0
 19
 00
-c8
+ca
 c0
 22
 00
-cf
+d1
 20
 20
 43
@@ -811,7 +819,7 @@
 c0
 00
 80
-cc
+ce
 70
 4b
 76
@@ -894,6 +902,10 @@
 93
 20
 40
+25
+7e
+20
+40
 48
 c6
 20
@@ -901,6 +913,62 @@
 48
 4e
 6f
+e0
+c8
+a5
+24
+3a
+47
+e1
+6f
+e0
+c8
+8b
+c0
+01
+00
+e8
+20
+20
+48
+37
+6f
+e4
+4b
+ab
+c2
+97
+c8
+11
+c2
+98
+48
+11
+c3
+1d
+48
+06
+6f
+e2
+49
+93
+68
+4a
+49
+74
+98
+46
+7c
+00
+20
+22
+c8
+27
+20
+20
+48
+06
+6f
 e4
 4b
 ab
@@ -915,7 +983,7 @@
 c0
 00
 00
-e5
+f6
 20
 20
 3d
@@ -966,8 +1034,8 @@
 8f
 20
 40
-00
-f2
+01
+03
 20
 20
 40
@@ -1019,7 +1087,7 @@
 20
 3a
 01
-0e
+1f
 67
 e0
 cb
@@ -1055,7 +1123,7 @@
 20
 40
 01
-0b
+1c
 20
 40
 40
@@ -1067,7 +1135,7 @@
 20
 40
 01
-23
+34
 20
 20
 44
@@ -1079,7 +1147,7 @@
 da
 40
 01
-0e
+1f
 20
 20
 31
@@ -1135,11 +1203,11 @@
 20
 41
 01
-1d
+2e
 24
 41
 01
-21
+32
 20
 20
 48
@@ -1175,7 +1243,7 @@
 c0
 00
 01
-29
+3a
 6f
 e4
 4b
@@ -1191,7 +1259,7 @@
 20
 20
 01
-2c
+3d
 6f
 e4
 4b
@@ -1227,7 +1295,7 @@
 20
 22
 81
-33
+44
 20
 20
 44
@@ -1323,7 +1391,7 @@
 c0
 04
 81
-4b
+5c
 20
 20
 4d
@@ -1423,11 +1491,31 @@
 c0
 02
 01
-64
+75
 20
 20
 19
 e4
+6f
+e4
+4b
+ab
+c3
+1d
+81
+7a
+20
+40
+7c
+eb
+20
+40
+01
+8f
+20
+40
+7c
+e5
 ef
 e1
 80
@@ -1437,13 +1525,109 @@
 c4
 36
 c0
+05
+01
+7f
+c0
 09
 01
-68
+96
 20
 20
 1c
 d3
+20
+40
+1e
+8d
+68
+49
+44
+37
+6f
+e0
+c3
+c0
+c2
+81
+81
+89
+6f
+e4
+4b
+ab
+c3
+1d
+81
+87
+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
+83
+20
+40
+1e
+8d
+24
+34
+01
+83
+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
@@ -1544,8 +1728,8 @@
 20
 3f
 75
-05
-a8
+6c
+9f
 aa
 55
 40
@@ -1608,7 +1792,7 @@
 00
 00
 00
-00
+01
 00
 00
 00
@@ -1720,26 +1904,26 @@
 00
 0d
 49
-07
-06
-08
-0a
-ff
+0b
+0c
+0d
 ff
-04
-05
 ff
 ff
-0d
-07
-06
+05
+04
+03
+03
 08
+0b
+0c
+0d
 ff
 ff
 ff
 ff
-0b
-0c
+07
+06
 ff
 ff
 ff
@@ -2718,194 +2902,10 @@
 aa
 aa
 55
-5f
-5e
-ed
-b4
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+6c
+5d
+8f
+f3
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-fc
-2b
+36
+d8
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/output/program.lis	(revision 579)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/output/program.lis	(working copy)
@@ -1,492 +1,554 @@
               include "bt_format "
               org 0x0000
 0000 c2840013 bbit1 8 ,pf_patch_ext 
-0001 c000001a beq patch00_0 ,p_soft_reset 
-0002 c001801e beq patch00_3 ,p_main_loop 
-0003 c0458067 beq patch11_3 ,p_initialize_radio_cont 
-0004 c04f8072 beq patch13_7 ,p_init_param 
-0005 c0570074 beq patch15_6 ,p_app_init 
-0006 c058005b beq patch16_0 ,p_app_evt_100ms_loop 
-0007 c06180e0 beq patch18_3 ,p_mouse_start_work 
-0008 c06380ab beq patch18_7 ,p_mouse_app_enter_hibernate 
-0009 c06480af beq patch19_1 ,p_mouse_setgpio_hibernate 
-000a c06500ba beq patch19_2 ,p_mouse_lpm_before_common 
-000b c0660057 beq patch19_4 ,p_mouse_adc_read_start 
-000c c067017b beq patch19_6 ,p_mouse_motion 
-000d c06800ef beq patch1a_0 ,p_mouse_seting_dpi 
-000e c06b00c3 beq patch1a_6 ,p_mouse_priority_bb_event 
-000f c06c8100 beq patch1b_1 ,p_mouse_bb_event_timer 
-0010 c06d0138 beq patch1b_2 ,p_mouse_start_discovery 
-0011 c0740143 beq patch1d_0 ,p_hid_rx_process 
+0001 c000001b beq patch00_0 ,p_soft_reset 
+0002 c001801f beq patch00_3 ,p_main_loop 
+0003 c0458068 beq patch11_3 ,p_initialize_radio_cont 
+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 c06180f1 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 
+000b c0660058 beq patch19_4 ,p_mouse_adc_read_start 
+000c c06701a9 beq patch19_6 ,p_mouse_motion 
+000d c0680100 beq patch1a_0 ,p_mouse_seting_dpi 
+000e c06b00c4 beq patch1a_6 ,p_mouse_priority_bb_event 
+000f c06c8111 beq patch1b_1 ,p_mouse_bb_event_timer 
+0010 c06d0149 beq patch1b_2 ,p_mouse_start_discovery 
+0011 c0740154 beq patch1d_0 ,p_hid_rx_process 
 0012 2020137c branch loop 
 
 pf_patch_ext:
-0013 c0198037 beq patch26_3 ,p_adc_init_data 
-0014 c01a003c beq patch26_4 ,p_enable_adc 
-0015 c043813f beq patch30_7 ,p_ui_timer_check 
-0016 c0508157 beq patch34_1 ,p_le_slave_match 
-0017 c075009c beq patch3d_2 ,p_g24_transmit_no_interrupt 
-0018 c0760178 beq patch3d_4 ,p_g24_lpm_wait 
-0019 2020137c branch loop 
+0013 c0198038 beq patch26_3 ,p_adc_init_data 
+0014 c01a003d beq patch26_4 ,p_enable_adc 
+0015 c0438150 beq patch30_7 ,p_ui_timer_check 
+0016 c0508168 beq patch34_1 ,p_le_slave_match 
+0017 c0600172 beq patch38_0 ,p_le_parse_l2cap 
+0018 c075009d beq patch3d_2 ,p_g24_transmit_no_interrupt 
+0019 c07601a6 beq patch3d_4 ,p_g24_lpm_wait 
+001a 2020137c branch loop 
 
 p_soft_reset:
-001a 20800000 clear_stack 
-001b 204030f3 call app_param_init 
-001c 20403bfd call mouse_xtal_init 
-001d 20200804 branch soft_reset + 3 
+001b 20800000 clear_stack 
+001c 204030f3 call app_param_init 
+001d 20403bfd call mouse_xtal_init 
+001e 20200804 branch soft_reset + 3 
 
 p_main_loop:
-001e 2040706c call sp_calc_sequence 
-001f 20407597 call sp_calc_sequence_256 
-0020 20406ea7 call sp_calc_sequence_256_check 
-0021 20401b93 call le_advertising_dispatch + 1 
-0022 2040083a call idle_dispatch 
-0023 20403108 call app_process_idle + 1 
-0024 20400892 call inquiry_dispatch + 1 
-0025 20400b08 call inquiry_scan_dispatch + 1 
-0026 20400b7b call page_scan_dispatch + 1 
-0027 20400823 call connection_dispatch + 1 
-0028 204021d3 call g24_dispatch + 2 
-0029 2040002b call p_lpm_dispatch 
-002a 20200813 branch main_loop 
+001f 2040706c call sp_calc_sequence 
+0020 20407597 call sp_calc_sequence_256 
+0021 20406ea7 call sp_calc_sequence_256_check 
+0022 20401b93 call le_advertising_dispatch + 1 
+0023 2040083a call idle_dispatch 
+0024 20403108 call app_process_idle + 1 
+0025 20400892 call inquiry_dispatch + 1 
+0026 20400b08 call inquiry_scan_dispatch + 1 
+0027 20400b7b call page_scan_dispatch + 1 
+0028 20400823 call connection_dispatch + 1 
+0029 204021d3 call g24_dispatch + 2 
+002a 2040002c call p_lpm_dispatch 
+002b 20200813 branch main_loop 
 
 p_lpm_dispatch:
-002b 20401465 call lpo_calibration 
-002c 6fe1c174 fetch 3 ,mem_clks_per_lpo 
-002d 207a0000 rtn blank 
-002e 6fe0c099 fetch 1 ,mem_lpm_mode 
-002f 207a0000 rtn blank 
-0030 6fe0c764 fetch 1 ,mem_ssp_enable 
-0031 203a0034 branch p_lpm_dispatch_next ,blank 
-0032 6fe0c6b9 fetch 1 ,mem_sp_local_key_invalid 
-0033 207a0000 rtn blank 
+002c 20401465 call lpo_calibration 
+002d 6fe1c174 fetch 3 ,mem_clks_per_lpo 
+002e 207a0000 rtn blank 
+002f 6fe0c099 fetch 1 ,mem_lpm_mode 
+0030 207a0000 rtn blank 
+0031 6fe0c764 fetch 1 ,mem_ssp_enable 
+0032 203a0035 branch p_lpm_dispatch_next ,blank 
+0033 6fe0c6b9 fetch 1 ,mem_sp_local_key_invalid 
+0034 207a0000 rtn blank 
 
 p_lpm_dispatch_next:
-0034 6fe0c6ba fetch 1 ,mem_sc_calc 
-0035 247a0000 nrtn blank 
-0036 202014ea branch lpm_dispatch_next + 3 
+0035 6fe0c6ba fetch 1 ,mem_sc_calc 
+0036 247a0000 nrtn blank 
+0037 202014ea branch lpm_dispatch_next + 3 
 
 p_adc_init_data:
-0037 da20099e arg mem_temp_block2 ,rega 
-0038 d840000c arg 12 ,temp 
-0039 58000030 setarg efuse_offset_adc_param 
-003a 20405e63 call efuse_read_data 
-003b 202060bf branch adc_init_data + 6 
+0038 da20099e arg mem_temp_block2 ,rega 
+0039 d840000c arg 12 ,temp 
+003a 58000030 setarg efuse_offset_adc_param 
+003b 20405e63 call efuse_read_data 
+003c 202060bf branch adc_init_data + 6 
 
 p_enable_adc:
-003c 6a508a12 fetchr regb ,1 ,core_rf_ldo_cfg6 
-003d 708a123d jam 0x3d ,core_rf_ldo_cfg6 
-003e 708a11aa jam 0xaa ,core_rf_ldo_cfg5 
-003f 708a0a0c jam 0x0c ,core_rf_ldo_en0 
-0040 6ff08a09 fetch 1 ,core_clkpll_cfg6 
-0041 79207e07 set1 7 ,pdata 
-0042 67f08a09 store 1 ,core_clkpll_cfg6 
-0043 708a0b04 jam 0x04 ,core_rf_ldo_en1 
-0044 2000003c nop 60 
-0045 708a1600 jam 0 ,core_syn_en 
-0046 708a1706 jam 6 ,core_rx_en0 
-0047 2040611a call read_adc_mode 
-0048 67f08a97 store 1 ,core_gpadc_ctrl 
-0049 7080dc03 jam 0x03 ,core_sum_ctrl 
-004a 2000003c nop 60 
-004b 6ff08053 fetch 1 ,core_sum_en 
-004c 79207e07 set1 7 ,pdata 
-004d 67f08053 store 1 ,core_sum_en 
-004e 200003e8 nop 1000 
-004f 6ff10150 fetch 2 ,core_adc_sum 
-0050 67e144a2 store 2 ,mem_adc_current_value 
-0051 6ff08053 fetch 1 ,core_sum_en 
-0052 793ffe07 set0 7 ,pdata 
-0053 67f08053 store 1 ,core_sum_en 
-0054 708a9700 jam 0 ,core_gpadc_ctrl 
-0055 62508a12 storer regb ,1 ,core_rf_ldo_cfg6 
-0056 20600000 rtn 
+003d 6a508a12 fetchr regb ,1 ,core_rf_ldo_cfg6 
+003e 708a123d jam 0x3d ,core_rf_ldo_cfg6 
+003f 708a11aa jam 0xaa ,core_rf_ldo_cfg5 
+0040 708a0a0c jam 0x0c ,core_rf_ldo_en0 
+0041 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+0042 79207e07 set1 7 ,pdata 
+0043 67f08a09 store 1 ,core_clkpll_cfg6 
+0044 708a0b04 jam 0x04 ,core_rf_ldo_en1 
+0045 2000003c nop 60 
+0046 708a1600 jam 0 ,core_syn_en 
+0047 708a1706 jam 6 ,core_rx_en0 
+0048 2040611a call read_adc_mode 
+0049 67f08a97 store 1 ,core_gpadc_ctrl 
+004a 7080dc03 jam 0x03 ,core_sum_ctrl 
+004b 2000003c nop 60 
+004c 6ff08053 fetch 1 ,core_sum_en 
+004d 79207e07 set1 7 ,pdata 
+004e 67f08053 store 1 ,core_sum_en 
+004f 200003e8 nop 1000 
+0050 6ff10150 fetch 2 ,core_adc_sum 
+0051 67e144a2 store 2 ,mem_adc_current_value 
+0052 6ff08053 fetch 1 ,core_sum_en 
+0053 793ffe07 set0 7 ,pdata 
+0054 67f08053 store 1 ,core_sum_en 
+0055 708a9700 jam 0 ,core_gpadc_ctrl 
+0056 62508a12 storer regb ,1 ,core_rf_ldo_cfg6 
+0057 20600000 rtn 
 
 p_mouse_adc_read_start:
-0057 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
-0058 247a0000 nrtn blank 
-0059 2040003c call p_enable_adc 
-005a 20203ebb branch mouse_adc_read_start + 3 
+0058 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
+0059 247a0000 nrtn blank 
+005a 2040003d call p_enable_adc 
+005b 20203ebb branch mouse_adc_read_start + 3 
 
 p_app_evt_100ms_loop:
-005b 6fe0830d fetch 1 ,mem_app_evt_timer_count 
-005c 207a0000 rtn blank 
-005d 1fe0ffff increase -1 ,pdata 
-005e 67e0830d store 1 ,mem_app_evt_timer_count 
-005f 204077c5 call ui_button_polling 
-0060 204031e3 call app_lpm_wake_auto_lock_timer 
-0061 204031a4 call app_unsniff_delay_timer 
-0062 204031aa call app_discovery_timer 
-0063 20405cdc call flash_write_spi_sm_timer 
-0064 6fe1446f fetch 2 ,mem_cb_event_timer 
-0065 20407e05 call callback_func 
-0066 2020005b branch p_app_evt_100ms_loop 
+005c 6fe0830d fetch 1 ,mem_app_evt_timer_count 
+005d 207a0000 rtn blank 
+005e 1fe0ffff increase -1 ,pdata 
+005f 67e0830d store 1 ,mem_app_evt_timer_count 
+0060 204077c5 call ui_button_polling 
+0061 204031e3 call app_lpm_wake_auto_lock_timer 
+0062 204031a4 call app_unsniff_delay_timer 
+0063 204031aa call app_discovery_timer 
+0064 20405cdc call flash_write_spi_sm_timer 
+0065 6fe1446f fetch 2 ,mem_cb_event_timer 
+0066 20407e05 call callback_func 
+0067 2020005c branch p_app_evt_100ms_loop 
 
 p_initialize_radio_cont:
-0067 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
-0068 2040126a call initialize_syn_afc_cfg1 
-0069 20401271 call initialize_rf_ldo_cfg1 
-006a 20401277 call initialize_rc_cal 
-006b 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
-006c 708a0305 jam 5 ,core_clkpll_cfg0 
-006d 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
-006e 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
-006f 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
-0070 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
-0071 2020125d branch initialize_radio_cont + 8 
+0068 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
+0069 2040126a call initialize_syn_afc_cfg1 
+006a 20401271 call initialize_rf_ldo_cfg1 
+006b 20401277 call initialize_rc_cal 
+006c 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
+006d 708a0305 jam 5 ,core_clkpll_cfg0 
+006e 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
+006f 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
+0070 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
+0071 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
+0072 2020125d branch initialize_radio_cont + 8 
 
 p_init_param:
-0072 70008000 jam 0 ,mem_lmo_tid2 
-0073 202013b7 branch init_param_next + 1 
+0073 70008000 jam 0 ,mem_lmo_tid2 
+0074 202013b7 branch init_param_next + 1 
 
 p_app_init:
 
 p_mouse_init:
-0074 20406df3 call enable_authrom 
-0075 20403bf0 call mouse_setting_config 
-0076 204041a7 call mouse_init_sunt 
-0077 20758000 rtn wake 
-0078 2040408e call mouse_dpi_config 
-0079 20403d8a call mouse_usb_check_enable 
-007a 20404728 call mouse_drawing_optima_init 
-007b 2040007d call p_mouse_cb_fuction 
-007c 20203bc8 branch mouse_init + 7 
+0075 20406df3 call enable_authrom 
+0076 20403bf0 call mouse_setting_config 
+0077 204041a7 call mouse_init_sunt 
+0078 20758000 rtn wake 
+0079 2040408e call mouse_dpi_config 
+007a 20403d8a call mouse_usb_check_enable 
+007b 20404728 call mouse_drawing_optima_init 
+007c 2040007e call p_mouse_cb_fuction 
+007d 20203bc8 branch mouse_init + 7 
 
 p_mouse_cb_fuction:
-007d 58000080 setarg p_mouse_24g_package_data 
-007e 67e1489b store 2 ,mem_cb_24g_transmit_data 
-007f 20203bd1 branch mouse_cb_fuction + 2 
+007e 58000081 setarg p_mouse_24g_package_data 
+007f 67e1489b store 2 ,mem_cb_24g_transmit_data 
+0080 20203bd1 branch mouse_cb_fuction + 2 
 
 p_mouse_24g_package_data:
-0080 c6930000 rtnmark0 mark_24g 
-0081 20403f70 call mouse_motion 
-0082 24740000 nrtn user 
-0083 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0084 c30a8087 bbit0 mouse_enable_keyboard ,p_mouse_24g_mouse_package_data 
-0085 6fe0cb8b fetch 1 ,mem_customer_key 
-0086 243a4884 nbranch mouse_24g_keyboard_package_data ,blank 
+0081 c6930000 rtnmark0 mark_24g 
+0082 20403f70 call mouse_motion 
+0083 24740000 nrtn user 
+0084 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0085 c30a8088 bbit0 mouse_enable_keyboard ,p_mouse_24g_mouse_package_data 
+0086 6fe0cb8b fetch 1 ,mem_customer_key 
+0087 243a4884 nbranch mouse_24g_keyboard_package_data ,blank 
 
 p_mouse_24g_mouse_package_data:
-0087 204042cb call mouse_data_xy_release 
-0088 6fe0c836 fetch 1 ,mem_24g_data_type 
-0089 c2808096 bbit1 1 ,p_mouse_24g_mouse_package_data_now 
-008a 6848c7c7 fetcht 1 ,mem_24g_txbuf + 1 
-008b 6fe0c8d0 fetch 1 ,mem_mouse_key 
-008c 9841fe00 ior temp ,pdata 
-008d 67e0c8d0 store 1 ,mem_mouse_key 
-008e 6848c7cc fetcht 1 ,mem_24g_txbuf + 6 
-008f 6fe0c8d5 fetch 1 ,mem_mouse_z 
-0090 9840fe00 iadd temp ,pdata 
-0091 67e0c8d5 store 1 ,mem_mouse_z 
-0092 6848c7cd fetcht 1 ,mem_24g_txbuf + 7 
-0093 6fe0c8d6 fetch 1 ,mem_mouse_tz 
-0094 9840fe00 iadd temp ,pdata 
-0095 67e0c8d6 store 1 ,mem_mouse_tz 
+0088 204042cb call mouse_data_xy_release 
+0089 6fe0c836 fetch 1 ,mem_24g_data_type 
+008a c2808097 bbit1 1 ,p_mouse_24g_mouse_package_data_now 
+008b 6848c7c7 fetcht 1 ,mem_24g_txbuf + 1 
+008c 6fe0c8d0 fetch 1 ,mem_mouse_key 
+008d 9841fe00 ior temp ,pdata 
+008e 67e0c8d0 store 1 ,mem_mouse_key 
+008f 6848c7cc fetcht 1 ,mem_24g_txbuf + 6 
+0090 6fe0c8d5 fetch 1 ,mem_mouse_z 
+0091 9840fe00 iadd temp ,pdata 
+0092 67e0c8d5 store 1 ,mem_mouse_z 
+0093 6848c7cd fetcht 1 ,mem_24g_txbuf + 7 
+0094 6fe0c8d6 fetch 1 ,mem_mouse_tz 
+0095 9840fe00 iadd temp ,pdata 
+0096 67e0c8d6 store 1 ,mem_mouse_tz 
 
 p_mouse_24g_mouse_package_data_now:
-0096 70483601 jam type_ms ,mem_24g_data_type 
-0097 da200007 arg 7 ,rega 
-0098 da4048d0 arg mem_mouse_key ,regb 
-0099 6fe148d5 fetch 2 ,mem_mouse_z 
-009a 207a0000 rtn blank 
-009b 202026e1 branch g24_transmit_by_interrupt_enable 
+0097 70483601 jam type_ms ,mem_24g_data_type 
+0098 da200007 arg 7 ,rega 
+0099 da4048d0 arg mem_mouse_key ,regb 
+009a 6fe148d5 fetch 2 ,mem_mouse_z 
+009b 207a0000 rtn blank 
+009c 202026e1 branch g24_transmit_by_interrupt_enable 
 
 p_g24_transmit_no_interrupt:
-009c 20402631 call g24_txdata_prep 
-009d 243426a1 nbranch g24_nodata_transmit ,user 
+009d 20402631 call g24_txdata_prep 
+009e 243426a1 nbranch g24_nodata_transmit ,user 
 
 p_g24_transmit_start:
-009e 20402646 call g24_transmit_process 
-009f 204026ee call power_ctrl_start 
-00a0 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-00a1 243a00a6 nbranch p_g24_short_sleep ,blank 
-00a2 6fe448b0 fetch 8 ,mem_24g_long_sleep_set 
-00a3 67e4485c store 8 ,mem_24g_enter_hibernate 
-00a4 6fe148c2 fetch 2 ,mem_24g_long_sleep_param_update_timer_init 
-00a5 67e148c4 store 2 ,mem_24g_long_sleep_param_update_timer 
+009f 20402646 call g24_transmit_process 
+00a0 204026ee call power_ctrl_start 
+00a1 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+00a2 243a00a7 nbranch p_g24_short_sleep ,blank 
+00a3 6fe448b0 fetch 8 ,mem_24g_long_sleep_set 
+00a4 67e4485c store 8 ,mem_24g_enter_hibernate 
+00a5 6fe148c2 fetch 2 ,mem_24g_long_sleep_param_update_timer_init 
+00a6 67e148c4 store 2 ,mem_24g_long_sleep_param_update_timer 
 
 p_g24_short_sleep:
-00a6 204026bb call g24_lpm_wait 
-00a7 24740000 nrtn user 
-00a8 20407fdc call clear_wake 
-00a9 6fe1c8ad fetch 3 ,mem_24g_short_sleep_set 
-00aa 202026b8 branch g24_long_sleep2 
+00a7 204026bb call g24_lpm_wait 
+00a8 24740000 nrtn user 
+00a9 20407fdc call clear_wake 
+00aa 6fe1c8ad fetch 3 ,mem_24g_short_sleep_set 
+00ab 202026b8 branch g24_long_sleep2 
 
 p_mouse_app_enter_hibernate:
-00ab 58000006 setarg pan_reg_config 
-00ac 20405b0d call twspi_read 
-00ad c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
-00ae 20203e21 branch mouse_app_enter_hibernate + 1 
+00ac 58000006 setarg pan_reg_config 
+00ad 20405b0d call twspi_read 
+00ae c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
+00af 20203e21 branch mouse_app_enter_hibernate + 1 
 
 p_mouse_setgpio_hibernate:
-00af 204042e9 call mouse_set_sdio_high 
-00b0 20407fdc call clear_wake 
-00b1 20404015 call mouse_before_hibernate_wheel_gpio_set 
-00b2 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-00b3 20406069 call gpio_out_active 
-00b4 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-00b5 20406042 call gpio_clr_wake 
-00b6 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-00b7 d840003f arg gpcfg_output_high ,temp 
-00b8 20406093 call gpio_config_function_int 
-00b9 20203e36 branch mouse_setgpio_hibernate + 3 
+00b0 204042e9 call mouse_set_sdio_high 
+00b1 20407fdc call clear_wake 
+00b2 20404015 call mouse_before_hibernate_wheel_gpio_set 
+00b3 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+00b4 20406069 call gpio_out_active 
+00b5 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+00b6 20406042 call gpio_clr_wake 
+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 
 
 p_mouse_lpm_before_common:
-00ba 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
-00bb 20406050 call gpio_config_input 
-00bc 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
-00bd 20406050 call gpio_config_input 
-00be 20403f88 call mouse_wheel_check 
-00bf 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
-00c0 d840003f arg gpcfg_output_high ,temp 
-00c1 20406093 call gpio_config_function_int 
-00c2 20203e44 branch mouse_lpm_before_common_next 
+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 
 
 p_mouse_priority_bb_event:
-00c3 1a627e00 copy regc ,pdata 
-00c4 c01e00db beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-00c5 c01900c8 beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
-00c6 c02200cf beq bt_evt_le_parse_conn_param_accepted ,p_mouse_le_parse_conn_param_accepted 
-00c7 20204336 branch mouse_priority_bb_event + 2 
+00c4 1a627e00 copy regc ,pdata 
+00c5 c01e00dd beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+00c6 c01d00e3 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
+00c7 c01900ca beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
+00c8 c02200d1 beq bt_evt_le_parse_conn_param_accepted ,p_mouse_le_parse_conn_param_accepted 
+00c9 20204336 branch mouse_priority_bb_event + 2 
 
 p_mouse_le_ll_start_encryt:
-00c8 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-00c9 c00080cc beq 1 ,p_mouse_le_ll_reconn_start_encryt 
-00ca 704b7614 jam 20 ,mem_le_start_encrypt_timer 
-00cb 20204373 branch mouse_le_ll_enable_start_enc_flag 
+00ca 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+00cb c00080ce beq 1 ,p_mouse_le_ll_reconn_start_encryt 
+00cc 704b7614 jam 20 ,mem_le_start_encrypt_timer 
+00cd 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_ll_reconn_start_encryt:
-00cc 2040436c call mouse_updata_le_param 
-00cd 704b7605 jam 5 ,mem_le_start_encrypt_timer 
-00ce 20204373 branch mouse_le_ll_enable_start_enc_flag 
+00ce 2040436c call mouse_updata_le_param 
+00cf 704b7605 jam 5 ,mem_le_start_encrypt_timer 
+00d0 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_parse_conn_param_accepted:
-00cf 6fe082c1 fetch 1 ,mem_le_new_conninterval 
-00d0 1fe67c0c sub pdata ,le_interval_15ms ,null 
-00d1 24214384 nbranch mouse_le_conn_param_lpm_disable ,positive 
-00d2 67e14372 store 2 ,mem_le_interval_min 
-00d3 67e14374 store 2 ,mem_le_interval_min + 2 
-00d4 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
-00d5 6848cb8a fetcht 1 ,mem_lpm_mult_init 
-00d6 98467c00 isub temp ,null 
-00d7 2021439a branch mouse_le_lpm_mult_reinit ,positive 
-00d8 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
-00d9 67e0cb8a store 1 ,mem_lpm_mult_init 
-00da 20204386 branch mouse_le_conn_param_lpm_enable 
+00d1 6fe082c1 fetch 1 ,mem_le_new_conninterval 
+00d2 1fe67c0c sub pdata ,le_interval_15ms ,null 
+00d3 24214384 nbranch mouse_le_conn_param_lpm_disable ,positive 
+00d4 67e14372 store 2 ,mem_le_interval_min 
+00d5 67e14374 store 2 ,mem_le_interval_min + 2 
+00d6 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+00d7 6848cb8a fetcht 1 ,mem_lpm_mult_init 
+00d8 98467c00 isub temp ,null 
+00d9 2021439a branch mouse_le_lpm_mult_reinit ,positive 
+00da 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+00db 67e0cb8a store 1 ,mem_lpm_mult_init 
+00dc 20204386 branch mouse_le_conn_param_lpm_enable 
 
 p_mouse_24g_attempt_success:
-00db 6fe2483c fetch 4 ,mem_24g_addr 
-00dc 67e24891 store 4 ,mem_24g_receiver_addr 
-00dd 67e24993 store 4 ,mem_mouse_24g_addr 
-00de 204048c6 call mouse_device_poweron_timer_init 
-00df 2020484e branch mouse_24g_attempt_success 
+00dd 6fe2483c fetch 4 ,mem_24g_addr 
+00de 67e24891 store 4 ,mem_24g_receiver_addr 
+00df 67e24993 store 4 ,mem_mouse_24g_addr 
+00e0 2040257e call g24_ch_syncword_crc8_init 
+00e1 204048c6 call mouse_device_poweron_timer_init 
+00e2 2020484e branch mouse_24g_attempt_success 
+
+p_mouse_24g_attempt_fail:
+00e3 6fe0c8a5 fetch 1 ,mem_24g_attempt_fail_flag 
+00e4 243a47e1 nbranch mouse_24g_hibernate_set ,blank 
+00e5 6fe0c88b fetch 1 ,mem_24g_reconn_type 
+00e6 c00100e8 beq fast_conn_and_3_0_addr ,p_mouse_24g_fast_conn_attempt_fail 
+00e7 20204837 branch mouse_24g_attempt_fail + 4 
+
+p_mouse_24g_fast_conn_attempt_fail:
+00e8 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00e9 c297c811 bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_start_auto_pair 
+00ea c2984811 bbit1 mouse_enable_auto_24g_paring ,mouse_24g_start_auto_pair 
+00eb c31d4806 bbit0 mouse_enable_24g_auto_pair_nerver_been_paired ,mouse_24g_reconn_dongle_start 
+00ec 6fe24993 fetch 4 ,mem_mouse_24g_addr 
+00ed 684a4974 fetcht 4 ,mem_mouse_compare_addr_ff 
+00ee 98467c00 isub temp ,null 
+00ef 2022c827 branch mouse_24g_start_pair_mode ,zero 
+00f0 20204806 branch mouse_24g_reconn_dongle_start 
 
 p_mouse_start_work:
-00e0 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00e1 c297c80a bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
-00e2 6fe0c938 fetch 1 ,mem_device_flag 
-00e3 c00000e5 beq mode_24g_device ,p_mouse_24g_start_mode 
-00e4 20203d57 branch mouse_start_work + 5 
+00f1 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00f2 c297c80a bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
+00f3 6fe0c938 fetch 1 ,mem_device_flag 
+00f4 c00000f6 beq mode_24g_device ,p_mouse_24g_start_mode 
+00f5 20203d57 branch mouse_start_work + 5 
 
 p_mouse_24g_start_mode:
-00e5 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00e6 c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
-00e7 20403d65 call mouse_wakeup_from_power_check 
-00e8 20344806 branch mouse_24g_reconn_dongle_start ,user 
-00e9 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00ea c298480c bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
-00eb c318c80c bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
-00ec 20404110 call mouse_key_check_once 
-00ed 1a217e07 and rega ,0x07 ,pdata 
-00ee 202047ff branch mouse_24g_start_mode + 9 
+00f6 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00f7 c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
+00f8 20403d65 call mouse_wakeup_from_power_check 
+00f9 20344806 branch mouse_24g_reconn_dongle_start ,user 
+00fa 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00fb c298480c bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
+00fc c318c80c bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
+00fd 20404110 call mouse_key_check_once 
+00fe 1a217e07 and rega ,0x07 ,pdata 
+00ff 202047ff branch mouse_24g_start_mode + 9 
 
 p_mouse_seting_dpi:
-00ef 2040408f call mouse_setting_dpi_4_level 
-00f0 204000f2 call p_mouse_dpi_led_blink_delay 
-00f1 20204098 branch mouse_seting_sensor_type 
+0100 2040408f call mouse_setting_dpi_4_level 
+0101 20400103 call p_mouse_dpi_led_blink_delay 
+0102 20204098 branch mouse_seting_sensor_type 
 
 p_mouse_dpi_led_blink_delay:
-00f2 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00f3 c17f8000 rtneq gpio_disable 
-00f4 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-00f5 247a0000 nrtn blank 
-00f6 6fe14883 fetch 2 ,mem_24g_pair_timeout 
-00f7 247a0000 nrtn blank 
-00f8 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
-00f9 247a0000 nrtn blank 
-00fa 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-00fb 247a0000 nrtn blank 
-00fc 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-00fd 203a010e branch p_mouse_dpi_led_blink_init ,blank 
-00fe 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
-00ff 20600000 rtn 
+0103 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+0104 c17f8000 rtneq gpio_disable 
+0105 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+0106 247a0000 nrtn blank 
+0107 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+0108 247a0000 nrtn blank 
+0109 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+010a 247a0000 nrtn blank 
+010b 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+010c 247a0000 nrtn blank 
+010d 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+010e 203a011f branch p_mouse_dpi_led_blink_init ,blank 
+010f 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
+0110 20600000 rtn 
 
 p_mouse_bb_event_timer:
-0100 20403e9b call mouse_adc_read 
-0101 20404956 call mouse_low_voltage_led_timer 
-0102 2040232b call g24_pair_timeout_timer 
-0103 20402556 call g24_reconn_timeout_timer 
-0104 204047cd call mouse_24g_long_sleep_param_update_timer 
-0105 204048be call mouse_device_poweron_timer 
-0106 2040010b call p_mouse_dpi_led_blink_delay_timer 
-0107 2040407c call mouse_dpi_key_check_long_press 
-0108 204044cc call mouse_bt_discovery_check 
-0109 20400123 call p_mouse_commbination_key_process 
-010a 202044c0 branch mouse_bb_event_timer + 11 
+0111 20403e9b call mouse_adc_read 
+0112 20404956 call mouse_low_voltage_led_timer 
+0113 2040232b call g24_pair_timeout_timer 
+0114 20402556 call g24_reconn_timeout_timer 
+0115 204047cd call mouse_24g_long_sleep_param_update_timer 
+0116 204048be call mouse_device_poweron_timer 
+0117 2040011c call p_mouse_dpi_led_blink_delay_timer 
+0118 2040407c call mouse_dpi_key_check_long_press 
+0119 204044cc call mouse_bt_discovery_check 
+011a 20400134 call p_mouse_commbination_key_process 
+011b 202044c0 branch mouse_bb_event_timer + 11 
 
 p_mouse_dpi_led_blink_delay_timer:
-010b da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-010c da40010e arg p_mouse_dpi_led_blink_init ,regb 
-010d 2020318a branch timer_single_step 
+011c da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+011d da40011f arg p_mouse_dpi_led_blink_init ,regb 
+011e 2020318a branch timer_single_step 
 
 p_mouse_dpi_led_blink_init:
-010e 6fe0c927 fetch 1 ,mem_config_sensor_type 
-010f c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-0110 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-0111 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-0112 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-0113 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-0114 67e14930 store 2 ,mem_mouse_on_time 
-0115 67e14932 store 2 ,mem_mouse_off_time 
-0116 da200000 arg 0 ,rega 
-0117 6848c992 fetcht 1 ,mem_mouse_dpi 
-0118 18408402 increase 2 ,temp 
-0119 18467c03 sub temp ,3 ,null 
-011a 2041011d call p_mouse_dpi_led_blink_init_level_4 ,positive 
-011b 24410121 ncall p_mouse_dpi_led_blink_count_clean ,positive 
-011c 202048ff branch mouse_dpi_led_blink_init_end 
+011f 6fe0c927 fetch 1 ,mem_config_sensor_type 
+0120 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
+0121 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
+0122 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+0123 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
+0124 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
+0125 67e14930 store 2 ,mem_mouse_on_time 
+0126 67e14932 store 2 ,mem_mouse_off_time 
+0127 da200000 arg 0 ,rega 
+0128 6848c992 fetcht 1 ,mem_mouse_dpi 
+0129 18408402 increase 2 ,temp 
+012a 18467c03 sub temp ,3 ,null 
+012b 2041012e call p_mouse_dpi_led_blink_init_level_4 ,positive 
+012c 24410132 ncall p_mouse_dpi_led_blink_count_clean ,positive 
+012d 202048ff branch mouse_dpi_led_blink_init_end 
 
 p_mouse_dpi_led_blink_init_level_4:
-011d 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-011e c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-011f 18408401 increase 1 ,temp 
-0120 20600000 rtn 
+012e 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+012f c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+0130 18408401 increase 1 ,temp 
+0131 20600000 rtn 
 
 p_mouse_dpi_led_blink_count_clean:
-0121 184085fd increase -3 ,temp 
-0122 20600000 rtn 
+0132 184085fd increase -3 ,temp 
+0133 20600000 rtn 
 
 p_mouse_commbination_key_process:
-0123 6fe0c938 fetch 1 ,mem_device_flag 
-0124 c0000129 beq mode_24g_device ,p_mouse_24g_commbination_key_process 
-0125 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0126 c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
-0127 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
-0128 2020012c branch p_mouse_commbination_key_start 
+0134 6fe0c938 fetch 1 ,mem_device_flag 
+0135 c000013a beq mode_24g_device ,p_mouse_24g_commbination_key_process 
+0136 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0137 c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
+0138 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
+0139 2020013d branch p_mouse_commbination_key_start 
 
 p_mouse_24g_commbination_key_process:
-0129 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-012a c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
-012b 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
+013a 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+013b c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
+013c 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
 
 p_mouse_commbination_key_start:
-012c 6048cb9d storet 1 ,mem_mouse_commbination_key 
-012d 20404115 call mouse_check_key_gpio 
-012e 1fe17e07 and pdata ,0x07 ,pdata 
-012f 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
-0130 98467c00 isub temp ,null 
-0131 20228133 branch p_mouse_commbination_key_down ,zero 
-0132 202044eb branch mouse_commbination_key_up 
+013d 6048cb9d storet 1 ,mem_mouse_commbination_key 
+013e 20404115 call mouse_check_key_gpio 
+013f 1fe17e07 and pdata ,0x07 ,pdata 
+0140 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
+0141 98467c00 isub temp ,null 
+0142 20228144 branch p_mouse_commbination_key_down ,zero 
+0143 202044eb branch mouse_commbination_key_up 
 
 p_mouse_commbination_key_down:
-0133 204044f6 call mouse_combination_ui_timer 
-0134 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
-0135 c1008000 rtneq commbination_key_state_down 
-0136 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
-0137 20600000 rtn 
+0144 204044f6 call mouse_combination_ui_timer 
+0145 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
+0146 c1008000 rtneq commbination_key_state_down 
+0147 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
+0148 20600000 rtn 
 
 p_mouse_start_discovery:
-0138 6fe1478c fetch 2 ,mem_ui_state_map 
-0139 2feffe0b isolate1 ui_state_ble_adv ,pdata 
-013a 2040c581 call mouse_stop_le_adv ,true 
-013b 6fe1478c fetch 2 ,mem_ui_state_map 
-013c 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
-013d 2040c322 call mouse_cancel_reconnect ,true 
-013e 20204554 branch mouse_start_discovery + 1 
+0149 6fe1478c fetch 2 ,mem_ui_state_map 
+014a 2feffe0b isolate1 ui_state_ble_adv ,pdata 
+014b 2040c581 call mouse_stop_le_adv ,true 
+014c 6fe1478c fetch 2 ,mem_ui_state_map 
+014d 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
+014e 2040c322 call mouse_cancel_reconnect ,true 
+014f 20204554 branch mouse_start_discovery + 1 
 
 p_ui_timer_check:
-013f 6fe0cbe2 fetch 1 ,mem_power_on_flag 
-0140 245a7861 ncall ui_timer_init ,blank 
-0141 704be200 jam 0 ,mem_power_on_flag 
-0142 20207851 branch ui_timer_check + 1 
+0150 6fe0cbe2 fetch 1 ,mem_power_on_flag 
+0151 245a7861 ncall ui_timer_init ,blank 
+0152 704be200 jam 0 ,mem_power_on_flag 
+0153 20207851 branch ui_timer_check + 1 
 
 p_hid_rx_process:
-0143 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
-0144 1fe20c00 copy pdata ,contr 
-0145 efe08006 ifetch 1 ,contr 
-0146 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
-0147 1fe1040f and pdata ,0x0f ,temp 
-0148 1ff1fe00 rshift4 pdata ,pdata 
-0149 c004814b beq hid_type_set_idle ,p_hid_rx_process_handshake 
-014a 20204d93 branch hid_rx_process + 7 
+0154 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+0155 1fe20c00 copy pdata ,contr 
+0156 efe08006 ifetch 1 ,contr 
+0157 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
+0158 1fe1040f and pdata ,0x0f ,temp 
+0159 1ff1fe00 rshift4 pdata ,pdata 
+015a c004815c beq hid_type_set_idle ,p_hid_rx_process_handshake 
+015b 20204d93 branch hid_rx_process + 7 
 
 p_hid_rx_process_handshake:
-014b da200001 arg 1 ,rega 
-014c 20404dc0 call hid_malloc_tx_buff 
-014d 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
-014e e7e10005 istore 2 ,contw 
-014f 58000000 setarg 0 
-0150 e7e08005 istore 1 ,contw 
-0151 70095001 jam 1 ,mem_ui_data_txbuff_length 
-0152 6fe0c4e2 fetch 1 ,mem_hid_control_state 
-0153 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
-0154 67e0c4e2 store 1 ,mem_hid_control_state 
-0155 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
-0156 20207871 branch ui_ipc_send_event 
+015c da200001 arg 1 ,rega 
+015d 20404dc0 call hid_malloc_tx_buff 
+015e 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
+015f e7e10005 istore 2 ,contw 
+0160 58000000 setarg 0 
+0161 e7e08005 istore 1 ,contw 
+0162 70095001 jam 1 ,mem_ui_data_txbuff_length 
+0163 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+0164 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
+0165 67e0c4e2 store 1 ,mem_hid_control_state 
+0166 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
+0167 20207871 branch ui_ipc_send_event 
 
 p_le_slave_match:
-0157 6fe0c3dd fetch 1 ,mem_le_md_count 
-0158 1fe0fe01 pincrease 1 
-0159 67e0c3dd store 1 ,mem_le_md_count 
-015a c006165a beq le_md_max_count ,le_slave_cont 
-015b 2040191b call le_acknowledge 
-015c 2040196a call le_prepare_tx 
-015d 6fe082bd fetch 1 ,mem_le_tx_phy 
-015e 2040168b call le_enable_phy_by_pdata 
-015f 20401838 call le_transmit 
-0160 20201655 branch le_slave_match + 10 
+0168 6fe0c3dd fetch 1 ,mem_le_md_count 
+0169 1fe0fe01 pincrease 1 
+016a 67e0c3dd store 1 ,mem_le_md_count 
+016b c006165a beq le_md_max_count ,le_slave_cont 
+016c 2040191b call le_acknowledge 
+016d 2040196a call le_prepare_tx 
+016e 6fe082bd fetch 1 ,mem_le_tx_phy 
+016f 2040168b call le_enable_phy_by_pdata 
+0170 20401838 call le_transmit 
+0171 20201655 branch le_slave_match + 10 
 
 p_le_parse_l2cap:
-0161 efe10006 ifetch 2 ,contr 
-0162 c0020164 beq le_l2cap_cid_att ,p_le_parse_att 
-0163 202019e4 branch le_parse_l2cap + 10 
+0172 efe10006 ifetch 2 ,contr 
+0173 c0020175 beq le_l2cap_cid_att ,p_le_parse_att 
+0174 202019e4 branch le_parse_l2cap + 10 
 
 p_le_parse_att:
-0164 efe18006 ifetch 3 ,contr 
-0165 67e1c436 store 3 ,mem_le_att_opcode 
-0166 c0090168 beq attop_write_request ,p_le_parse_att_write_request 
-0167 20201cd3 branch le_parse_att + 2 
+0175 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0176 c31d817a bbit0 mouse_enable_le_battery_service_cancel ,p_le_parse_att_next 
+0177 20407ceb call store_contr 
+0178 2040018f call p_mouse_le_reconn_write_enable_timer_reinit 
+0179 20407ce5 call get_contr 
+
+p_le_parse_att_next:
+017a efe18006 ifetch 3 ,contr 
+017b 67e1c436 store 3 ,mem_le_att_opcode 
+017c c005017f beq attop_read_request ,p_le_parse_att_read_request 
+017d c0090196 beq attop_write_request ,p_le_parse_att_write_request 
+017e 20201cd3 branch le_parse_att + 2 
+
+p_le_parse_att_read_request:
+017f 20401e8d call le_check_encrypt_state 
+0180 68494437 fetcht 2 ,mem_le_att_handle 
+0181 6fe0c3c0 fetch 1 ,mem_le_configuration 
+0182 c2818189 bbit1 bit_ble_read_auth ,p_le_send_att_read_response_check_auth 
+
+p_le_send_att_read_response:
+0183 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0184 c31d8187 bbit0 mouse_enable_le_battery_service_cancel ,p_le_send_att_read_response_next 
+0185 6fe14437 fetch 2 ,mem_le_att_handle 
+0186 c0181ec8 beq 0x30 ,le_send_att_error_response_notfound 
+
+p_le_send_att_read_response_next:
+0187 68494437 fetcht 2 ,mem_le_att_handle 
+0188 20201deb branch le_send_att_read_response 
+
+p_le_send_att_read_response_check_auth:
+0189 6fe143d1 fetch 2 ,mem_le_pairing_handle 
+018a 98467c00 isub temp ,null 
+018b 24228183 nbranch p_le_send_att_read_response ,zero 
+018c 20401e8d call le_check_encrypt_state 
+018d 24340183 nbranch p_le_send_att_read_response ,user 
+018e 20201e10 branch le_send_att_read_response_error_insufficient_auth 
+
+p_mouse_le_reconn_write_enable_timer_reinit:
+018f 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+0190 207a0000 rtn blank 
+0191 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
+0192 1fe17e03 and pdata ,0x03 ,pdata 
+0193 c1018000 rtneq 0x03 
+0194 704b7602 jam 2 ,mem_le_start_encrypt_timer 
+0195 20600000 rtn 
 
 p_le_parse_att_write_request:
-0168 18c22200 copy contr ,rega 
-0169 6fe143d4 fetch 2 ,mem_le_l2cap_size 
-016a 1fe0a5fd add pdata ,-3 ,regb 
-016b 20401a25 call le_writeatt_cb 
-016c 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-016d c07f9e73 beq 0xff ,le_send_att_write_response_check_auth 
-016e 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-016f 203a1e73 branch le_send_att_write_response_check_auth ,blank 
-0170 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
-0171 c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
-0172 5800001a setarg 0x001a 
-0173 68494437 fetcht 2 ,mem_le_att_handle 
-0174 98467c00 isub temp ,null 
-0175 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
-0176 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
-0177 20201ec9 branch le_send_att_error_response 
+0196 18c22200 copy contr ,rega 
+0197 6fe143d4 fetch 2 ,mem_le_l2cap_size 
+0198 1fe0a5fd add pdata ,-3 ,regb 
+0199 20401a25 call le_writeatt_cb 
+019a 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+019b c07f9e73 beq 0xff ,le_send_att_write_response_check_auth 
+019c 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+019d 203a1e73 branch le_send_att_write_response_check_auth ,blank 
+019e 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
+019f c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
+01a0 5800001a setarg 0x001a 
+01a1 68494437 fetcht 2 ,mem_le_att_handle 
+01a2 98467c00 isub temp ,null 
+01a3 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
+01a4 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
+01a5 20201ec9 branch le_send_att_error_response 
 
 p_g24_lpm_wait:
-0178 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
-0179 245a26e1 ncall g24_transmit_by_interrupt_enable ,blank 
-017a 202026bc branch g24_lpm_wait + 1 
+01a6 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
+01a7 245a26e1 ncall g24_transmit_by_interrupt_enable ,blank 
+01a8 202026bc branch g24_lpm_wait + 1 
 
 p_mouse_motion:
-017b 78547c00 disable user 
-017c 58000000 setarg 0 
-017d 67e348d1 store 6 ,mem_mouse_x 
-017e 20404240 call mouse_check_sensor_data 
-017f 2040408e call mouse_dpi_config 
-0180 20203f75 branch mouse_motion + 5 
+01a9 78547c00 disable user 
+01aa 58000000 setarg 0 
+01ab 67e348d1 store 6 ,mem_mouse_x 
+01ac 20404240 call mouse_check_sensor_data 
+01ad 2040408e call mouse_dpi_config 
+01ae 20203f75 branch mouse_motion + 5 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/program/patch.prog	(revision 579)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/program/patch.prog	(working copy)
@@ -1,6 +1,4 @@
 
-//define BATTERY_SERVICE_CANCEL
-//define G24_AUTO_PAIR_NERVER_BEEN_PAIRED
 
 	bbit1 8,pf_patch_ext
 	beq patch00_0,p_soft_reset
@@ -27,10 +25,7 @@
 	beq patch26_4,p_enable_adc
 	beq patch30_7,p_ui_timer_check		
 	beq patch34_1,p_le_slave_match
-	
-//ifdef BATTERY_SERVICE_CANCEL
-//	beq patch38_0,p_le_parse_l2cap
-//endif	
+	beq patch38_0,p_le_parse_l2cap
 	beq patch3d_2,p_g24_transmit_no_interrupt
 	beq patch3d_4,p_g24_lpm_wait
 	branch loop
@@ -283,9 +278,7 @@
 p_mouse_priority_bb_event:
 	copy regc,pdata
 	beq BT_EVT_24G_ATTEMPT_SUCCESS,p_mouse_24g_attempt_success
-ifdef define G24_AUTO_PAIR_NERVER_BEEN_PAIRED	
 	beq BT_EVT_24G_ATTEMPT_FAIL,p_mouse_24g_attempt_fail
-endif
 	beq BT_EVT_LE_START_ENC,p_mouse_le_ll_start_encryt
 	beq BT_EVT_LE_PARSE_CONN_PARAM_ACCEPTED,p_mouse_le_parse_conn_param_accepted
 	branch mouse_priority_bb_event+2
@@ -320,10 +313,11 @@
 	fetch 4,mem_24g_addr
 	store 4,mem_24g_receiver_addr
 	store 4,mem_mouse_24g_addr		// if need store 24g address to eeprom/flash,need get mem_24g_addr
+	call g24_ch_syncword_crc8_init
 	call mouse_device_poweron_timer_init
 	branch mouse_24g_attempt_success
 
-ifdef define G24_AUTO_PAIR_NERVER_BEEN_PAIRED
+
 p_mouse_24g_attempt_fail:
 	fetch 1,mem_24g_attempt_fail_flag
 	nbranch mouse_24g_hibernate_set,blank
@@ -335,12 +329,13 @@
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag 
 	bbit1 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,mouse_24g_start_auto_pair
 	bbit1 MOUSE_ENABLE_AUTO_24G_PARING,mouse_24g_start_auto_pair
+	bbit0 MOUSE_ENABLE_24G_AUTO_PAIR_NERVER_BEEN_PAIRED,mouse_24g_reconn_dongle_start
 	fetch 4,mem_mouse_24g_addr		// auto pair first time
 	fetcht 4,mem_mouse_compare_addr_ff
 	isub temp,null
 	branch mouse_24g_start_pair_mode,zero
 	branch mouse_24g_reconn_dongle_start
-endif	
+
 
 p_mouse_start_work:
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
@@ -522,49 +517,50 @@
 	branch le_parse_l2cap+10
 		
 p_le_parse_att:
-//ifdef BATTERY_SERVICE_CANCEL
-//	call store_contr
-//	call p_mouse_le_reconn_write_enable_timer_reinit
-//	call get_contr
-//endif	
+	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:
 	ifetch 3,contr
 	store 3,mem_le_att_opcode
-//ifdef BATTERY_SERVICE_CANCEL
-//	beq ATTOP_READ_REQUEST,p_le_parse_att_read_request
-//endif
+	beq ATTOP_READ_REQUEST,p_le_parse_att_read_request
 	beq ATTOP_WRITE_REQUEST,p_le_parse_att_write_request	
 	branch le_parse_att+2
 	
-//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
+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 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_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_parse_att_write_request:		// mac os 10.9.5 reconnect can't move
Index: sched/mouse.dat
===================================================================
--- /YC1308AC/branch/mouse_project/mouse_pubulic/sched/mouse.dat	(revision 579)
+++ /YC1308AC/branch/mouse_project/mouse_pubulic/sched/mouse.dat	(working copy)
@@ -84,7 +84,8 @@
 #mouse flag byte8
 #bit0 MOUSE_ENABLE_SMOOTHER
 #bit1 MOUSE_ENABLE_XY_OFFSET
-
+#bit2 MOUSE_ENABLE_24G_AUTO_PAIR_NERVER_BEEN_PAIRED
+#bit3 MOUSE_ENABLE_LE_BATTERY_SERVICE_CANCEL
 
 
 mem_mouse_flag:
@@ -120,30 +121,30 @@
 mem_rssi_dis_min_ble_init:75
 mem_rssi_dis_max_ble_init:80
 
-mem_bk_button_gpio:07
-mem_fw_button_gpio:06
-mem_dpi_button_gpio:08
-mem_matrix_public_gpio:0a
+mem_bk_button_gpio:0b
+mem_fw_button_gpio:0c
+mem_dpi_button_gpio:0d
+mem_matrix_public_gpio:ff
 mem_sensor_motion_gpio:ff
 mem_customer_key_gpio:ff
-mem_whee_a_data_gpio:04
-mem_whee_b_data_gpio:05
-mem_config_device_24g_led_gpio:ff#03
-mem_config_device_bt1_led_gpio:ff
-mem_select_sensor_angle_gpio:0d
-
-mem_lbutton_gpio:07
-mem_rbutton_gpio:06
-mem_mbutton_gpio:08
+mem_whee_a_data_gpio:05
+mem_whee_b_data_gpio:04
+mem_config_device_24g_led_gpio:03
+mem_config_device_bt1_led_gpio:03
+mem_select_sensor_angle_gpio:08
+
+mem_lbutton_gpio:0b
+mem_rbutton_gpio:0c
+mem_mbutton_gpio:0d
 mem_config_select_device_button_gpio:ff
 mem_whee_ta_data_gpio:ff
 mem_whee_tb_data_gpio:ff
 mem_device_switch_gpio:ff
-mem_mouse_sensor_sclk_gpio:0b
-mem_mouse_sensor_sdio_gpio:0c
+mem_mouse_sensor_sclk_gpio:07
+mem_mouse_sensor_sdio_gpio:06
 mem_config_low_voltage_alarm_gpio:ff
 mem_config_device_bt2_led_gpio:ff
-mem_dpi_led_gpio:ff#03
+mem_dpi_led_gpio:ff #03
 
 mem_sensor_angle_default:03	#00--6CLK   01--9CLK   02--12CLK   03--3CLK
 mem_sensor_angle_switch:00	#00--6CLK   01--9CLK   02--12CLK   03--3CLK
