Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/public_3mode/output/eeprom.dat	(revision 512)
+++ /YC1308AC/branch/mouse_project/public_3mode/output/eeprom.dat	(working copy)
@@ -2,72 +2,76 @@
 02
 aa
 55
-fa
-04
+4e
+05
 c2
 84
 00
-11
+12
 c0
 00
 00
-18
+19
 c0
 01
 80
-1c
+1d
 c0
 45
 80
-65
+66
 c0
 4f
 80
-70
+71
 c0
 57
 00
-72
+73
 c0
 58
 00
-59
+5a
 c0
 63
 80
-78
+79
 c0
 64
 80
-7c
+7d
 c0
 65
 00
-87
+88
 c0
 66
 00
-55
+56
 c0
 67
 01
-38
+4d
 c0
 68
 00
-b6
+b7
 c0
 6b
 00
-90
+91
 c0
 6c
 80
-c7
+c8
 c0
 6d
 01
-09
+0a
+c0
+74
+01
+15
 20
 20
 13
@@ -75,27 +79,27 @@
 c0
 19
 80
-35
+36
 c0
 1a
 00
-3a
+3b
 c0
 43
 81
-10
+11
 c0
 50
 81
-14
+29
 c0
 60
 01
-1e
+33
 c0
 76
 01
-35
+4a
 20
 20
 13
@@ -163,7 +167,7 @@
 20
 40
 00
-29
+2a
 20
 20
 08
@@ -195,7 +199,7 @@
 20
 3a
 00
-32
+33
 6f
 e0
 c6
@@ -355,7 +359,7 @@
 20
 40
 00
-3a
+3b
 20
 20
 3e
@@ -407,7 +411,7 @@
 20
 20
 00
-59
+5a
 70
 8a
 8b
@@ -587,23 +591,23 @@
 c0
 1e
 00
-b1
+b2
 c0
 02
 00
-aa
+ab
 c0
 09
 80
-aa
+ab
 c0
 19
 00
-97
+98
 c0
 22
 00
-9e
+9f
 20
 20
 43
@@ -615,7 +619,7 @@
 c0
 00
 80
-9b
+9c
 70
 4b
 76
@@ -739,7 +743,7 @@
 20
 40
 00
-b9
+ba
 20
 20
 40
@@ -791,7 +795,7 @@
 20
 3a
 00
-d7
+d8
 67
 e0
 cb
@@ -827,7 +831,7 @@
 20
 40
 00
-d4
+d5
 20
 40
 40
@@ -839,7 +843,7 @@
 20
 40
 00
-f4
+f5
 20
 40
 44
@@ -847,7 +851,7 @@
 20
 40
 00
-ec
+ed
 20
 20
 44
@@ -859,7 +863,7 @@
 da
 40
 00
-d7
+d8
 20
 20
 31
@@ -915,11 +919,11 @@
 20
 41
 00
-e6
+e7
 24
 41
 00
-ea
+eb
 20
 20
 48
@@ -955,7 +959,7 @@
 da
 40
 00
-ef
+f0
 20
 20
 45
@@ -987,7 +991,7 @@
 c0
 00
 00
-fa
+fb
 6f
 e4
 4b
@@ -1003,7 +1007,7 @@
 20
 20
 00
-fd
+fe
 6f
 e4
 4b
@@ -1039,7 +1043,7 @@
 20
 22
 81
-04
+05
 20
 20
 44
@@ -1109,6 +1113,86 @@
 78
 51
 6f
+e1
+03
+15
+1f
+e2
+0c
+00
+ef
+e0
+80
+06
+67
+e0
+c5
+f5
+1f
+e1
+04
+0f
+1f
+f1
+fe
+00
+c0
+04
+81
+1d
+20
+20
+4d
+92
+da
+20
+00
+01
+20
+40
+4d
+c0
+6f
+e1
+44
+dc
+e7
+e1
+00
+05
+58
+00
+00
+00
+e7
+e0
+80
+05
+70
+09
+50
+01
+6f
+e0
+c4
+e2
+79
+20
+7e
+06
+67
+e0
+c4
+e2
+70
+09
+5b
+12
+20
+20
+78
+71
+6f
 e0
 c3
 dd
@@ -1155,7 +1239,7 @@
 c0
 02
 01
-21
+36
 20
 20
 19
@@ -1171,7 +1255,7 @@
 c0
 09
 01
-25
+3a
 20
 20
 1c
@@ -1276,8 +1360,8 @@
 20
 3f
 75
-74
-4d
+f5
+69
 aa
 55
 40
@@ -1313,7 +1397,7 @@
 41
 06
 00
-00
+01
 00
 00
 00
@@ -2438,98 +2522,14 @@
 e8
 41
 01
-95
-c3
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+55
+aa
+aa
+55
+54
+5a
+64
+90
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-93
-db
+50
+a5
Index: output/flash.dat
===================================================================
--- /YC1308AC/branch/mouse_project/public_3mode/output/flash.dat	(revision 512)
+++ /YC1308AC/branch/mouse_project/public_3mode/output/flash.dat	(working copy)
@@ -2,72 +2,76 @@
 02
 aa
 55
-fa
-04
+4e
+05
 c2
 84
 00
-11
+12
 c0
 00
 00
-18
+19
 c0
 01
 80
-1c
+1d
 c0
 45
 80
-65
+66
 c0
 4f
 80
-70
+71
 c0
 57
 00
-72
+73
 c0
 58
 00
-59
+5a
 c0
 63
 80
-78
+79
 c0
 64
 80
-7c
+7d
 c0
 65
 00
-87
+88
 c0
 66
 00
-55
+56
 c0
 67
 01
-38
+4d
 c0
 68
 00
-b6
+b7
 c0
 6b
 00
-90
+91
 c0
 6c
 80
-c7
+c8
 c0
 6d
 01
-09
+0a
+c0
+74
+01
+15
 20
 20
 13
@@ -75,27 +79,27 @@
 c0
 19
 80
-35
+36
 c0
 1a
 00
-3a
+3b
 c0
 43
 81
-10
+11
 c0
 50
 81
-14
+29
 c0
 60
 01
-1e
+33
 c0
 76
 01
-35
+4a
 20
 20
 13
@@ -163,7 +167,7 @@
 20
 40
 00
