Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/XZR/Standard_2.4G_First/output/eeprom.dat	(revision 3792)
+++ /YC1308AC/branch/mouse_project/XZR/Standard_2.4G_First/output/eeprom.dat	(working copy)
@@ -2,68 +2,72 @@
 02
 aa
 55
-5e
+82
 06
 c2
 84
 00
-10
+11
 c0
 00
 00
-15
+16
 c0
 45
 80
-72
+7b
 c0
 4f
 80
-7d
+86
 c0
 57
 00
-56
+5f
 c0
 62
 00
-58
+61
 c0
 63
 80
-7f
+88
 c0
 64
 80
-83
+8c
 c0
 65
 00
-8e
+97
 c0
 67
 01
-59
+62
+c0
+67
+80
+1a
 c0
 68
 00
-bd
+c6
 c0
 68
 81
-5f
+68
 c0
 6b
 00
-97
+a0
 c0
 6c
 80
-ce
+d7
 c0
 74
 01
-16
+1f
 20
 20
 13
@@ -71,19 +75,19 @@
 c0
 50
 81
-2a
+33
 c0
 60
 01
-34
+3d
 c0
 75
 80
-19
+22
 c0
 76
 80
-28
+31
 20
 20
 13
@@ -104,6 +108,38 @@
 20
 08
 04
+20
+40
+40
+72
+20
+74
+00
+00
+6f
+e0
+c9
+92
+1f
+e0
+fe
+01
+1f
+e1
+7e
+03
+67
+e0
+c9
+92
+20
+40
+40
+95
+20
+20
+46
+43
 68
 48
 c8
@@ -119,7 +155,7 @@
 24
 21
 00
-25
+2e
 18
 40
 84
@@ -155,7 +191,7 @@
 20
 40
 00
-4d
+56
 20
 40
 27
@@ -199,7 +235,7 @@
 c5
 13
 00
-32
+3b
 6f
 e0
 c8
@@ -211,7 +247,7 @@
 24
 21
 00
-4c
+55
 6f
 e0
 c8
@@ -223,7 +259,7 @@
 24
 21
 00
-3a
+43
 6f
 e0
 c8
@@ -231,7 +267,7 @@
 c0
 00
 00
-4d
+56
 20
 60
 00
@@ -267,7 +303,7 @@
 c5
 13
 00
-43
+4c
 6f
 e0
 c8
@@ -299,7 +335,7 @@
 c0
 01
 00
-54
+5d
 c0
 00
 a7
@@ -319,7 +355,7 @@
 c0
 01
 80
-53
+5c
 1f
 e0
 fe
@@ -335,11 +371,11 @@
 c0
 01
 00
-54
+5d
 20
 20
 00
-54
+5d
 70
 41
 e8
@@ -359,7 +395,7 @@
 20
 40
 00
-6a
+73
 da
 20
 49
@@ -391,7 +427,7 @@
 c0
 19
 80
-63
+6c
 c0
 1a
 3d
@@ -615,23 +651,23 @@
 c0
 1e
 00
-b8
+c1
 c0
 02
 00
-b1
+ba
 c0
 09
 80
-b1
+ba
 c0
 19
 00
-9e
+a7
 c0
 22
 00
-a5
+ae
 20
 20
 43
@@ -643,7 +679,7 @@
 c0
 00
 80
-a2
+ab
 70
 4b
 76
@@ -767,7 +803,7 @@
 20
 40
 00
-c0
+c9
 20
 20
 40
@@ -819,7 +855,7 @@
 20
 3a
 00
-dc
+e5
 67
 e0
 cb
@@ -855,19 +891,19 @@
 20
 40
 00
-d9
+e2
 20
 40
 00
-f1
+fa
 20
 40
 44
 cc
 20
 40
-00
-fc
+01
+05
 20
 20
 44
@@ -879,7 +915,7 @@
 da
 40
 00
-dc
+e5
 20
 20
 31
@@ -935,11 +971,11 @@
 20
 41
 00
-eb
+f4
 24
 41
 00
-ef
+f8
 20
 20
 48
@@ -979,7 +1015,7 @@
 c2
 9b
 00
-f5
+fe
 20
 60
 00
@@ -998,8 +1034,8 @@
 9b
 da
 40
-00
-fa
+01
+03
 20
 20
 31
@@ -1011,7 +1047,7 @@
 20
 20
 01
-0e
+17
 6f
 e4
 4b
@@ -1047,7 +1083,7 @@
 20
 22
 81
-06
+0f
 20
 20
 44
@@ -1055,7 +1091,7 @@
 20
 40
 01
-08
+11
 20
 20
 44
@@ -1067,7 +1103,7 @@
 da
 40
 01
-0e
+17
 20
 40
 31
@@ -1143,7 +1179,7 @@
 c0
 04
 81
-1e
+27
 20
 20
 4d
@@ -1243,7 +1279,7 @@
 c0
 02
 01
-37
+40
 20
 20
 19
@@ -1259,11 +1295,11 @@
 c0
 05
 01
-3c
+45
 c0
 09
 01
-49
+52
 20
 20
 1c
@@ -1283,7 +1319,7 @@
 c2
 81
 81
-44
+4d
 6f
 e1
 44
@@ -1311,11 +1347,11 @@
 24
 22
 81
-40
+49
 24
 34
 01
-40
+49
 20
 20
 1e
@@ -1423,23 +1459,23 @@
 20
 40
 01
-68
+71
 20
 40
 01
-6d
+76
 20
 40
 01
-72
+7b
 20
 40
 01
-77
+80
 20
 40
 01
-84
+8d
 20
 20
 41
@@ -1451,7 +1487,7 @@
 20
 40
 01
-91
+9a
 20
 40
 41
@@ -1471,7 +1507,7 @@
 20
 40
 01
-91
+9a
 20
 40
 41
@@ -1491,7 +1527,7 @@
 20
 40
 01
-91
+9a
 20
 40
 41
@@ -1535,7 +1571,7 @@
 c0
 7f
 81
-80
+89
 20
 20
 41
@@ -1547,7 +1583,7 @@
 20
 40
 01
-94
+9d
 68
 48
 c9
@@ -1587,7 +1623,7 @@
 c0
 7f
 81
-8d
+96
 20
 20
 41
@@ -1599,7 +1635,7 @@
 20
 40
 01
-94
+9d
 68
 48
 c9
@@ -1632,8 +1668,8 @@
 20
 60
 93
-14
-78
+2f
+0d
 aa
 55
 40
@@ -1665,7 +1701,7 @@
 00
 00
 90
-46
+c6
 43
 02
 00
@@ -2778,46 +2814,10 @@
 aa
 aa
 55
-1c
+9c
 52
-18
-bc
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+a4
+45
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-e7
-f9
+9a
+4e
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/XZR/Standard_2.4G_First/output/program.lis	(revision 3792)
+++ /YC1308AC/branch/mouse_project/XZR/Standard_2.4G_First/output/program.lis	(working copy)
@@ -1,542 +1,553 @@
               include "bt_format "
               org 0x0000