-29
+2a
 20
 20
 08
@@ -195,7 +199,7 @@
 20
 3a
 00
-32
+33
 6f
 e0
 c6
@@ -355,7 +359,7 @@
 20
 40
 00
-3a
+3b
 20
 20
 3e
@@ -407,7 +411,7 @@
 20
 20
 00
-59
+5a
 70
 8a
 8b
@@ -587,23 +591,23 @@
 c0
 1e
 00
-b1
+b2
 c0
 02
 00
-aa
+ab
 c0
 09
 80
-aa
+ab
 c0
 19
 00
-97
+98
 c0
 22
 00
-9e
+9f
 20
 20
 43
@@ -615,7 +619,7 @@
 c0
 00
 80
-9b
+9c
 70
 4b
 76
@@ -739,7 +743,7 @@
 20
 40
 00
-b9
+ba
 20
 20
 40
@@ -791,7 +795,7 @@
 20
 3a
 00
-d7
+d8
 67
 e0
 cb
@@ -827,7 +831,7 @@
 20
 40
 00
-d4
+d5
 20
 40
 40
@@ -839,7 +843,7 @@
 20
 40
 00
-f4
+f5
 20
 40
 44
@@ -847,7 +851,7 @@
 20
 40
 00
-ec
+ed
 20
 20
 44
@@ -859,7 +863,7 @@
 da
 40
 00
-d7
+d8
 20
 20
 31
@@ -915,11 +919,11 @@
 20
 41
 00
-e6
+e7
 24
 41
 00
-ea
+eb
 20
 20
 48
@@ -955,7 +959,7 @@
 da
 40
 00
-ef
+f0
 20
 20
 45
@@ -987,7 +991,7 @@
 c0
 00
 00
-fa
+fb
 6f
 e4
 4b
@@ -1003,7 +1007,7 @@
 20
 20
 00
-fd
+fe
 6f
 e4
 4b
@@ -1039,7 +1043,7 @@
 20
 22
 81
-04
+05
 20
 20
 44
@@ -1109,6 +1113,86 @@
 78
 51
 6f
+e1
+03
+15
+1f
+e2
+0c
+00
+ef
+e0
+80
+06
+67
+e0
+c5
+f5
+1f
+e1
+04
+0f
+1f
+f1
+fe
+00
+c0
+04
+81
+1d
+20
+20
+4d
+92
+da
+20
+00
+01
+20
+40
+4d
+c0
+6f
+e1
+44
+dc
+e7
+e1
+00
+05
+58
+00
+00
+00
+e7
+e0
+80
+05
+70
+09
+50
+01
+6f
+e0
+c4
+e2
+79
+20
+7e
+06
+67
+e0
+c4
+e2
+70
+09
+5b
+12
+20
+20
+78
+71
+6f
 e0
 c3
 dd
@@ -1155,7 +1239,7 @@
 c0
 02
 01
-21
+36
 20
 20
 19
@@ -1171,7 +1255,7 @@
 c0
 09
 01
-25
+3a
 20
 20
 1c
@@ -1276,8 +1360,8 @@
 20
 3f
 75
-74
-4d
+f5
+69
 aa
 55
 40
@@ -1313,7 +1397,7 @@
 41
 06
 00
-00
+01
 00
 00
 00
@@ -2438,98 +2522,14 @@
 e8
 41
 01
-95
-c3
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+55
+aa
+aa
+55
+54
+5a
+64
+90
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-93
-db
+50
+a5
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/public_3mode/output/program.lis	(revision 512)
+++ /YC1308AC/branch/mouse_project/public_3mode/output/program.lis	(working copy)
@@ -1,409 +1,434 @@
               include "bt_format "
               org 0x0000
-0000 c2840011 bbit1 8 ,pf_patch_ext 
-0001 c0000018 beq patch00_0 ,p_soft_reset 
-0002 c001801c beq patch00_3 ,p_main_loop 
-0003 c0458065 beq patch11_3 ,p_initialize_radio_cont 
-0004 c04f8070 beq patch13_7 ,p_init_param 
-0005 c0570072 beq patch15_6 ,p_app_init 
-0006 c0580059 beq patch16_0 ,p_app_evt_100ms_loop 
-0007 c0638078 beq patch18_7 ,p_mouse_app_enter_hibernate 
-0008 c064807c beq patch19_1 ,p_mouse_setgpio_hibernate 
-0009 c0650087 beq patch19_2 ,p_mouse_lpm_before_common 
-000a c0660055 beq patch19_4 ,p_mouse_adc_read_start 
-000b c0670138 beq patch19_6 ,p_mouse_motion 
-000c c06800b6 beq patch1a_0 ,p_mouse_seting_dpi 
-000d c06b0090 beq patch1a_6 ,p_mouse_priority_bb_event 
-000e c06c80c7 beq patch1b_1 ,p_mouse_bb_event_timer 
-000f c06d0109 beq patch1b_2 ,p_mouse_start_discovery 
-0010 2020137c branch loop 
+0000 c2840012 bbit1 8 ,pf_patch_ext 
+0001 c0000019 beq patch00_0 ,p_soft_reset 
+0002 c001801d beq patch00_3 ,p_main_loop 
+0003 c0458066 beq patch11_3 ,p_initialize_radio_cont 
+0004 c04f8071 beq patch13_7 ,p_init_param 
+0005 c0570073 beq patch15_6 ,p_app_init 
+0006 c058005a beq patch16_0 ,p_app_evt_100ms_loop 
+0007 c0638079 beq patch18_7 ,p_mouse_app_enter_hibernate 
+0008 c064807d beq patch19_1 ,p_mouse_setgpio_hibernate 
+0009 c0650088 beq patch19_2 ,p_mouse_lpm_before_common 
+000a c0660056 beq patch19_4 ,p_mouse_adc_read_start 
+000b c067014d beq patch19_6 ,p_mouse_motion 
+000c c06800b7 beq patch1a_0 ,p_mouse_seting_dpi 
+000d c06b0091 beq patch1a_6 ,p_mouse_priority_bb_event 
+000e c06c80c8 beq patch1b_1 ,p_mouse_bb_event_timer 
+000f c06d010a beq patch1b_2 ,p_mouse_start_discovery 
+0010 c0740115 beq patch1d_0 ,p_hid_rx_process 
+0011 2020137c branch loop 
 
 pf_patch_ext:
-0011 c0198035 beq patch26_3 ,p_adc_init_data 
-0012 c01a003a beq patch26_4 ,p_enable_adc 
-0013 c0438110 beq patch30_7 ,p_ui_timer_check 
-0014 c0508114 beq patch34_1 ,p_le_slave_match 
-0015 c060011e beq patch38_0 ,p_le_parse_l2cap 
-0016 c0760135 beq patch3d_4 ,p_g24_lpm_wait 
-0017 2020137c branch loop 
+0012 c0198036 beq patch26_3 ,p_adc_init_data 
+0013 c01a003b beq patch26_4 ,p_enable_adc 
+0014 c0438111 beq patch30_7 ,p_ui_timer_check 
+0015 c0508129 beq patch34_1 ,p_le_slave_match 
+0016 c0600133 beq patch38_0 ,p_le_parse_l2cap 
+0017 c076014a beq patch3d_4 ,p_g24_lpm_wait 
+0018 2020137c branch loop 
 
 p_soft_reset:
-0018 20800000 clear_stack 
-0019 204030f3 call app_param_init 
-001a 20403bfd call mouse_xtal_init 
-001b 20200804 branch soft_reset + 3 
+0019 20800000 clear_stack 
+001a 204030f3 call app_param_init 
+001b 20403bfd call mouse_xtal_init 
+001c 20200804 branch soft_reset + 3 
 
 p_main_loop:
-001c 2040706c call sp_calc_sequence 
-001d 20407597 call sp_calc_sequence_256 
-001e 20406ea7 call sp_calc_sequence_256_check 
-001f 20401b93 call le_advertising_dispatch + 1 
-0020 2040083a call idle_dispatch 
-0021 20403108 call app_process_idle + 1 
-0022 20400892 call inquiry_dispatch + 1 
-0023 20400b08 call inquiry_scan_dispatch + 1 
-0024 20400b7b call page_scan_dispatch + 1 
-0025 20400823 call connection_dispatch + 1 
-0026 204021d3 call g24_dispatch + 2 
-0027 20400029 call p_lpm_dispatch 
-0028 20200813 branch main_loop 
+001d 2040706c call sp_calc_sequence 
+001e 20407597 call sp_calc_sequence_256 
+001f 20406ea7 call sp_calc_sequence_256_check 
+0020 20401b93 call le_advertising_dispatch + 1 
+0021 2040083a call idle_dispatch 
+0022 20403108 call app_process_idle + 1 
+0023 20400892 call inquiry_dispatch + 1 
+0024 20400b08 call inquiry_scan_dispatch + 1 
+0025 20400b7b call page_scan_dispatch + 1 
+0026 20400823 call connection_dispatch + 1 
+0027 204021d3 call g24_dispatch + 2 
+0028 2040002a call p_lpm_dispatch 
+0029 20200813 branch main_loop 
 
 p_lpm_dispatch:
-0029 20401465 call lpo_calibration 
-002a 6fe1c174 fetch 3 ,mem_clks_per_lpo 
-002b 207a0000 rtn blank 
-002c 6fe0c099 fetch 1 ,mem_lpm_mode 
-002d 207a0000 rtn blank 
-002e 6fe0c764 fetch 1 ,mem_ssp_enable 
-002f 203a0032 branch p_lpm_dispatch_next ,blank 
-0030 6fe0c6b9 fetch 1 ,mem_sp_local_key_invalid 
-0031 207a0000 rtn blank 
+002a 20401465 call lpo_calibration 
+002b 6fe1c174 fetch 3 ,mem_clks_per_lpo 
+002c 207a0000 rtn blank 
+002d 6fe0c099 fetch 1 ,mem_lpm_mode 
+002e 207a0000 rtn blank 
+002f 6fe0c764 fetch 1 ,mem_ssp_enable 
+0030 203a0033 branch p_lpm_dispatch_next ,blank 
+0031 6fe0c6b9 fetch 1 ,mem_sp_local_key_invalid 
+0032 207a0000 rtn blank 
 
 p_lpm_dispatch_next:
-0032 6fe0c6ba fetch 1 ,mem_sc_calc 
-0033 247a0000 nrtn blank 
-0034 202014ea branch lpm_dispatch_next + 3 
+0033 6fe0c6ba fetch 1 ,mem_sc_calc 
+0034 247a0000 nrtn blank 
+0035 202014ea branch lpm_dispatch_next + 3 
 
 p_adc_init_data:
-0035 da20099e arg mem_temp_block2 ,rega 
-0036 d840000c arg 12 ,temp 
-0037 58000030 setarg efuse_offset_adc_param 
-0038 20405e63 call efuse_read_data 
-0039 202060bf branch adc_init_data + 6 
+0036 da20099e arg mem_temp_block2 ,rega 
+0037 d840000c arg 12 ,temp 
+0038 58000030 setarg efuse_offset_adc_param 
+0039 20405e63 call efuse_read_data 
+003a 202060bf branch adc_init_data + 6 
 
 p_enable_adc:
-003a 6a508a12 fetchr regb ,1 ,core_rf_ldo_cfg6 
-003b 708a123d jam 0x3d ,core_rf_ldo_cfg6 
-003c 708a11aa jam 0xaa ,core_rf_ldo_cfg5 
-003d 708a0a0c jam 0x0c ,core_rf_ldo_en0 
-003e 6ff08a09 fetch 1 ,core_clkpll_cfg6 
-003f 79207e07 set1 7 ,pdata 
-0040 67f08a09 store 1 ,core_clkpll_cfg6 
-0041 708a0b04 jam 0x04 ,core_rf_ldo_en1 
-0042 2000003c nop 60 
-0043 708a1600 jam 0 ,core_syn_en 
-0044 708a1706 jam 6 ,core_rx_en0 
-0045 2040611a call read_adc_mode 
-0046 67f08a97 store 1 ,core_gpadc_ctrl 
-0047 7080dc03 jam 0x03 ,core_sum_ctrl 
-0048 2000003c nop 60 
-0049 6ff08053 fetch 1 ,core_sum_en 
-004a 79207e07 set1 7 ,pdata 
-004b 67f08053 store 1 ,core_sum_en 
-004c 200003e8 nop 1000 
-004d 6ff10150 fetch 2 ,core_adc_sum 
-004e 67e144a2 store 2 ,mem_adc_current_value 
-004f 6ff08053 fetch 1 ,core_sum_en 
-0050 793ffe07 set0 7 ,pdata 
-0051 67f08053 store 1 ,core_sum_en 
-0052 708a9700 jam 0 ,core_gpadc_ctrl 
-0053 62508a12 storer regb ,1 ,core_rf_ldo_cfg6 
-0054 20600000 rtn 
+003b 6a508a12 fetchr regb ,1 ,core_rf_ldo_cfg6 
+003c 708a123d jam 0x3d ,core_rf_ldo_cfg6 
+003d 708a11aa jam 0xaa ,core_rf_ldo_cfg5 
+003e 708a0a0c jam 0x0c ,core_rf_ldo_en0 
+003f 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+0040 79207e07 set1 7 ,pdata 
+0041 67f08a09 store 1 ,core_clkpll_cfg6 
+0042 708a0b04 jam 0x04 ,core_rf_ldo_en1 
+0043 2000003c nop 60 
+0044 708a1600 jam 0 ,core_syn_en 
+0045 708a1706 jam 6 ,core_rx_en0 
+0046 2040611a call read_adc_mode 
+0047 67f08a97 store 1 ,core_gpadc_ctrl 
+0048 7080dc03 jam 0x03 ,core_sum_ctrl 
+0049 2000003c nop 60 
+004a 6ff08053 fetch 1 ,core_sum_en 
+004b 79207e07 set1 7 ,pdata 
+004c 67f08053 store 1 ,core_sum_en 
+004d 200003e8 nop 1000 
+004e 6ff10150 fetch 2 ,core_adc_sum 
+004f 67e144a2 store 2 ,mem_adc_current_value 
+0050 6ff08053 fetch 1 ,core_sum_en 
+0051 793ffe07 set0 7 ,pdata 
+0052 67f08053 store 1 ,core_sum_en 
+0053 708a9700 jam 0 ,core_gpadc_ctrl 
+0054 62508a12 storer regb ,1 ,core_rf_ldo_cfg6 
+0055 20600000 rtn 
 
 p_mouse_adc_read_start:
-0055 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
-0056 247a0000 nrtn blank 
-0057 2040003a call p_enable_adc 
-0058 20203ebb branch mouse_adc_read_start + 3 
+0056 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
+0057 247a0000 nrtn blank 
+0058 2040003b call p_enable_adc 
+0059 20203ebb branch mouse_adc_read_start + 3 
 
 p_app_evt_100ms_loop:
-0059 6fe0830d fetch 1 ,mem_app_evt_timer_count 
-005a 207a0000 rtn blank 
-005b 1fe0ffff increase -1 ,pdata 
-005c 67e0830d store 1 ,mem_app_evt_timer_count 
-005d 204077c5 call ui_button_polling 
-005e 204031e3 call app_lpm_wake_auto_lock_timer 
-005f 204031a4 call app_unsniff_delay_timer 
-0060 204031aa call app_discovery_timer 
-0061 20405cdc call flash_write_spi_sm_timer 
-0062 6fe1446f fetch 2 ,mem_cb_event_timer 
-0063 20407e05 call callback_func 
-0064 20200059 branch p_app_evt_100ms_loop 
+005a 6fe0830d fetch 1 ,mem_app_evt_timer_count 
+005b 207a0000 rtn blank 
+005c 1fe0ffff increase -1 ,pdata 
+005d 67e0830d store 1 ,mem_app_evt_timer_count 
+005e 204077c5 call ui_button_polling 
+005f 204031e3 call app_lpm_wake_auto_lock_timer 
+0060 204031a4 call app_unsniff_delay_timer 
+0061 204031aa call app_discovery_timer 
+0062 20405cdc call flash_write_spi_sm_timer 
+0063 6fe1446f fetch 2 ,mem_cb_event_timer 
+0064 20407e05 call callback_func 
+0065 2020005a branch p_app_evt_100ms_loop 
 
 p_initialize_radio_cont:
-0065 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
-0066 2040126a call initialize_syn_afc_cfg1 
-0067 20401271 call initialize_rf_ldo_cfg1 
-0068 20401277 call initialize_rc_cal 
-0069 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
-006a 708a0305 jam 5 ,core_clkpll_cfg0 
-006b 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
-006c 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
-006d 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
-006e 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
-006f 2020125d branch initialize_radio_cont + 8 
+0066 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
+0067 2040126a call initialize_syn_afc_cfg1 
+0068 20401271 call initialize_rf_ldo_cfg1 
+0069 20401277 call initialize_rc_cal 
+006a 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
+006b 708a0305 jam 5 ,core_clkpll_cfg0 
+006c 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
+006d 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
+006e 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
+006f 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
+0070 2020125d branch initialize_radio_cont + 8 
 
 p_init_param:
-0070 70008000 jam 0 ,mem_lmo_tid2 
-0071 202013b7 branch init_param_next + 1 
+0071 70008000 jam 0 ,mem_lmo_tid2 
+0072 202013b7 branch init_param_next + 1 
 
 p_app_init:
 
 p_mouse_init:
-0072 20406df3 call enable_authrom 
-0073 20403bf0 call mouse_setting_config 
-0074 204041a7 call mouse_init_sunt 
-0075 20758000 rtn wake 
-0076 2040408e call mouse_dpi_config 
-0077 20203bc5 branch mouse_init + 4 
+0073 20406df3 call enable_authrom 
+0074 20403bf0 call mouse_setting_config 
+0075 204041a7 call mouse_init_sunt 
+0076 20758000 rtn wake 
+0077 2040408e call mouse_dpi_config 
+0078 20203bc5 branch mouse_init + 4 
 
 p_mouse_app_enter_hibernate:
-0078 58000006 setarg pan_reg_config 
-0079 20405b0d call twspi_read 
-007a c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
-007b 20203e21 branch mouse_app_enter_hibernate + 1 
+0079 58000006 setarg pan_reg_config 
+007a 20405b0d call twspi_read 
+007b c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
+007c 20203e21 branch mouse_app_enter_hibernate + 1 
 
 p_mouse_setgpio_hibernate:
-007c 204042e9 call mouse_set_sdio_high 
-007d 20407fdc call clear_wake 
-007e 20404015 call mouse_before_hibernate_wheel_gpio_set 
-007f 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-0080 20406069 call gpio_out_active 
-0081 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-0082 20406042 call gpio_clr_wake 
-0083 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-0084 d840003f arg gpcfg_output_high ,temp 
-0085 20406093 call gpio_config_function_int 
-0086 20203e36 branch mouse_setgpio_hibernate + 3 
+007d 204042e9 call mouse_set_sdio_high 
+007e 20407fdc call clear_wake 
+007f 20404015 call mouse_before_hibernate_wheel_gpio_set 
+0080 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+0081 20406069 call gpio_out_active 
+0082 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+0083 20406042 call gpio_clr_wake 
+0084 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
+0085 d840003f arg gpcfg_output_high ,temp 
+0086 20406093 call gpio_config_function_int 
+0087 20203e36 branch mouse_setgpio_hibernate + 3 
 
 p_mouse_lpm_before_common:
-0087 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
-0088 20406050 call gpio_config_input 
-0089 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
-008a 20406050 call gpio_config_input 
-008b 20403f88 call mouse_wheel_check 
-008c 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
-008d d840003f arg gpcfg_output_high ,temp 
-008e 20406093 call gpio_config_function_int 
-008f 20203e44 branch mouse_lpm_before_common_next 
+0088 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
+0089 20406050 call gpio_config_input 
+008a 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
+008b 20406050 call gpio_config_input 
+008c 20403f88 call mouse_wheel_check 
+008d 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
+008e d840003f arg gpcfg_output_high ,temp 
+008f 20406093 call gpio_config_function_int 
+0090 20203e44 branch mouse_lpm_before_common_next 
 
 p_mouse_priority_bb_event:
-0090 1a627e00 copy regc ,pdata 
-0091 c01e00b1 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-0092 c00200aa beq bt_evt_reconn_failed ,p_mouse_bb_event_reconn_failed 
-0093 c00980aa beq bt_evt_reconn_page_timeout ,p_mouse_bb_event_reconn_failed 
-0094 c0190097 beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
-0095 c022009e beq bt_evt_le_parse_conn_param_accepted ,p_mouse_le_parse_conn_param_accepted 
-0096 20204336 branch mouse_priority_bb_event + 2 
+0091 1a627e00 copy regc ,pdata 
+0092 c01e00b2 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+0093 c00200ab beq bt_evt_reconn_failed ,p_mouse_bb_event_reconn_failed 
+0094 c00980ab beq bt_evt_reconn_page_timeout ,p_mouse_bb_event_reconn_failed 
+0095 c0190098 beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
+0096 c022009f beq bt_evt_le_parse_conn_param_accepted ,p_mouse_le_parse_conn_param_accepted 
+0097 20204336 branch mouse_priority_bb_event + 2 
 
 p_mouse_le_ll_start_encryt:
-0097 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-0098 c000809b beq 1 ,p_mouse_le_ll_reconn_start_encryt 
-0099 704b7614 jam 20 ,mem_le_start_encrypt_timer 
-009a 20204373 branch mouse_le_ll_enable_start_enc_flag 
+0098 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+0099 c000809c beq 1 ,p_mouse_le_ll_reconn_start_encryt 
+009a 704b7614 jam 20 ,mem_le_start_encrypt_timer 
+009b 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_ll_reconn_start_encryt:
-009b 2040436c call mouse_updata_le_param 
-009c 704b7605 jam 5 ,mem_le_start_encrypt_timer 
-009d 20204373 branch mouse_le_ll_enable_start_enc_flag 
+009c 2040436c call mouse_updata_le_param 
+009d 704b7605 jam 5 ,mem_le_start_encrypt_timer 
+009e 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_parse_conn_param_accepted:
-009e 6fe082c1 fetch 1 ,mem_le_new_conninterval 
-009f 1fe67c0c sub pdata ,le_interval_15ms ,null 
-00a0 24214384 nbranch mouse_le_conn_param_lpm_disable ,positive 
-00a1 67e14372 store 2 ,mem_le_interval_min 
-00a2 67e14374 store 2 ,mem_le_interval_min + 2 
-00a3 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
-00a4 6848cb8a fetcht 1 ,mem_lpm_mult_init 
-00a5 98467c00 isub temp ,null 
-00a6 2021439a branch mouse_le_lpm_mult_reinit ,positive 
-00a7 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
-00a8 67e0cb8a store 1 ,mem_lpm_mult_init 
-00a9 20204386 branch mouse_le_conn_param_lpm_enable 
+009f 6fe082c1 fetch 1 ,mem_le_new_conninterval 
+00a0 1fe67c0c sub pdata ,le_interval_15ms ,null 
+00a1 24214384 nbranch mouse_le_conn_param_lpm_disable ,positive 
+00a2 67e14372 store 2 ,mem_le_interval_min 
+00a3 67e14374 store 2 ,mem_le_interval_min + 2 
+00a4 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+00a5 6848cb8a fetcht 1 ,mem_lpm_mult_init 
+00a6 98467c00 isub temp ,null 
+00a7 2021439a branch mouse_le_lpm_mult_reinit ,positive 
+00a8 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+00a9 67e0cb8a store 1 ,mem_lpm_mult_init 
+00aa 20204386 branch mouse_le_conn_param_lpm_enable 
 
 p_mouse_bb_event_reconn_failed:
-00aa 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-00ab c07fc2f8 beq 0xff ,mouse_buletooth_fast_conn_end 
-00ac 6fe1478c fetch 2 ,mem_ui_state_map 
-00ad c3860000 rtnbit1 ui_state_btn_down 
-00ae c3830000 rtnbit1 ui_state_bt_discovery 
-00af c3858000 rtnbit1 ui_state_ble_adv 
-00b0 20203e20 branch mouse_app_enter_hibernate 
+00ab 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+00ac c07fc2f8 beq 0xff ,mouse_buletooth_fast_conn_end 
+00ad 6fe1478c fetch 2 ,mem_ui_state_map 
+00ae c3860000 rtnbit1 ui_state_btn_down 
+00af c3830000 rtnbit1 ui_state_bt_discovery 
+00b0 c3858000 rtnbit1 ui_state_ble_adv 
+00b1 20203e20 branch mouse_app_enter_hibernate 
 
 p_mouse_24g_attempt_success:
-00b1 6fe2483c fetch 4 ,mem_24g_addr 
-00b2 67e24891 store 4 ,mem_24g_receiver_addr 
-00b3 67e24993 store 4 ,mem_mouse_24g_addr 
-00b4 204048c6 call mouse_device_poweron_timer_init 
-00b5 2020484e branch mouse_24g_attempt_success 
+00b2 6fe2483c fetch 4 ,mem_24g_addr 
+00b3 67e24891 store 4 ,mem_24g_receiver_addr 
+00b4 67e24993 store 4 ,mem_mouse_24g_addr 
+00b5 204048c6 call mouse_device_poweron_timer_init 
+00b6 2020484e branch mouse_24g_attempt_success 
 
 p_mouse_seting_dpi:
-00b6 2040408f call mouse_setting_dpi_4_level 
-00b7 204000b9 call p_mouse_dpi_led_blink_delay 
-00b8 20204098 branch mouse_seting_sensor_type 
+00b7 2040408f call mouse_setting_dpi_4_level 
+00b8 204000ba call p_mouse_dpi_led_blink_delay 
+00b9 20204098 branch mouse_seting_sensor_type 
 
 p_mouse_dpi_led_blink_delay:
-00b9 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00ba c17f8000 rtneq gpio_disable 
-00bb 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-00bc 247a0000 nrtn blank 
-00bd 6fe14883 fetch 2 ,mem_24g_pair_timeout 
-00be 247a0000 nrtn blank 
-00bf 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
-00c0 247a0000 nrtn blank 
-00c1 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-00c2 247a0000 nrtn blank 
-00c3 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-00c4 203a00d7 branch p_mouse_dpi_led_blink_init ,blank 
-00c5 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
-00c6 20600000 rtn 
+00ba 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+00bb c17f8000 rtneq gpio_disable 
+00bc 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+00bd 247a0000 nrtn blank 
+00be 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+00bf 247a0000 nrtn blank 
+00c0 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+00c1 247a0000 nrtn blank 
+00c2 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+00c3 247a0000 nrtn blank 
+00c4 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+00c5 203a00d8 branch p_mouse_dpi_led_blink_init ,blank 
+00c6 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
+00c7 20600000 rtn 
 
 p_mouse_bb_event_timer:
-00c7 20403e9b call mouse_adc_read 
-00c8 20404956 call mouse_low_voltage_led_timer 
-00c9 2040232b call g24_pair_timeout_timer 
-00ca 20402556 call g24_reconn_timeout_timer 
-00cb 204047cd call mouse_24g_long_sleep_param_update_timer 
-00cc 204048be call mouse_device_poweron_timer 
-00cd 204000d4 call p_mouse_dpi_led_blink_delay_timer 
-00ce 2040407c call mouse_dpi_key_check_long_press 
-00cf 204044cc call mouse_bt_discovery_check 
-00d0 204000f4 call p_mouse_commbination_key_process 
-00d1 204044ff call mouse_check_discovery_timeout_timer 
-00d2 204000ec call p_mouse_check_direct_timeout_timer 
-00d3 202044c2 branch mouse_bb_event_timer + 13 
+00c8 20403e9b call mouse_adc_read 
+00c9 20404956 call mouse_low_voltage_led_timer 
+00ca 2040232b call g24_pair_timeout_timer 
+00cb 20402556 call g24_reconn_timeout_timer 
+00cc 204047cd call mouse_24g_long_sleep_param_update_timer 
+00cd 204048be call mouse_device_poweron_timer 
+00ce 204000d5 call p_mouse_dpi_led_blink_delay_timer 
+00cf 2040407c call mouse_dpi_key_check_long_press 
+00d0 204044cc call mouse_bt_discovery_check 
+00d1 204000f5 call p_mouse_commbination_key_process 
+00d2 204044ff call mouse_check_discovery_timeout_timer 
+00d3 204000ed call p_mouse_check_direct_timeout_timer 
+00d4 202044c2 branch mouse_bb_event_timer + 13 
 
 p_mouse_dpi_led_blink_delay_timer:
-00d4 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-00d5 da4000d7 arg p_mouse_dpi_led_blink_init ,regb 
-00d6 2020318a branch timer_single_step 
+00d5 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+00d6 da4000d8 arg p_mouse_dpi_led_blink_init ,regb 
+00d7 2020318a branch timer_single_step 
 
 p_mouse_dpi_led_blink_init:
-00d7 6fe0c927 fetch 1 ,mem_config_sensor_type 
-00d8 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-00d9 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-00da 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00db 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-00dc 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-00dd 67e14930 store 2 ,mem_mouse_on_time 
-00de 67e14932 store 2 ,mem_mouse_off_time 
-00df da200000 arg 0 ,rega 
-00e0 6848c992 fetcht 1 ,mem_mouse_dpi 
-00e1 18408402 increase 2 ,temp 
-00e2 18467c03 sub temp ,3 ,null 
-00e3 204100e6 call p_mouse_dpi_led_blink_init_level_4 ,positive 
-00e4 244100ea ncall p_mouse_dpi_led_blink_count_clean ,positive 
-00e5 202048ff branch mouse_dpi_led_blink_init_end 
+00d8 6fe0c927 fetch 1 ,mem_config_sensor_type 
+00d9 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
+00da c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
+00db 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+00dc 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
+00dd 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
+00de 67e14930 store 2 ,mem_mouse_on_time 
+00df 67e14932 store 2 ,mem_mouse_off_time 
+00e0 da200000 arg 0 ,rega 
+00e1 6848c992 fetcht 1 ,mem_mouse_dpi 
+00e2 18408402 increase 2 ,temp 
+00e3 18467c03 sub temp ,3 ,null 
+00e4 204100e7 call p_mouse_dpi_led_blink_init_level_4 ,positive 
+00e5 244100eb ncall p_mouse_dpi_led_blink_count_clean ,positive 
+00e6 202048ff branch mouse_dpi_led_blink_init_end 
 
 p_mouse_dpi_led_blink_init_level_4:
-00e6 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00e7 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-00e8 18408401 increase 1 ,temp 
-00e9 20600000 rtn 
+00e7 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00e8 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+00e9 18408401 increase 1 ,temp 
+00ea 20600000 rtn 
 
 p_mouse_dpi_led_blink_count_clean:
-00ea 184085fd increase -3 ,temp 
-00eb 20600000 rtn 
+00eb 184085fd increase -3 ,temp 
+00ec 20600000 rtn 
 
 p_mouse_check_direct_timeout_timer:
-00ec da604b77 arg mem_mouse_direct_timer ,regc 
-00ed da4000ef arg p_mouse_check_direct_timeout ,regb 
-00ee 20204506 branch mouse_check_direct_timeout_timer + 2 
+00ed da604b77 arg mem_mouse_direct_timer ,regc 
+00ee da4000f0 arg p_mouse_check_direct_timeout ,regb 
+00ef 20204506 branch mouse_check_direct_timeout_timer + 2 
 
 p_mouse_check_direct_timeout:
-00ef 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-00f0 c07fc2f8 beq 0xff ,mouse_buletooth_fast_conn_end 
-00f1 6fe0cab0 fetch 1 ,mem_reconn_times 
-00f2 243a470e nbranch mouse_polling_device ,blank 
-00f3 20203e20 branch mouse_app_enter_hibernate 
+00f0 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+00f1 c07fc2f8 beq 0xff ,mouse_buletooth_fast_conn_end 
+00f2 6fe0cab0 fetch 1 ,mem_reconn_times 
+00f3 243a470e nbranch mouse_polling_device ,blank 
+00f4 20203e20 branch mouse_app_enter_hibernate 
 
 p_mouse_commbination_key_process:
-00f4 6fe0c938 fetch 1 ,mem_device_flag 
-00f5 c00000fa beq mode_24g_device ,p_mouse_24g_commbination_key_process 
-00f6 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00f7 c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
-00f8 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
-00f9 202000fd branch p_mouse_commbination_key_start 
+00f5 6fe0c938 fetch 1 ,mem_device_flag 
+00f6 c00000fb beq mode_24g_device ,p_mouse_24g_commbination_key_process 
+00f7 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00f8 c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
+00f9 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
+00fa 202000fe branch p_mouse_commbination_key_start 
 
 p_mouse_24g_commbination_key_process:
-00fa 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00fb c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
-00fc 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
+00fb 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00fc c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
+00fd 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
 
 p_mouse_commbination_key_start:
-00fd 6048cb9d storet 1 ,mem_mouse_commbination_key 
-00fe 20404115 call mouse_check_key_gpio 
-00ff 1fe17e07 and pdata ,0x07 ,pdata 
-0100 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
-0101 98467c00 isub temp ,null 
-0102 20228104 branch p_mouse_commbination_key_down ,zero 
-0103 202044eb branch mouse_commbination_key_up 
+00fe 6048cb9d storet 1 ,mem_mouse_commbination_key 
+00ff 20404115 call mouse_check_key_gpio 
+0100 1fe17e07 and pdata ,0x07 ,pdata 
+0101 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
+0102 98467c00 isub temp ,null 
+0103 20228105 branch p_mouse_commbination_key_down ,zero 
+0104 202044eb branch mouse_commbination_key_up 
 
 p_mouse_commbination_key_down:
-0104 204044f6 call mouse_combination_ui_timer 
-0105 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
-0106 c1008000 rtneq commbination_key_state_down 
-0107 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
-0108 20600000 rtn 
+0105 204044f6 call mouse_combination_ui_timer 
+0106 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
+0107 c1008000 rtneq commbination_key_state_down 
+0108 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
+0109 20600000 rtn 
 
 p_mouse_start_discovery:
-0109 6fe1478c fetch 2 ,mem_ui_state_map 
-010a 2feffe0b isolate1 ui_state_ble_adv ,pdata 
-010b 2040c581 call mouse_stop_le_adv ,true 
-010c 6fe1478c fetch 2 ,mem_ui_state_map 
-010d 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
-010e 2040c322 call mouse_cancel_reconnect ,true 
-010f 20204554 branch mouse_start_discovery + 1 
+010a 6fe1478c fetch 2 ,mem_ui_state_map 
+010b 2feffe0b isolate1 ui_state_ble_adv ,pdata 
+010c 2040c581 call mouse_stop_le_adv ,true 
+010d 6fe1478c fetch 2 ,mem_ui_state_map 
+010e 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
+010f 2040c322 call mouse_cancel_reconnect ,true 
+0110 20204554 branch mouse_start_discovery + 1 
 
 p_ui_timer_check:
-0110 6fe0cbe2 fetch 1 ,mem_power_on_flag 
-0111 245a7861 ncall ui_timer_init ,blank 
-0112 704be200 jam 0 ,mem_power_on_flag 
-0113 20207851 branch ui_timer_check + 1 
+0111 6fe0cbe2 fetch 1 ,mem_power_on_flag 
+0112 245a7861 ncall ui_timer_init ,blank 
+0113 704be200 jam 0 ,mem_power_on_flag 
+0114 20207851 branch ui_timer_check + 1 
+
+p_hid_rx_process:
+0115 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+0116 1fe20c00 copy pdata ,contr 
+0117 efe08006 ifetch 1 ,contr 
+0118 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
+0119 1fe1040f and pdata ,0x0f ,temp 
+011a 1ff1fe00 rshift4 pdata ,pdata 
+011b c004811d beq hid_type_set_idle ,p_hid_rx_process_handshake 
+011c 20204d92 branch hid_rx_process + 6 
+
+p_hid_rx_process_handshake:
+011d da200001 arg 1 ,rega 
+011e 20404dc0 call hid_malloc_tx_buff 
+011f 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
+0120 e7e10005 istore 2 ,contw 
+0121 58000000 setarg 0 
+0122 e7e08005 istore 1 ,contw 
+0123 70095001 jam 1 ,mem_ui_data_txbuff_length 
+0124 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+0125 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
+0126 67e0c4e2 store 1 ,mem_hid_control_state 
+0127 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
+0128 20207871 branch ui_ipc_send_event 
 
 p_le_slave_match:
-0114 6fe0c3dd fetch 1 ,mem_le_md_count 
-0115 1fe0fe01 pincrease 1 
-0116 67e0c3dd store 1 ,mem_le_md_count 
-0117 c006165a beq le_md_max_count ,le_slave_cont 
-0118 2040191b call le_acknowledge 
-0119 2040196a call le_prepare_tx 
-011a 6fe082bd fetch 1 ,mem_le_tx_phy 
-011b 2040168b call le_enable_phy_by_pdata 
-011c 20401838 call le_transmit 
-011d 20201655 branch le_slave_match + 10 
+0129 6fe0c3dd fetch 1 ,mem_le_md_count 
+012a 1fe0fe01 pincrease 1 
+012b 67e0c3dd store 1 ,mem_le_md_count 
+012c c006165a beq le_md_max_count ,le_slave_cont 
+012d 2040191b call le_acknowledge 
+012e 2040196a call le_prepare_tx 
+012f 6fe082bd fetch 1 ,mem_le_tx_phy 
+0130 2040168b call le_enable_phy_by_pdata 
+0131 20401838 call le_transmit 
+0132 20201655 branch le_slave_match + 10 
 
 p_le_parse_l2cap:
-011e efe10006 ifetch 2 ,contr 
-011f c0020121 beq le_l2cap_cid_att ,p_le_parse_att 
-0120 202019e4 branch le_parse_l2cap + 10 
+0133 efe10006 ifetch 2 ,contr 
+0134 c0020136 beq le_l2cap_cid_att ,p_le_parse_att 
+0135 202019e4 branch le_parse_l2cap + 10 
 
 p_le_parse_att:
-0121 efe18006 ifetch 3 ,contr 
-0122 67e1c436 store 3 ,mem_le_att_opcode 
-0123 c0090125 beq attop_write_request ,p_le_parse_att_write_request 
-0124 20201cd3 branch le_parse_att + 2 
+0136 efe18006 ifetch 3 ,contr 
+0137 67e1c436 store 3 ,mem_le_att_opcode 
+0138 c009013a beq attop_write_request ,p_le_parse_att_write_request 
+0139 20201cd3 branch le_parse_att + 2 
 
 p_le_parse_att_write_request:
-0125 18c22200 copy contr ,rega 
-0126 6fe143d4 fetch 2 ,mem_le_l2cap_size 
-0127 1fe0a5fd add pdata ,-3 ,regb 
-0128 20401a25 call le_writeatt_cb 
-0129 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-012a c07f9e73 beq 0xff ,le_send_att_write_response_check_auth 
-012b 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-012c 203a1e73 branch le_send_att_write_response_check_auth ,blank 
-012d 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
-012e c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
-012f 5800001a setarg 0x001a 
-0130 68494437 fetcht 2 ,mem_le_att_handle 
-0131 98467c00 isub temp ,null 
-0132 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
-0133 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
-0134 20201ec9 branch le_send_att_error_response 
+013a 18c22200 copy contr ,rega 
+013b 6fe143d4 fetch 2 ,mem_le_l2cap_size 
+013c 1fe0a5fd add pdata ,-3 ,regb 
+013d 20401a25 call le_writeatt_cb 
+013e 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+013f c07f9e73 beq 0xff ,le_send_att_write_response_check_auth 
+0140 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+0141 203a1e73 branch le_send_att_write_response_check_auth ,blank 
+0142 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
+0143 c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
+0144 5800001a setarg 0x001a 
+0145 68494437 fetcht 2 ,mem_le_att_handle 
+0146 98467c00 isub temp ,null 
+0147 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
+0148 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
+0149 20201ec9 branch le_send_att_error_response 
 
 p_g24_lpm_wait:
-0135 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
-0136 245a26e1 ncall g24_transmit_by_interrupt_enable ,blank 
-0137 202026bc branch g24_lpm_wait + 1 
+014a 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
+014b 245a26e1 ncall g24_transmit_by_interrupt_enable ,blank 
+014c 202026bc branch g24_lpm_wait + 1 
 
 p_mouse_motion:
-0138 78547c00 disable user 
-0139 58000000 setarg 0 
-013a 67e348d1 store 6 ,mem_mouse_x 
-013b 20404240 call mouse_check_sensor_data 
-013c 2040408e call mouse_dpi_config 
-013d 20203f75 branch mouse_motion + 5 
+014d 78547c00 disable user 
+014e 58000000 setarg 0 
+014f 67e348d1 store 6 ,mem_mouse_x 
+0150 20404240 call mouse_check_sensor_data 
+0151 2040408e call mouse_dpi_config 
+0152 20203f75 branch mouse_motion + 5 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/public_3mode/program/patch.prog	(revision 512)
+++ /YC1308AC/branch/mouse_project/public_3mode/program/patch.prog	(working copy)
@@ -19,6 +19,7 @@
 	beq patch1a_6,p_mouse_priority_bb_event
 	beq patch1b_1,p_mouse_bb_event_timer
 	beq patch1b_2,p_mouse_start_discovery
+	beq patch1d_0,p_hid_rx_process
 	branch loop
 
 pf_patch_ext:
@@ -396,6 +397,30 @@
 	jam 0,mem_power_on_flag
 	branch ui_timer_check+1
 
+p_hid_rx_process:
+	fetch 2,mem_l2cap_payload_ptr
+	copy pdata,contr
+	ifetch 1,contr
+	store 1,mem_l2cap_rcv_hidtype
+	and pdata,0x0f,temp
+	rshift4 pdata,pdata //hidtype
+	beq hid_type_set_idle,p_hid_rx_process_handshake
+	branch hid_rx_process+6
+
+p_hid_rx_process_handshake:
+	arg 1,rega//payload length
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_ctrl_remote_cid
+	istore 2,contw
+	setarg 0
+	istore 1,contw
+	jam 1,mem_ui_data_txbuff_length
+	fetch 1,mem_hid_control_state
+	set1 l2cap_channel_hid_handshake_done,pdata
+	store 1,mem_hid_control_state
+	jam BT_EVT_HID_HANDSHAKE,mem_fifo_temp
+	branch ui_ipc_send_event
+
 
 p_le_slave_match:
 	fetch 1,mem_le_md_count