-0000 c2840010 bbit1 8 ,pf_patch_ext 
-0001 c0000015 beq patch00_0 ,p_soft_reset 
-0002 c0458072 beq patch11_3 ,p_initialize_radio_cont 
-0003 c04f807d beq patch13_7 ,p_init_param 
-0004 c0570056 beq patch15_6 ,p_app_init 
-0005 c0620058 beq patch18_4 ,p_mouse_start_reconnect_device 
-0006 c063807f beq patch18_7 ,p_mouse_app_enter_hibernate 
-0007 c0648083 beq patch19_1 ,p_mouse_setgpio_hibernate 
-0008 c065008e beq patch19_2 ,p_mouse_lpm_before_common 
-0009 c0670159 beq patch19_6 ,p_mouse_motion 
-000a c06800bd beq patch1a_0 ,p_mouse_seting_dpi 
-000b c068815f beq patch1a_1 ,p_mouse_check_key_gpio 
-000c c06b0097 beq patch1a_6 ,p_mouse_priority_bb_event 
-000d c06c80ce beq patch1b_1 ,p_mouse_bb_event_timer 
-000e c0740116 beq patch1d_0 ,p_hid_rx_process 
-000f 2020137c branch loop 
+0000 c2840011 bbit1 8 ,pf_patch_ext 
+0001 c0000016 beq patch00_0 ,p_soft_reset 
+0002 c045807b beq patch11_3 ,p_initialize_radio_cont 
+0003 c04f8086 beq patch13_7 ,p_init_param 
+0004 c057005f beq patch15_6 ,p_app_init 
+0005 c0620061 beq patch18_4 ,p_mouse_start_reconnect_device 
+0006 c0638088 beq patch18_7 ,p_mouse_app_enter_hibernate 
+0007 c064808c beq patch19_1 ,p_mouse_setgpio_hibernate 
+0008 c0650097 beq patch19_2 ,p_mouse_lpm_before_common 
+0009 c0670162 beq patch19_6 ,p_mouse_motion 
+000a c067801a beq patch19_7 ,p_mouse_dpi_process 
+000b c06800c6 beq patch1a_0 ,p_mouse_seting_dpi 
+000c c0688168 beq patch1a_1 ,p_mouse_check_key_gpio 
+000d c06b00a0 beq patch1a_6 ,p_mouse_priority_bb_event 
+000e c06c80d7 beq patch1b_1 ,p_mouse_bb_event_timer 
+000f c074011f beq patch1d_0 ,p_hid_rx_process 
+0010 2020137c branch loop 
 
 pf_patch_ext:
-0010 c050812a beq patch34_1 ,p_le_slave_match 
-0011 c0600134 beq patch38_0 ,p_le_parse_l2cap 
-0012 c0758019 beq patch3d_3 ,p_g24_transmit_hop_process 
-0013 c0768028 beq patch3d_5 ,p_power_ctrl_start 
-0014 2020137c branch loop 
+0011 c0508133 beq patch34_1 ,p_le_slave_match 
+0012 c060013d beq patch38_0 ,p_le_parse_l2cap 
+0013 c0758022 beq patch3d_3 ,p_g24_transmit_hop_process 
+0014 c0768031 beq patch3d_5 ,p_power_ctrl_start 
+0015 2020137c branch loop 
 
 p_soft_reset:
-0015 20800000 clear_stack 
-0016 204030f3 call app_param_init 
-0017 20403bfd call mouse_xtal_init 
-0018 20200804 branch soft_reset + 3 
+0016 20800000 clear_stack 
+0017 204030f3 call app_param_init 
+0018 20403bfd call mouse_xtal_init 
+0019 20200804 branch soft_reset + 3 
+
+p_mouse_dpi_process:
+001a 20404072 call mouse_dpi_ghost_check 
+001b 20740000 rtn user 
+001c 6fe0c992 fetch 1 ,mem_mouse_dpi 
+001d 1fe0fe01 increase 1 ,pdata 
+001e 1fe17e03 and pdata ,0x03 ,pdata 
+001f 67e0c992 store 1 ,mem_mouse_dpi 
+0020 20404095 call mouse_seting_dpi 
+0021 20204643 branch mouse_store_eerpom_dpi 
 
 p_g24_transmit_hop_process:
-0019 6848c8a6 fetcht 1 ,mem_24g_retry 
-001a 6fe0c8c6 fetch 1 ,mem_24g_fast_hop_count 
-001b 98467c00 isub temp ,null 
-001c 24210025 nbranch p_g24_tx_fast_hop ,positive 
-001d 18408401 increase 1 ,temp 
-001e 6048c8a6 storet 1 ,mem_24g_retry 
-001f 6fe0c8c6 fetch 1 ,mem_24g_fast_hop_count 
-0020 c002a68b beq 5 ,g24_transmit_hop_process_4ms 
-0021 6fe0c8a6 fetch 1 ,mem_24g_retry 
-0022 c0032696 beq 6 ,g24_hop_ch_disable 
-0023 c0062696 beq 12 ,g24_hop_ch_disable 
-0024 20600000 rtn 
+0022 6848c8a6 fetcht 1 ,mem_24g_retry 
+0023 6fe0c8c6 fetch 1 ,mem_24g_fast_hop_count 
+0024 98467c00 isub temp ,null 
+0025 2421002e nbranch p_g24_tx_fast_hop ,positive 
+0026 18408401 increase 1 ,temp 
+0027 6048c8a6 storet 1 ,mem_24g_retry 
+0028 6fe0c8c6 fetch 1 ,mem_24g_fast_hop_count 
+0029 c002a68b beq 5 ,g24_transmit_hop_process_4ms 
+002a 6fe0c8a6 fetch 1 ,mem_24g_retry 
+002b c0032696 beq 6 ,g24_hop_ch_disable 
+002c c0062696 beq 12 ,g24_hop_ch_disable 
+002d 20600000 rtn 
 
 p_g24_tx_fast_hop:
-0025 2040004d call p_power_ctrl_txpower_incrs 
-0026 20402724 call power_ctrl_pac_succ_decrs 
-0027 202022cb branch g24_ch 
+002e 20400056 call p_power_ctrl_txpower_incrs 
+002f 20402724 call power_ctrl_pac_succ_decrs 
+0030 202022cb branch g24_ch 
 
 p_power_ctrl_start:
-0028 6fe1478c fetch 2 ,mem_ui_state_map 
-0029 c3858000 rtnbit1 ui_state_ble_adv 
-002a c3838000 rtnbit1 ui_state_bt_reconnect 
-002b c3830000 rtnbit1 ui_state_bt_discovery 
-002c 6a214899 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
-002d 204025cb call rssi_average 
-002e 6048c8c7 storet 1 ,mem_rssi_avg_received 
-002f 6fe0c8cc fetch 1 ,mem_rssi_dis_max_24g 
-0030 c5130032 bmark1 mark_24g ,p_power_ctrl_start_next 
-0031 6fe0c8cf fetch 1 ,mem_rssi_dis_max_ble 
+0031 6fe1478c fetch 2 ,mem_ui_state_map 
+0032 c3858000 rtnbit1 ui_state_ble_adv 
+0033 c3838000 rtnbit1 ui_state_bt_reconnect 
+0034 c3830000 rtnbit1 ui_state_bt_discovery 
+0035 6a214899 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
+0036 204025cb call rssi_average 
+0037 6048c8c7 storet 1 ,mem_rssi_avg_received 
+0038 6fe0c8cc fetch 1 ,mem_rssi_dis_max_24g 
+0039 c513003b bmark1 mark_24g ,p_power_ctrl_start_next 
+003a 6fe0c8cf fetch 1 ,mem_rssi_dis_max_ble 
 
 p_power_ctrl_start_next:
-0032 98467c00 isub temp ,null 
-0033 2421004c nbranch p_power_ctrl_txpower_incrs_force ,positive 
-0034 6fe0c8c9 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
-0035 1fe67c02 sub pdata ,2 ,null 
-0036 2421003a nbranch p_power_ctrl_txpower_decrs_check ,positive 
-0037 6fe0c8c9 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
-0038 c000004d beq 0 ,p_power_ctrl_txpower_incrs 
-0039 20600000 rtn 
+003b 98467c00 isub temp ,null 
+003c 24210055 nbranch p_power_ctrl_txpower_incrs_force ,positive 
+003d 6fe0c8c9 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+003e 1fe67c02 sub pdata ,2 ,null 
+003f 24210043 nbranch p_power_ctrl_txpower_decrs_check ,positive 
+0040 6fe0c8c9 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+0041 c0000056 beq 0 ,p_power_ctrl_txpower_incrs 
+0042 20600000 rtn 
 
 p_power_ctrl_txpower_decrs_check:
-003a 6fe0c8c9 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
-003b 6848c8ca fetcht 1 ,mem_power_ctrl_pac_succ_cnt_init 
-003c 98467c00 isub temp ,null 
-003d 24628000 nrtn zero 
-003e 7048c900 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+0043 6fe0c8c9 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+0044 6848c8ca fetcht 1 ,mem_power_ctrl_pac_succ_cnt_init 
+0045 98467c00 isub temp ,null 
+0046 24628000 nrtn zero 
+0047 7048c900 jam 0 ,mem_power_ctrl_pac_succ_cnt 
 
 p_power_ctrl_txpower_decrs:
-003f 6848c8c7 fetcht 1 ,mem_rssi_avg_received 
-0040 6fe0c8cb fetch 1 ,mem_rssi_dis_min_24g 
-0041 c5130043 bmark1 mark_24g ,p_power_ctrl_txpower_decrs_next 
-0042 6fe0c8ce fetch 1 ,mem_rssi_dis_min_ble 
+0048 6848c8c7 fetcht 1 ,mem_rssi_avg_received 
+0049 6fe0c8cb fetch 1 ,mem_rssi_dis_min_24g 
+004a c513004c bmark1 mark_24g ,p_power_ctrl_txpower_decrs_next 
+004b 6fe0c8ce fetch 1 ,mem_rssi_dis_min_ble 
 
 p_power_ctrl_txpower_decrs_next:
-0043 98467c00 isub temp ,null 
-0044 24610000 nrtn positive 
-0045 6fe0c8c8 fetch 1 ,mem_power_ctrl_level 
-0046 c000271b beq 0 ,power_ctrl_decrs_level0 
-0047 1fe0ffff increase -1 ,pdata 
-0048 67e0c8c8 store 1 ,mem_power_ctrl_level 
-0049 c0010054 beq 2 ,p_power_ctrl_decrs_level2 
-004a c000a711 beq 1 ,power_ctrl_decrs_level1 
-004b 2020271b branch power_ctrl_decrs_level0 
+004c 98467c00 isub temp ,null 
+004d 24610000 nrtn positive 
+004e 6fe0c8c8 fetch 1 ,mem_power_ctrl_level 
+004f c000271b beq 0 ,power_ctrl_decrs_level0 
+0050 1fe0ffff increase -1 ,pdata 
+0051 67e0c8c8 store 1 ,mem_power_ctrl_level 
+0052 c001005d beq 2 ,p_power_ctrl_decrs_level2 
+0053 c000a711 beq 1 ,power_ctrl_decrs_level1 
+0054 2020271b branch power_ctrl_decrs_level0 
 
 p_power_ctrl_txpower_incrs_force:
-004c 7048c900 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+0055 7048c900 jam 0 ,mem_power_ctrl_pac_succ_cnt 
 
 p_power_ctrl_txpower_incrs:
-004d 6fe0c8c8 fetch 1 ,mem_power_ctrl_level 
-004e c0018053 beq 3 ,p_power_ctrl_incrs_level3 
-004f 1fe0fe01 increase 1 ,pdata 
-0050 67e0c8c8 store 1 ,mem_power_ctrl_level 
-0051 c000a711 beq 1 ,power_ctrl_incrs_level1 
-0052 c0010054 beq 2 ,p_power_ctrl_incrs_level2 
+0056 6fe0c8c8 fetch 1 ,mem_power_ctrl_level 
+0057 c001805c beq 3 ,p_power_ctrl_incrs_level3 
+0058 1fe0fe01 increase 1 ,pdata 
+0059 67e0c8c8 store 1 ,mem_power_ctrl_level 
+005a c000a711 beq 1 ,power_ctrl_incrs_level1 
+005b c001005d beq 2 ,p_power_ctrl_incrs_level2 
 
 p_power_ctrl_incrs_level3:
-0053 20200054 branch p_power_ctrl_incrs_level2 
+005c 2020005d branch p_power_ctrl_incrs_level2 
 
 p_power_ctrl_decrs_level2:
 
 p_power_ctrl_incrs_level2:
-0054 7041e803 jam tx_power_3db ,mem_tx_power 
-0055 20600000 rtn 
+005d 7041e803 jam tx_power_3db ,mem_tx_power 
+005e 20600000 rtn 
 
 p_app_init:
 
 p_mouse_init:
-0056 20406df3 call enable_authrom 
-0057 20203bc1 branch mouse_init 
+005f 20406df3 call enable_authrom 
+0060 20203bc1 branch mouse_init 
 
 p_mouse_start_reconnect_device:
-0058 2040006a call p_mouse_bt_reconn_led_blink 
-0059 da204939 arg mem_device1_type ,rega 
-005a 6fe0c938 fetch 1 ,mem_device_flag 
-005b 1fe0ffff increase -1 ,pdata 
-005c 1feffe1d mul32 pdata ,29 ,pdata 
-005d 9a20a200 iadd rega ,rega 
-005e efe08011 ifetch 1 ,rega 
-005f 67e0c482 store 1 ,mem_xrecord_mode 
-0060 c0198063 beq rec_3_mode ,p_mouse3_0_check_reconn_target 
-0061 c01a3d7b beq rec_4_mode ,mouse4_0_check_reconn_target 
-0062 202042eb branch mouse_buletooth_fast_conn_init 
+0061 20400073 call p_mouse_bt_reconn_led_blink 
+0062 da204939 arg mem_device1_type ,rega 
+0063 6fe0c938 fetch 1 ,mem_device_flag 
+0064 1fe0ffff increase -1 ,pdata 
+0065 1feffe1d mul32 pdata ,29 ,pdata 
+0066 9a20a200 iadd rega ,rega 
+0067 efe08011 ifetch 1 ,rega 
+0068 67e0c482 store 1 ,mem_xrecord_mode 
+0069 c019806c beq rec_3_mode ,p_mouse3_0_check_reconn_target 
+006a c01a3d7b beq rec_4_mode ,mouse4_0_check_reconn_target 
+006b 202042eb branch mouse_buletooth_fast_conn_init 
 
 p_mouse3_0_check_reconn_target:
-0063 68494bb8 fetcht 2 ,mem_mouse_fast_page_to 
-0064 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-0065 c07fbd73 beq 0xff ,mouse3_0_check_reconn_target_next 
-0066 6848c902 fetcht 1 ,mem_mouse_direct_timeout 
-0067 6048cb77 storet 1 ,mem_mouse_direct_timer 
-0068 68494bb5 fetcht 2 ,mem_mouse_page_to 
-0069 20203d73 branch mouse3_0_check_reconn_target_next 
+006c 68494bb8 fetcht 2 ,mem_mouse_fast_page_to 
+006d 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+006e c07fbd73 beq 0xff ,mouse3_0_check_reconn_target_next 
+006f 6848c902 fetcht 1 ,mem_mouse_direct_timeout 
+0070 6048cb77 storet 1 ,mem_mouse_direct_timer 
+0071 68494bb5 fetcht 2 ,mem_mouse_page_to 
+0072 20203d73 branch mouse3_0_check_reconn_target_next 
 
 p_mouse_bt_reconn_led_blink:
-006a 2040498e call mouse_low_voltage_led_blink_disable 
-006b 704ba700 jam 0 ,mem_mouse_device_poweron_timer_count 
-006c 6fe14be2 fetch 2 ,mem_mouse_le_reconn_led_blink_time 
-006d 202048ce branch mouse_discover_setting_led_gpio + 2 
+0073 2040498e call mouse_low_voltage_led_blink_disable 
+0074 704ba700 jam 0 ,mem_mouse_device_poweron_timer_count 
+0075 6fe14be2 fetch 2 ,mem_mouse_le_reconn_led_blink_time 
+0076 202048ce branch mouse_discover_setting_led_gpio + 2 
 
 p_lpm_write_ice_disable:
-006e 6ff10120 fetch 2 ,core_ucode_flag 
-006f 793ffe0e set0 lpmreg_ice_mode_bit ,pdata 
-0070 67f2004c store 4 ,core_lpm_reg 
-0071 20205caf branch lpm_write2_ctrl_option 
+0077 6ff10120 fetch 2 ,core_ucode_flag 
+0078 793ffe0e set0 lpmreg_ice_mode_bit ,pdata 
+0079 67f2004c store 4 ,core_lpm_reg 
+007a 20205caf branch lpm_write2_ctrl_option 
 
 p_initialize_radio_cont:
-0072 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
-0073 2040126a call initialize_syn_afc_cfg1 
-0074 20401271 call initialize_rf_ldo_cfg1 
-0075 20401277 call initialize_rc_cal 
-0076 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
-0077 708a0305 jam 5 ,core_clkpll_cfg0 
-0078 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
-0079 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
-007a 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
-007b 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
-007c 2020125d branch initialize_radio_cont + 8 
+007b 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
+007c 2040126a call initialize_syn_afc_cfg1 
+007d 20401271 call initialize_rf_ldo_cfg1 
+007e 20401277 call initialize_rc_cal 
+007f 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
+0080 708a0305 jam 5 ,core_clkpll_cfg0 
+0081 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
+0082 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
+0083 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
+0084 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
+0085 2020125d branch initialize_radio_cont + 8 
 
 p_init_param:
-007d 70008000 jam 0 ,mem_lmo_tid2 
-007e 202013b7 branch init_param_next + 1 
+0086 70008000 jam 0 ,mem_lmo_tid2 
+0087 202013b7 branch init_param_next + 1 
 
 p_mouse_app_enter_hibernate:
-007f 58000006 setarg pan_reg_config 
-0080 20405b0d call twspi_read 
-0081 c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
-0082 20203e21 branch mouse_app_enter_hibernate + 1 
+0088 58000006 setarg pan_reg_config 
+0089 20405b0d call twspi_read 
+008a c281be23 bbit1 3 ,mouse_app_enter_hibernate + 3 
+008b 20203e21 branch mouse_app_enter_hibernate + 1 
 
 p_mouse_setgpio_hibernate:
-0083 204042e9 call mouse_set_sdio_high 
-0084 20407fdc call clear_wake 
-0085 20404015 call mouse_before_hibernate_wheel_gpio_set 
-0086 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-0087 20406069 call gpio_out_active 
-0088 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-0089 20406042 call gpio_clr_wake 
-008a 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-008b d840003f arg gpcfg_output_high ,temp 
-008c 20406093 call gpio_config_function_int 
-008d 20203e36 branch mouse_setgpio_hibernate + 3 
-
-p_mouse_lpm_before_common:
-008e 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
-008f 20406050 call gpio_config_input 
-0090 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
-0091 20406050 call gpio_config_input 
-0092 20403f88 call mouse_wheel_check 
-0093 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
+008c 204042e9 call mouse_set_sdio_high 
+008d 20407fdc call clear_wake 
+008e 20404015 call mouse_before_hibernate_wheel_gpio_set 
+008f 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+0090 20406069 call gpio_out_active 
+0091 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+0092 20406042 call gpio_clr_wake 
+0093 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
 0094 d840003f arg gpcfg_output_high ,temp 
 0095 20406093 call gpio_config_function_int 
-0096 20203e44 branch mouse_lpm_before_common_next 
+0096 20203e36 branch mouse_setgpio_hibernate + 3 
+
+p_mouse_lpm_before_common:
+0097 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
+0098 20406050 call gpio_config_input 
+0099 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
+009a 20406050 call gpio_config_input 
+009b 20403f88 call mouse_wheel_check 
+009c 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
+009d d840003f arg gpcfg_output_high ,temp 
+009e 20406093 call gpio_config_function_int 
+009f 20203e44 branch mouse_lpm_before_common_next 
 
 p_mouse_priority_bb_event:
-0097 1a627e00 copy regc ,pdata 
-0098 c01e00b8 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-0099 c00200b1 beq bt_evt_reconn_failed ,p_mouse_bb_event_reconn_failed 
-009a c00980b1 beq bt_evt_reconn_page_timeout ,p_mouse_bb_event_reconn_failed 
-009b c019009e beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
-009c c02200a5 beq bt_evt_le_parse_conn_param_accepted ,p_mouse_le_parse_conn_param_accepted 
-009d 20204336 branch mouse_priority_bb_event + 2 
+00a0 1a627e00 copy regc ,pdata 
+00a1 c01e00c1 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+00a2 c00200ba beq bt_evt_reconn_failed ,p_mouse_bb_event_reconn_failed 
+00a3 c00980ba beq bt_evt_reconn_page_timeout ,p_mouse_bb_event_reconn_failed 
+00a4 c01900a7 beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
+00a5 c02200ae beq bt_evt_le_parse_conn_param_accepted ,p_mouse_le_parse_conn_param_accepted 
+00a6 20204336 branch mouse_priority_bb_event + 2 
 
 p_mouse_le_ll_start_encryt:
-009e 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-009f c00080a2 beq 1 ,p_mouse_le_ll_reconn_start_encryt 
-00a0 704b7614 jam 20 ,mem_le_start_encrypt_timer 
-00a1 20204373 branch mouse_le_ll_enable_start_enc_flag 
+00a7 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+00a8 c00080ab beq 1 ,p_mouse_le_ll_reconn_start_encryt 
+00a9 704b7614 jam 20 ,mem_le_start_encrypt_timer 
+00aa 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_ll_reconn_start_encryt:
-00a2 2040436c call mouse_updata_le_param 
-00a3 704b7605 jam 5 ,mem_le_start_encrypt_timer 
-00a4 20204373 branch mouse_le_ll_enable_start_enc_flag 
+00ab 2040436c call mouse_updata_le_param 
+00ac 704b7605 jam 5 ,mem_le_start_encrypt_timer 
+00ad 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_parse_conn_param_accepted:
-00a5 6fe082c1 fetch 1 ,mem_le_new_conninterval 
-00a6 1fe67c0c sub pdata ,le_interval_15ms ,null 
-00a7 24214384 nbranch mouse_le_conn_param_lpm_disable ,positive 
-00a8 67e14372 store 2 ,mem_le_interval_min 
-00a9 67e14374 store 2 ,mem_le_interval_min + 2 
-00aa 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
-00ab 6848cb8a fetcht 1 ,mem_lpm_mult_init 
-00ac 98467c00 isub temp ,null 
-00ad 2021439a branch mouse_le_lpm_mult_reinit ,positive 
-00ae 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
-00af 67e0cb8a store 1 ,mem_lpm_mult_init 
-00b0 20204386 branch mouse_le_conn_param_lpm_enable 
+00ae 6fe082c1 fetch 1 ,mem_le_new_conninterval 
+00af 1fe67c0c sub pdata ,le_interval_15ms ,null 
+00b0 24214384 nbranch mouse_le_conn_param_lpm_disable ,positive 
+00b1 67e14372 store 2 ,mem_le_interval_min 
+00b2 67e14374 store 2 ,mem_le_interval_min + 2 
+00b3 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+00b4 6848cb8a fetcht 1 ,mem_lpm_mult_init 
+00b5 98467c00 isub temp ,null 
+00b6 2021439a branch mouse_le_lpm_mult_reinit ,positive 
+00b7 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+00b8 67e0cb8a store 1 ,mem_lpm_mult_init 
+00b9 20204386 branch mouse_le_conn_param_lpm_enable 
 
 p_mouse_bb_event_reconn_failed:
-00b1 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-00b2 c07fc2f8 beq 0xff ,mouse_buletooth_fast_conn_end 
-00b3 6fe1478c fetch 2 ,mem_ui_state_map 
-00b4 c3860000 rtnbit1 ui_state_btn_down 
-00b5 c3830000 rtnbit1 ui_state_bt_discovery 
-00b6 c3858000 rtnbit1 ui_state_ble_adv 
-00b7 20203e20 branch mouse_app_enter_hibernate 
+00ba 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+00bb c07fc2f8 beq 0xff ,mouse_buletooth_fast_conn_end 
+00bc 6fe1478c fetch 2 ,mem_ui_state_map 
+00bd c3860000 rtnbit1 ui_state_btn_down 
+00be c3830000 rtnbit1 ui_state_bt_discovery 
+00bf c3858000 rtnbit1 ui_state_ble_adv 
+00c0 20203e20 branch mouse_app_enter_hibernate 
 
 p_mouse_24g_attempt_success:
-00b8 6fe2483c fetch 4 ,mem_24g_addr 
-00b9 67e24891 store 4 ,mem_24g_receiver_addr 
-00ba 67e24993 store 4 ,mem_mouse_24g_addr 
-00bb 204048c6 call mouse_device_poweron_timer_init 
-00bc 2020484e branch mouse_24g_attempt_success 
+00c1 6fe2483c fetch 4 ,mem_24g_addr 
+00c2 67e24891 store 4 ,mem_24g_receiver_addr 
+00c3 67e24993 store 4 ,mem_mouse_24g_addr 
+00c4 204048c6 call mouse_device_poweron_timer_init 
+00c5 2020484e branch mouse_24g_attempt_success 
 
 p_mouse_seting_dpi:
-00bd 2040408f call mouse_setting_dpi_4_level 
-00be 204000c0 call p_mouse_dpi_led_blink_delay 
-00bf 20204098 branch mouse_seting_sensor_type 
+00c6 2040408f call mouse_setting_dpi_4_level 
+00c7 204000c9 call p_mouse_dpi_led_blink_delay 
+00c8 20204098 branch mouse_seting_sensor_type 
 
 p_mouse_dpi_led_blink_delay:
-00c0 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00c1 c17f8000 rtneq gpio_disable 
-00c2 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-00c3 247a0000 nrtn blank 
-00c4 6fe14883 fetch 2 ,mem_24g_pair_timeout 
-00c5 247a0000 nrtn blank 
-00c6 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
-00c7 247a0000 nrtn blank 
-00c8 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-00c9 247a0000 nrtn blank 
-00ca 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-00cb 203a00dc branch p_mouse_dpi_led_blink_init ,blank 
-00cc 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
-00cd 20600000 rtn 
+00c9 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+00ca c17f8000 rtneq gpio_disable 
+00cb 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+00cc 247a0000 nrtn blank 
+00cd 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+00ce 247a0000 nrtn blank 
+00cf 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+00d0 247a0000 nrtn blank 
+00d1 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+00d2 247a0000 nrtn blank 
+00d3 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+00d4 203a00e5 branch p_mouse_dpi_led_blink_init ,blank 
+00d5 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
+00d6 20600000 rtn 
 
 p_mouse_bb_event_timer:
-00ce 20403e9b call mouse_adc_read 
-00cf 20404956 call mouse_low_voltage_led_timer 
-00d0 2040232b call g24_pair_timeout_timer 
-00d1 20402556 call g24_reconn_timeout_timer 
-00d2 204047cd call mouse_24g_long_sleep_param_update_timer 
-00d3 204048be call mouse_device_poweron_timer 
-00d4 204000d9 call p_mouse_dpi_led_blink_delay_timer 
-00d5 204000f1 call p_mouse_dpi_key_check_long_press 
-00d6 204044cc call mouse_bt_discovery_check 
-00d7 204000fc call p_mouse_commbination_key_process 
-00d8 202044c0 branch mouse_bb_event_timer + 11 
+00d7 20403e9b call mouse_adc_read 
+00d8 20404956 call mouse_low_voltage_led_timer 
+00d9 2040232b call g24_pair_timeout_timer 
+00da 20402556 call g24_reconn_timeout_timer 
+00db 204047cd call mouse_24g_long_sleep_param_update_timer 
+00dc 204048be call mouse_device_poweron_timer 
+00dd 204000e2 call p_mouse_dpi_led_blink_delay_timer 
+00de 204000fa call p_mouse_dpi_key_check_long_press 
+00df 204044cc call mouse_bt_discovery_check 
+00e0 20400105 call p_mouse_commbination_key_process 
+00e1 202044c0 branch mouse_bb_event_timer + 11 
 
 p_mouse_dpi_led_blink_delay_timer:
-00d9 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-00da da4000dc arg p_mouse_dpi_led_blink_init ,regb 
-00db 2020318a branch timer_single_step 
+00e2 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+00e3 da4000e5 arg p_mouse_dpi_led_blink_init ,regb 
+00e4 2020318a branch timer_single_step 
 
 p_mouse_dpi_led_blink_init:
-00dc 6fe0c927 fetch 1 ,mem_config_sensor_type 
-00dd c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-00de c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-00df 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00e0 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-00e1 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-00e2 67e14930 store 2 ,mem_mouse_on_time 
-00e3 67e14932 store 2 ,mem_mouse_off_time 
-00e4 da200000 arg 0 ,rega 
-00e5 6848c992 fetcht 1 ,mem_mouse_dpi 
-00e6 18408402 increase 2 ,temp 
-00e7 18467c03 sub temp ,3 ,null 
-00e8 204100eb call p_mouse_dpi_led_blink_init_level_4 ,positive 
-00e9 244100ef ncall p_mouse_dpi_led_blink_count_clean ,positive 
-00ea 202048ff branch mouse_dpi_led_blink_init_end 
+00e5 6fe0c927 fetch 1 ,mem_config_sensor_type 
+00e6 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
+00e7 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
+00e8 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+00e9 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
+00ea 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
+00eb 67e14930 store 2 ,mem_mouse_on_time 
+00ec 67e14932 store 2 ,mem_mouse_off_time 
+00ed da200000 arg 0 ,rega 
+00ee 6848c992 fetcht 1 ,mem_mouse_dpi 
+00ef 18408402 increase 2 ,temp 
+00f0 18467c03 sub temp ,3 ,null 
+00f1 204100f4 call p_mouse_dpi_led_blink_init_level_4 ,positive 
+00f2 244100f8 ncall p_mouse_dpi_led_blink_count_clean ,positive 
+00f3 202048ff branch mouse_dpi_led_blink_init_end 
 
 p_mouse_dpi_led_blink_init_level_4:
-00eb 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00ec c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-00ed 18408401 increase 1 ,temp 
-00ee 20600000 rtn 
+00f4 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00f5 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+00f6 18408401 increase 1 ,temp 
+00f7 20600000 rtn 
 
 p_mouse_dpi_led_blink_count_clean:
-00ef 184085fd increase -3 ,temp 
-00f0 20600000 rtn 
+00f8 184085fd increase -3 ,temp 
+00f9 20600000 rtn 
 
 p_mouse_dpi_key_check_long_press:
-00f1 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00f2 c2944080 bbit1 mouse_enable_select_device_by_dpi_button ,mouse_select_device_by_dpi_button 
-00f3 c29b00f5 bbit1 mouse_enable_dpi_key_long_press_disconvery ,p_mouse_discovery_by_dpi_button 
-00f4 20600000 rtn 
+00fa 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00fb c2944080 bbit1 mouse_enable_select_device_by_dpi_button ,mouse_select_device_by_dpi_button 
+00fc c29b00fe bbit1 mouse_enable_dpi_key_long_press_disconvery ,p_mouse_discovery_by_dpi_button 
+00fd 20600000 rtn 
 
 p_mouse_discovery_by_dpi_button:
-00f5 6fe0c9dd fetch 1 ,mem_mouse_dpi_button_state 
-00f6 c1808000 rtnne dpi_button_state_down 
-00f7 da604b9b arg mem_bt_discovery_count ,regc 
-00f8 da4000fa arg p_mouse_long_dpi_button_bt_discovery ,regb 
-00f9 2020318a branch timer_single_step 
+00fe 6fe0c9dd fetch 1 ,mem_mouse_dpi_button_state 
+00ff c1808000 rtnne dpi_button_state_down 
+0100 da604b9b arg mem_bt_discovery_count ,regc 
+0101 da400103 arg p_mouse_long_dpi_button_bt_discovery ,regb 
+0102 2020318a branch timer_single_step 
 
 p_mouse_long_dpi_button_bt_discovery:
-00fa 7049de01 jam 1 ,mem_mouse_dpi_long_press_flag 
-00fb 2020010e branch p_mouse_long_button_bt_discovery 
+0103 7049de01 jam 1 ,mem_mouse_dpi_long_press_flag 
+0104 20200117 branch p_mouse_long_button_bt_discovery 
 
 p_mouse_commbination_key_process:
-00fc 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00fd c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
-00fe 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
-00ff 6048cb9d storet 1 ,mem_mouse_commbination_key 
-0100 20404115 call mouse_check_key_gpio 
-0101 1fe17e07 and pdata ,0x07 ,pdata 
-0102 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
-0103 98467c00 isub temp ,null 
-0104 20228106 branch p_mouse_commbination_key_down ,zero 
-0105 202044eb branch mouse_commbination_key_up 
+0105 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0106 c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
+0107 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
+0108 6048cb9d storet 1 ,mem_mouse_commbination_key 
+0109 20404115 call mouse_check_key_gpio 
+010a 1fe17e07 and pdata ,0x07 ,pdata 
+010b 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
+010c 98467c00 isub temp ,null 
+010d 2022810f branch p_mouse_commbination_key_down ,zero 
+010e 202044eb branch mouse_commbination_key_up 
 
 p_mouse_commbination_key_down:
-0106 20400108 call p_mouse_combination_ui_timer 
-0107 202044f2 branch mouse_commbination_key_down + 1 
+010f 20400111 call p_mouse_combination_ui_timer 
+0110 202044f2 branch mouse_commbination_key_down + 1 
 
 p_mouse_combination_ui_timer:
-0108 da604ba0 arg mem_combination_ui_button_count ,regc 
-0109 da40010e arg p_mouse_long_button_bt_discovery ,regb 
-010a 2040318a call timer_single_step 
-010b 6fe0cba0 fetch 1 ,mem_combination_ui_button_count 
-010c c000c6e2 beq 1 ,mouse_bt_discovery_button_down_enable 
-010d 20600000 rtn 
+0111 da604ba0 arg mem_combination_ui_button_count ,regc 
+0112 da400117 arg p_mouse_long_button_bt_discovery ,regb 
+0113 2040318a call timer_single_step 
+0114 6fe0cba0 fetch 1 ,mem_combination_ui_button_count 
+0115 c000c6e2 beq 1 ,mouse_bt_discovery_button_down_enable 
+0116 20600000 rtn 
 
 p_mouse_long_button_bt_discovery:
-010e 70493801 jam mode_bt_device1 ,mem_device_flag 
-010f 704b7700 jam 0 ,mem_mouse_direct_timer 
-0110 2040423c call mouse_sensor_powerdown 
-0111 204078f4 call check_51cmd_stop_adv 
-0112 7041ca00 jam 0 ,mem_link_key_exists 
-0113 20404316 call mouse_stop_bluetooth_mode 
-0114 204045ee call mouse_store_device_info_delay 
-0115 202044d4 branch mouse_long_button_bt_discovery 
+0117 70493801 jam mode_bt_device1 ,mem_device_flag 
+0118 704b7700 jam 0 ,mem_mouse_direct_timer 
+0119 2040423c call mouse_sensor_powerdown 
+011a 204078f4 call check_51cmd_stop_adv 
+011b 7041ca00 jam 0 ,mem_link_key_exists 
+011c 20404316 call mouse_stop_bluetooth_mode 
+011d 204045ee call mouse_store_device_info_delay 
+011e 202044d4 branch mouse_long_button_bt_discovery 
 
 p_hid_rx_process:
-0116 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
-0117 1fe20c00 copy pdata ,contr 
-0118 efe08006 ifetch 1 ,contr 
-0119 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
-011a 1fe1040f and pdata ,0x0f ,temp 
-011b 1ff1fe00 rshift4 pdata ,pdata 
-011c c004811e beq hid_type_set_idle ,p_hid_rx_process_handshake 
-011d 20204d93 branch hid_rx_process + 7 
+011f 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+0120 1fe20c00 copy pdata ,contr 
+0121 efe08006 ifetch 1 ,contr 
+0122 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
+0123 1fe1040f and pdata ,0x0f ,temp 
+0124 1ff1fe00 rshift4 pdata ,pdata 
+0125 c0048127 beq hid_type_set_idle ,p_hid_rx_process_handshake 
+0126 20204d93 branch hid_rx_process + 7 
 
 p_hid_rx_process_handshake:
-011e da200001 arg 1 ,rega 
-011f 20404dc0 call hid_malloc_tx_buff 
-0120 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
-0121 e7e10005 istore 2 ,contw 
-0122 58000000 setarg 0 
-0123 e7e08005 istore 1 ,contw 
-0124 70095001 jam 1 ,mem_ui_data_txbuff_length 
-0125 6fe0c4e2 fetch 1 ,mem_hid_control_state 
-0126 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
-0127 67e0c4e2 store 1 ,mem_hid_control_state 
-0128 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
-0129 20207871 branch ui_ipc_send_event 
+0127 da200001 arg 1 ,rega 
+0128 20404dc0 call hid_malloc_tx_buff 
+0129 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
+012a e7e10005 istore 2 ,contw 
+012b 58000000 setarg 0 
+012c e7e08005 istore 1 ,contw 
+012d 70095001 jam 1 ,mem_ui_data_txbuff_length 
+012e 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+012f 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
+0130 67e0c4e2 store 1 ,mem_hid_control_state 
+0131 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
+0132 20207871 branch ui_ipc_send_event 
 
 p_le_slave_match:
-012a 6fe0c3dd fetch 1 ,mem_le_md_count 
-012b 1fe0fe01 pincrease 1 
-012c 67e0c3dd store 1 ,mem_le_md_count 
-012d c006165a beq le_md_max_count ,le_slave_cont 
-012e 2040191b call le_acknowledge 
-012f 2040196a call le_prepare_tx 
-0130 6fe082bd fetch 1 ,mem_le_tx_phy 
-0131 2040168b call le_enable_phy_by_pdata 
-0132 20401838 call le_transmit 
-0133 20201655 branch le_slave_match + 10 
+0133 6fe0c3dd fetch 1 ,mem_le_md_count 
+0134 1fe0fe01 pincrease 1 
+0135 67e0c3dd store 1 ,mem_le_md_count 
+0136 c006165a beq le_md_max_count ,le_slave_cont 
+0137 2040191b call le_acknowledge 
+0138 2040196a call le_prepare_tx 
+0139 6fe082bd fetch 1 ,mem_le_tx_phy 
+013a 2040168b call le_enable_phy_by_pdata 
+013b 20401838 call le_transmit 
+013c 20201655 branch le_slave_match + 10 
 
 p_le_parse_l2cap:
-0134 efe10006 ifetch 2 ,contr 
-0135 c0020137 beq le_l2cap_cid_att ,p_le_parse_att 
-0136 202019e4 branch le_parse_l2cap2 + 3 
+013d efe10006 ifetch 2 ,contr 
+013e c0020140 beq le_l2cap_cid_att ,p_le_parse_att 
+013f 202019e4 branch le_parse_l2cap2 + 3 
 
 p_le_parse_att:
-0137 efe18006 ifetch 3 ,contr 
-0138 67e1c436 store 3 ,mem_le_att_opcode 
-0139 c005013c beq attop_read_request ,p_le_parse_att_read_request 
-013a c0090149 beq attop_write_request ,p_le_parse_att_write_request 
-013b 20201cd3 branch le_parse_att + 2 
+0140 efe18006 ifetch 3 ,contr 
+0141 67e1c436 store 3 ,mem_le_att_opcode 
+0142 c0050145 beq attop_read_request ,p_le_parse_att_read_request 
+0143 c0090152 beq attop_write_request ,p_le_parse_att_write_request 
+0144 20201cd3 branch le_parse_att + 2 
 
 p_le_parse_att_read_request:
-013c 20401e8d call le_check_encrypt_state 
-013d 68494437 fetcht 2 ,mem_le_att_handle 
-013e 6fe0c3c0 fetch 1 ,mem_le_configuration 
-013f c2818144 bbit1 bit_ble_read_auth ,p_le_send_att_read_response_check_auth 
+0145 20401e8d call le_check_encrypt_state 
+0146 68494437 fetcht 2 ,mem_le_att_handle 
+0147 6fe0c3c0 fetch 1 ,mem_le_configuration 
+0148 c281814d bbit1 bit_ble_read_auth ,p_le_send_att_read_response_check_auth 
 
 p_le_send_att_read_response:
-0140 6fe14437 fetch 2 ,mem_le_att_handle 
-0141 c0181ec8 beq 0x30 ,le_send_att_error_response_notfound 
-0142 68494437 fetcht 2 ,mem_le_att_handle 
-0143 20201deb branch le_send_att_read_response 
+0149 6fe14437 fetch 2 ,mem_le_att_handle 
+014a c0181ec8 beq 0x30 ,le_send_att_error_response_notfound 
+014b 68494437 fetcht 2 ,mem_le_att_handle 
+014c 20201deb branch le_send_att_read_response 
 
 p_le_send_att_read_response_check_auth:
-0144 6fe143d1 fetch 2 ,mem_le_pairing_handle 
-0145 98467c00 isub temp ,null 
-0146 24228140 nbranch p_le_send_att_read_response ,zero 
-0147 24340140 nbranch p_le_send_att_read_response ,user 
-0148 20201e10 branch le_send_att_read_response_error_insufficient_auth 
+014d 6fe143d1 fetch 2 ,mem_le_pairing_handle 
+014e 98467c00 isub temp ,null 
+014f 24228149 nbranch p_le_send_att_read_response ,zero 
+0150 24340149 nbranch p_le_send_att_read_response ,user 
+0151 20201e10 branch le_send_att_read_response_error_insufficient_auth 
 
 p_le_parse_att_write_request:
-0149 18c22200 copy contr ,rega 
-014a 6fe143d4 fetch 2 ,mem_le_l2cap_size 
-014b 1fe0a5fd add pdata ,-3 ,regb 
-014c 20401a25 call le_writeatt_cb 
-014d 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-014e c07f9e73 beq 0xff ,le_send_att_write_response_check_auth 
-014f 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-0150 203a1e73 branch le_send_att_write_response_check_auth ,blank 
-0151 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
-0152 c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
-0153 5800001a setarg 0x001a 
-0154 68494437 fetcht 2 ,mem_le_att_handle 
-0155 98467c00 isub temp ,null 
-0156 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
-0157 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
-0158 20201ec9 branch le_send_att_error_response 
+0152 18c22200 copy contr ,rega 
+0153 6fe143d4 fetch 2 ,mem_le_l2cap_size 
+0154 1fe0a5fd add pdata ,-3 ,regb 
+0155 20401a25 call le_writeatt_cb 
+0156 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+0157 c07f9e73 beq 0xff ,le_send_att_write_response_check_auth 
+0158 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+0159 203a1e73 branch le_send_att_write_response_check_auth ,blank 
+015a 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
+015b c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
+015c 5800001a setarg 0x001a 
+015d 68494437 fetcht 2 ,mem_le_att_handle 
+015e 98467c00 isub temp ,null 
+015f 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
+0160 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
+0161 20201ec9 branch le_send_att_error_response 
 
 p_mouse_motion:
-0159 78547c00 disable user 
-015a 58000000 setarg 0 
-015b 67e348d1 store 6 ,mem_mouse_x 
-015c 20404240 call mouse_check_sensor_data 
-015d 2040408e call mouse_dpi_config 
-015e 20203f75 branch mouse_motion + 5 
+0162 78547c00 disable user 
+0163 58000000 setarg 0 
+0164 67e348d1 store 6 ,mem_mouse_x 
+0165 20404240 call mouse_check_sensor_data 
+0166 2040408e call mouse_dpi_config 
+0167 20203f75 branch mouse_motion + 5 
 
 p_mouse_check_key_gpio:
-015f 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-0160 245a4121 ncall mouse_check_key_gpio_once ,blank 
-0161 da200000 arg 0 ,rega 
-0162 20400168 call p_mouse_check_lkey_gpio 
-0163 2040016d call p_mouse_check_rkey_gpio 
-0164 20400172 call p_mouse_check_mkey_gpio 
-0165 20400177 call p_mouse_check_bkkey_gpio 
-0166 20400184 call p_mouse_check_fwkey_gpio 
-0167 2020411e branch mouse_check_key_gpio_next 
+0168 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+0169 245a4121 ncall mouse_check_key_gpio_once ,blank 
+016a da200000 arg 0 ,rega 
+016b 20400171 call p_mouse_check_lkey_gpio 
+016c 20400176 call p_mouse_check_rkey_gpio 
+016d 2040017b call p_mouse_check_mkey_gpio 
+016e 20400180 call p_mouse_check_bkkey_gpio 
+016f 2040018d call p_mouse_check_fwkey_gpio 
+0170 2020411e branch mouse_check_key_gpio_next 
 
 p_mouse_check_lkey_gpio:
-0168 6fe0c918 fetch 1 ,mem_lbutton_gpio 
-0169 20400191 call p_mouse_gpio_config_output_high 
-016a 20404124 call mouse_check_lkey_gpio 
-016b 6848c918 fetcht 1 ,mem_lbutton_gpio 
-016c 20203f56 branch mouse_gpio_config_input_pu 
+0171 6fe0c918 fetch 1 ,mem_lbutton_gpio 
+0172 2040019a call p_mouse_gpio_config_output_high 
+0173 20404124 call mouse_check_lkey_gpio 
+0174 6848c918 fetcht 1 ,mem_lbutton_gpio 
+0175 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_rkey_gpio:
-016d 6fe0c919 fetch 1 ,mem_rbutton_gpio 
-016e 20400191 call p_mouse_gpio_config_output_high 
-016f 2040412a call mouse_check_rkey_gpio 
-0170 6848c919 fetcht 1 ,mem_rbutton_gpio 
-0171 20203f56 branch mouse_gpio_config_input_pu 
+0176 6fe0c919 fetch 1 ,mem_rbutton_gpio 
+0177 2040019a call p_mouse_gpio_config_output_high 
+0178 2040412a call mouse_check_rkey_gpio 
+0179 6848c919 fetcht 1 ,mem_rbutton_gpio 
+017a 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_mkey_gpio:
-0172 6fe0c91a fetch 1 ,mem_mbutton_gpio 
-0173 20400191 call p_mouse_gpio_config_output_high 
-0174 20404130 call mouse_check_mkey_gpio 
-0175 6848c91a fetcht 1 ,mem_mbutton_gpio 
-0176 20203f56 branch mouse_gpio_config_input_pu 
+017b 6fe0c91a fetch 1 ,mem_mbutton_gpio 
+017c 2040019a call p_mouse_gpio_config_output_high 
+017d 20404130 call mouse_check_mkey_gpio 
+017e 6848c91a fetcht 1 ,mem_mbutton_gpio 
+017f 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_bkkey_gpio:
-0177 6fe0c90d fetch 1 ,mem_bk_button_gpio 
-0178 c17f8000 rtneq gpio_disable 
-0179 704b9603 jam mouse_bk_key ,mem_mouse_key_temp 
-017a 6fe0cb91 fetch 1 ,mem_mouse_bkkey_press_status 
-017b 1fe22600 copy pdata ,regc 
-017c 6848c90d fetcht 1 ,mem_bk_button_gpio 
-017d 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-017e c07f8180 beq gpio_disable ,p_mouse_3io6key_bk_check 
-017f 2020413e branch mouse_check_bkkey_gpio_next 
+0180 6fe0c90d fetch 1 ,mem_bk_button_gpio 
+0181 c17f8000 rtneq gpio_disable 
+0182 704b9603 jam mouse_bk_key ,mem_mouse_key_temp 
+0183 6fe0cb91 fetch 1 ,mem_mouse_bkkey_press_status 
+0184 1fe22600 copy pdata ,regc 
+0185 6848c90d fetcht 1 ,mem_bk_button_gpio 
+0186 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+0187 c07f8189 beq gpio_disable ,p_mouse_3io6key_bk_check 
+0188 2020413e branch mouse_check_bkkey_gpio_next 
 
 p_mouse_3io6key_bk_check:
-0180 6fe0c90d fetch 1 ,mem_bk_button_gpio 
-0181 20400194 call p_mouse_gpio_config_output_low 
-0182 6848c90d fetcht 1 ,mem_bk_button_gpio 
-0183 2020414b branch mouse_3io6key_bk_check 
+0189 6fe0c90d fetch 1 ,mem_bk_button_gpio 
+018a 2040019d call p_mouse_gpio_config_output_low 
+018b 6848c90d fetcht 1 ,mem_bk_button_gpio 
+018c 2020414b branch mouse_3io6key_bk_check 
 
 p_mouse_check_fwkey_gpio:
-0184 6fe0c90e fetch 1 ,mem_fw_button_gpio 
-0185 c17f8000 rtneq gpio_disable 
-0186 704b9604 jam mouse_fw_key ,mem_mouse_key_temp 
-0187 6fe0cb92 fetch 1 ,mem_mouse_fwkey_press_status 
-0188 1fe22600 copy pdata ,regc 
-0189 6848c90e fetcht 1 ,mem_fw_button_gpio 
-018a 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-018b c07f818d beq gpio_disable ,p_mouse_3io6key_fw_check 
-018c 20204157 branch mouse_check_fwkey_gpio_next 
+018d 6fe0c90e fetch 1 ,mem_fw_button_gpio 
+018e c17f8000 rtneq gpio_disable 
+018f 704b9604 jam mouse_fw_key ,mem_mouse_key_temp 
+0190 6fe0cb92 fetch 1 ,mem_mouse_fwkey_press_status 
+0191 1fe22600 copy pdata ,regc 
+0192 6848c90e fetcht 1 ,mem_fw_button_gpio 
+0193 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+0194 c07f8196 beq gpio_disable ,p_mouse_3io6key_fw_check 
+0195 20204157 branch mouse_check_fwkey_gpio_next 
 
 p_mouse_3io6key_fw_check:
-018d 6fe0c90e fetch 1 ,mem_fw_button_gpio 
-018e 20400194 call p_mouse_gpio_config_output_low 
-018f 6848c90e fetcht 1 ,mem_fw_button_gpio 
-0190 20204164 branch mouse_3io6key_fw_check 
+0196 6fe0c90e fetch 1 ,mem_fw_button_gpio 
+0197 2040019d call p_mouse_gpio_config_output_low 
+0198 6848c90e fetcht 1 ,mem_fw_button_gpio 
+0199 20204164 branch mouse_3io6key_fw_check 
 
 p_mouse_gpio_config_output_high:
-0191 c17f8000 rtneq gpio_disable 
-0192 d840003f arg gpcfg_output_high ,temp 
-0193 20206093 branch gpio_config_function_int 
+019a c17f8000 rtneq gpio_disable 
+019b d840003f arg gpcfg_output_high ,temp 
+019c 20206093 branch gpio_config_function_int 
 
 p_mouse_gpio_config_output_low:
-0194 c17f8000 rtneq gpio_disable 
-0195 d840003e arg gpcfg_output_low ,temp 
-0196 20206093 branch gpio_config_function_int 
+019d c17f8000 rtneq gpio_disable 
+019e d840003e arg gpcfg_output_low ,temp 
+019f 20206093 branch gpio_config_function_int 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/XZR/Standard_2.4G_First/program/patch.prog	(revision 3792)
+++ /YC1308AC/branch/mouse_project/XZR/Standard_2.4G_First/program/patch.prog	(working copy)
@@ -11,6 +11,7 @@
 	beq patch19_1,p_mouse_setgpio_hibernate
 	beq patch19_2,p_mouse_lpm_before_common
 	beq patch19_6,p_mouse_motion
+	beq patch19_7,p_mouse_dpi_process
 	beq patch1a_0,p_mouse_seting_dpi
 	beq patch1a_1,p_mouse_check_key_gpio
 	beq patch1a_6,p_mouse_priority_bb_event
@@ -32,6 +33,17 @@
 	call mouse_xtal_init		// 16M / 24M
 	branch soft_reset+3
 
+
+p_mouse_dpi_process:	
+	call mouse_dpi_ghost_check
+	rtn user
+	fetch 1,mem_mouse_dpi
+	increase 1,pdata
+	and pdata,0x03,pdata
+	store 1,mem_mouse_dpi
+	call mouse_seting_dpi
+	branch mouse_store_eerpom_dpi
+
 p_g24_transmit_hop_process:
 	fetcht 1,mem_24g_retry
 	fetch 1,mem_24g_fast_hop_count			// 125Hz=11  250Hz=5
