Index: format/app_mouse.format
===================================================================
--- /1306ac/branch/mouse/branch/XZR_Project/mouse_public_2M/format/app_mouse.format	(revision 765)
+++ /1306ac/branch/mouse/branch/XZR_Project/mouse_public_2M/format/app_mouse.format	(working copy)
@@ -399,9 +399,6 @@
 4 mem_mouse_24g_addr_temp
 
 1 mem_mouse_ice_sdio_for_sensor_angle
-
-20 mem_sensor_ka8g2_init_new
-
 )
 
 
Index: output/eeprom.dat
===================================================================
--- /1306ac/branch/mouse/branch/XZR_Project/mouse_public_2M/output/eeprom.dat	(revision 765)
+++ /1306ac/branch/mouse/branch/XZR_Project/mouse_public_2M/output/eeprom.dat	(working copy)
@@ -2,60 +2,72 @@
 02
 aa
 55
-7e
+ae
 05
 c2
 84
 00
-0c
-c0
-0c
-00
 0f
 c0
-10
 00
+00
+0c
+c0
+0b
+80
 12
 c0
+0c
+00
+26
+c0
 1e
-80
-bf
+81
+10
 c0
 23
-00
-ca
+01
+17
 c0
 26
-00
-d5
-c0
-27
-00
-f6
+01
+22
 c0
 29
-00
-fc
+01
+43
 c0
 2d
 00
-3f
+90
 c0
 38
 00
-14
+42
 c0
 71
-80
-ba
+81
+0b
 20
 20
 3a
 8a
+20
+80
+00
+00
+70
+80
+80
+73
+20
+20
+38
+03
 c0
 2c
 80
-71
+c2
 c1
 7f
 80
@@ -64,6 +76,86 @@
 20
 3a
 8a
+6f
+e0
+c1
+16
+c0
+03
+00
+1b
+c0
+4a
+00
+1f
+c0
+55
+3a
+0f
+70
+8a
+3b
+2c
+70
+8a
+3c
+17
+70
+8a
+39
+8a
+70
+8a
+3a
+0f
+20
+20
+39
+f4
+70
+8a
+3b
+70
+70
+8a
+3c
+1f
+70
+8a
+39
+c9
+20
+20
+00
+19
+70
+8a
+39
+85
+70
+8a
+3a
+04
+70
+8a
+14
+a3
+70
+8a
+15
+0a
+70
+8a
+3b
+18
+70
+8a
+3c
+0f
+20
+60
+00
+00
 70
 8a
 75
@@ -72,10 +164,102 @@
 8a
 85
 00
+70
+89
+6f
+10
+20
+40
+6d
+31
+70
+8a
+03
+05
+70
+8a
+7a
+94
 20
+40
+3a
+44
 20
+40
 3a
-1e
+3f
+20
+40
+3a
+3a
+70
+8a
+8b
+e6
+70
+8a
+83
+90
+70
+8a
+0e
+0b
+70
+8a
+0f
+05
+70
+89
+68
+76
+70
+89
+69
+76
+6f
+e0
+c0
+9a
+c0
+84
+00
+38
+70
+8a
+08
+34
+70
+8a
+01
+ff
+20
+00
+00
+64
+70
+8a
+02
+0e
+70
+8a
+00
+03
+20
+40
+00
+16
+70
+8a
+9a
+28
+70
+8a
+9b
+3f
+20
+20
+3a
+35
 20
 40
 3c
@@ -95,7 +279,7 @@
 20
 40
 00
-1e
+4c
 20
 40
 57
@@ -119,7 +303,7 @@
 20
 40
 00
-32
+83
 20
 20
 52
@@ -138,12 +322,16 @@
 00
 20
 40
-01
-35
+00
+65
+20
+40
+00
+79
 20
 40
 01
-4d
+59
 d8
 40
 00
@@ -175,7 +363,7 @@
 20
 22
 80
-30
+5f
 20
 40
 5b
@@ -196,6 +384,10 @@
 20
 68
 83
+20
+40
+00
+62
 70
 45
 e5
@@ -204,10 +396,142 @@
 20
 5b
 81
-58
+6f
+e0
+c5
+c0
+67
+e0
+c6
+3f
+20
+60
 00
 00
-45
+6f
+e0
+c5
+bd
+c1
+7f
+80
+00
+d8
+40
+00
+40
+20
+40
+6b
+bd
+68
+48
+c5
+bd
+20
+40
+6b
+85
+20
+20
+80
+73
+6f
+e0
+c5
+bd
+d8
+40
+00
+80
+20
+40
+6b
+bd
+68
+48
+c5
+bd
+20
+40
+6b
+85
+20
+20
+80
+75
+20
+20
+00
+77
+70
+45
+d5
+03
+20
+60
+00
+00
+70
+45
+d5
+00
+20
+60
+00
+00
+70
+45
+d5
+02
+20
+60
+00
+00
+6f
+e0
+c5
+bd
+c1
+7f
+80
+00
+6f
+e0
+c5
+d5
+c0
+01
+80
+7f
+c0
+01
+00
+81
+20
+60
+00
+00
+68
+48
+c5
+bd
+20
+20
+6b
+96
+68
+48
+c5
+bd
+20
+20
+54
+7f
+58
+00
+00
+96
 67
 e1
 45
@@ -215,7 +539,7 @@
 58
 00
 00
-37
+88
 67
 e1
 45
@@ -275,7 +599,7 @@
 24
 5a
 00
-3d
+8e
 20
 20
 5e
@@ -319,7 +643,7 @@
 24
 22
 80
-54
+a5
 68
 49
 45
@@ -331,7 +655,7 @@
 20
 22
 80
-65
+b6
 6f
 e2
 48
@@ -339,7 +663,7 @@
 20
 3a
 00
-65
+b6
 68
 4a
 49
@@ -351,7 +675,7 @@
 20
 20
 80
-6c
+bd
 6f
 e2
 48
@@ -375,7 +699,7 @@
 24
 21
 00
-68
+b9
 6f
 e1
 c5
@@ -419,7 +743,7 @@
 20
 20
 00
-63
+b4
 18
 46
 04
@@ -435,7 +759,7 @@
 20
 20
 00
-63
+b4
 df
 ff
 ff
@@ -455,7 +779,7 @@
 20
 20
 00
-59
+aa
 20
 40
 4c
@@ -463,11 +787,11 @@
 24
 34
 00
-75
+c6
 20
 40
 00
-86
+d7
 20
 20
 4c
@@ -479,7 +803,7 @@
 20
 5a
 00
-78
+c9
 20
 20
 4d
@@ -539,7 +863,7 @@
 20
 20
 00
-73
+c4
 58
 00
 00
@@ -559,11 +883,11 @@
 24
 2c
 00
-91
+e2
 24
 37
 80
-91
+e2
 20
 40
 4c
@@ -571,7 +895,7 @@
 20
 40
 00
-8f
+e0
 20
 20
 4c
@@ -579,7 +903,7 @@
 20
 40
 00
-a0
+f1
 20
 20
 5d
@@ -643,7 +967,7 @@
 20
 20
 00
-89
+da
 6f
 e0
 c9
@@ -754,8 +1078,8 @@
 00
 c2
 80
-80
-bd
+81
+0e
 20
 20
 3c
@@ -768,10 +1092,6 @@
 20
 3c
 e9
-70
-80
-70
-80
 20
 40
 53
@@ -792,18 +1112,6 @@
 40
 3c
 18
-df
-e0
-00
-00
-d8
-40
-00
-c0
-20
-40
-6b
-bd
 20
 40
 5a
@@ -862,12 +1170,12 @@
 00
 c0
 1e
-00
-d9
+01
+26
 c0
 1d
-00
-e5
+01
+32
 20
 20
 59
@@ -938,312 +1246,68 @@
 f4
 c0
 02
-00
-ec
-c0
 01
-80
-f1
-20
-20
-5d
-ed
-6f
-e4
-48
-64
-c3
-17
-dd
-ed
-6f
-e0
-c8
-6c
+39
 c0
-00
-dd
-ed
-20
-20
-5d
-cb
-6f
-e4
-48
-64
-c3
-17
-dd
-ed
-c2
-89
-dd
-ed
-c2
-89
-5d
-ed
-20
-20
-5d
-c4
-20
-40
-49
-07
-20
-40
-4b
-a5
-20
-40
-5d
-6b
-20
-40
-5a
-f3
-20
-40
-5a
-46
-20
-20
-5a
-2d
-20
-40
-5b
-90
-c4
-0b
-80
-00
-20
-40
-01
-13
-df
-e0
-07
-90
-1f
-e2
-24
-00
-20
-40
-01
-59
-6f
-e2
-49
-0d
-20
-3a
-01
-0b
-67
-e2
-49
-09
-1a
-40
-a4
-04
-df
-e0
-07
-cf
-9a
-46
-7c
-00
-24
-61
-00
-00
-1a
-42
-7e
-00
-20
-20
-01
-01
-6f
-e2
-49
-09
-68
-4a
-46
-40
-98
-46
-7c
-00
-20
-62
-80
-00
-df
-20
-00
-04
-da
-20
-46
-40
-1a
-42
-7e
-00
-20
-20
-68
-83
-df
-e0
-07
-60
-1f
-e2
-24
-00
-20
-40
-01
-41
-6f
-e0
-c9
-07
-20
-3a
-01
-1f
-67
-e0
-c9
-06
-1a
-40
-a4
-01
-df
-e0
-07
-8f
-9a
-46
-7c
-00
-24
-61
-00
-00
-1a
-42
-7e
-00
-20
-20
-01
-15
-6f
-e0
-c9
-06
-1f
-e1
-7e
-f0
-20
-3a
-01
-28
-6f
-e0
-c6
-3f
-67
-e0
-c9
-08
-df
-20
-00
 01
-1a
-42
-7e
-00
-da
-20
-49
-08
-20
+81
+3e
 20
-68
-83
-6f
-e0
-c9
-06
-68
-48
-c6
-3f
-98
-46
-7c
-00
 20
-62
-80
-00
-18
-52
-04
-00
-98
-40
-fe
-00
-67
+5d
+ed
+6f
+e4
+48
+64
+c3
+17
+dd
+ed
+6f
 e0
-c9
-08
-1a
-42
-7e
-00
-d8
-40
-07
-60
-98
-46
-7c
+c8
+6c
+c0
 00
+dd
+ed
 20
-22
-81
-24
-1a
-40
-a5
-ff
+20
+5d
+cb
+6f
+e4
+48
+64
+c3
+17
+dd
+ed
+c2
+89
+dd
+ed
+c2
+89
+5d
+ed
 20
 20
-01
-24
+5d
+c4
+20
+40
+5b
+90
+c4
+0b
+80
+00
 df
 e0
 07
-60
+90
 1f
 e2
 24
@@ -1251,35 +1315,35 @@
 20
 40
 01
-41
+65
 6f
-e0
-c9
-07
+e2
+49
+0d
 20
 3a
 01
-44
+51
 67
-e0
-c9
-06
+e2
+49
+09
 1a
 40
 a4
-01
+04
 df
 e0
 07
-8f
+cf
 9a
 46
 7c
 00
 24
-21
-01
-44
+61
+00
+00
 1a
 42
 7e
@@ -1287,55 +1351,39 @@
 20
 20
 01
-37
-d8
-40
-00
-01
-da
-20
-49
-07
-20
-20
-68
-c5
+47
 6f
-e0
-c9
-06
-1f
 e2
-26
+49
+09
+68
+4a
+46
+40
+98
+46
+7c
 00
-1f
-e1
-7e
-f0
 20
-3a
-01
-4a
-1f
-f1
-fe
+62
+80
 00
+df
 20
+00
+04
+da
 20
-01
-4b
+46
+40
 1a
-62
+42
 7e
 00
-67
-e0
-c6
-3f
 20
-60
-00
-00
+20
+68
+83
 df
 e0
 07
@@ -1347,7 +1395,7 @@
 20
 40
 01
-59
+65
 6f
 e2
 49
@@ -1355,7 +1403,7 @@
 20
 3a
 01
-5c
+68
 67
 e2
 49
@@ -1375,7 +1423,7 @@
 24
 21
 01
-5c
+68
 1a
 42
 7e
@@ -1383,7 +1431,7 @@
 20
 20
 01
-4f
+5b
 d8
 40
 00
@@ -1408,8 +1456,8 @@
 60
 00
 00
-19
-fd
+6f
+ee
 aa
 55
 06
@@ -1431,17 +1479,20 @@
 5a
 aa
 55
-0c
+0f
+00
 00
-03
 40
 01
+00
+80
 01
 00
 00
+00
 20
 40
-50
+10
 04
 04
 00
@@ -1604,7 +1655,7 @@
 58
 02
 00
-64
+05
 94
 aa
 55
@@ -1644,7 +1695,7 @@
 ff
 ff
 ff
-07
+ff
 aa
 55
 01
@@ -1672,38 +1723,6 @@
 0e
 aa
 55
-0a
-00
-8c
-46
-09
-5a
-26
-34
-19
-04
-09
-00
-ff
-ff
-aa
-55
-0a
-00
-a0
-46
-09
-5a
-0d
-10
-1d
-ed
-7d
-80
-ff
-ff
-aa
-55
 28
 00
 e6
@@ -1750,28 +1769,6 @@
 ff
 aa
 55
-10
-00
-2a
-47
-09
-5a
-06
-02
-09
-69
-0d
-48
-0e
-9f
-0f
-ba
-09
-00
-ff
-ff
-aa
-55
 08
 00
 56
@@ -1796,21 +1793,25 @@
 01
 00
 00
-03
-bb
+02
+bf
 01
 aa
 55
-06
+0a
 00
 72
 48
-64
+05
 00
 64
 00
 70
 17
+00
+00
+90
+01
 aa
 55
 01
@@ -1829,6 +1830,13 @@
 00
 aa
 55
+01
+00
+c3
+48
+14
+aa
+55
 07
 00
 cc
@@ -1861,7 +1869,7 @@
 aa
 aa
 55
-3f
-8e
-52
-5e
+11
+80
+5d
+88
Index: output/memmap.format
===================================================================
--- /1306ac/branch/mouse/branch/XZR_Project/mouse_public_2M/output/memmap.format	(revision 765)
+++ /1306ac/branch/mouse/branch/XZR_Project/mouse_public_2M/output/memmap.format	(working copy)
@@ -1685,7 +1685,6 @@
 0x4909 mem_mouse_24g_addr_last
 0x490d mem_mouse_24g_addr_temp
 0x4911 mem_mouse_ice_sdio_for_sensor_angle
-0x4912 mem_sensor_ka8g2_init_new
 0x443c mem_shutter_bluetooth_type
 0x443d mem_shutter_config_eeprom_offset_addr
 0x443f mem_shutter_config_eeprom_start_flag
Index: output/program.lis
===================================================================
--- /1306ac/branch/mouse/branch/XZR_Project/mouse_public_2M/output/program.lis	(revision 765)
+++ /1306ac/branch/mouse/branch/XZR_Project/mouse_public_2M/output/program.lis	(working copy)
@@ -1,478 +1,494 @@
               include "bt_format "
               org 0x0000
-0000 c284000c bbit1 8 ,pf_patch_ext 
-0001 c00c000f beq patch03_0 ,p_initialize_radio_cont 
-0002 c0100012 beq patch04_0 ,p_lpm_sleep 
-0003 c01e80bf beq patch07_5 ,p_mouse_setgpio_hibernate 
-0004 c02300ca beq patch08_6 ,p_mouse_3io6key_check 
-0005 c02600d5 beq patch09_4 ,p_mouse_priority_bb_event 
-0006 c02700f6 beq patch09_6 ,p_mouse_bb_event_timer 
-0007 c02900fc beq patch0a_2 ,p_mouse_store_device_info 
-0008 c02d003f beq patch0b_2 ,p_mouse_24g_package_data 
-0009 c0380014 beq patch0e_0 ,p_app_init 
-000a c07180ba beq patch1c_3 ,p_le_enable_phy_by_pdata 
+0000 c284000f bbit1 8 ,pf_patch_ext 
+0001 c000000c beq patch00_0 ,p_soft_reset 
+0002 c00b8012 beq patch02_7 ,p_tx_on_next 
+0003 c00c0026 beq patch03_0 ,p_initialize_radio_cont 
+0004 c01e8110 beq patch07_5 ,p_mouse_setgpio_hibernate 
+0005 c0230117 beq patch08_6 ,p_mouse_3io6key_check 
+0006 c0260122 beq patch09_4 ,p_mouse_priority_bb_event 
+0007 c0290143 beq patch0a_2 ,p_mouse_store_device_info 
+0008 c02d0090 beq patch0b_2 ,p_mouse_24g_package_data 
+0009 c0380042 beq patch0e_0 ,p_app_init 
+000a c071810b beq patch1c_3 ,p_le_enable_phy_by_pdata 
 000b 20203a8a branch assert 
 
+p_soft_reset:
+000c 20800000 clear_stack 
+000d 70808073 jam 0x73 ,core_spid_ctrl 
+000e 20203803 branch soft_reset + 2 
+
 pf_patch_ext:
-000c c02c8071 beq patch2b_1 ,p_g24_transmit_no_interrupt 
-000d c17f8000 rtneq patch3f_7 
-000e 20203a8a branch assert 
+000f c02c80c2 beq patch2b_1 ,p_g24_transmit_no_interrupt 
+0010 c17f8000 rtneq patch3f_7 
+0011 20203a8a branch assert 
+
+p_tx_on_next:
+0012 6fe0c116 fetch 1 ,mem_tx_power 
+0013 c003001b beq tx_power_6db ,p_set_tx_power_6db 
+0014 c04a001f beq tx_power_f20db ,p_set_tx_power_f20db 
+0015 c0553a0f beq tx_power_factory ,set_tx_power_factory 
+
+p_set_tx_power_0db:
+0016 708a3b2c jam 0x2c ,0x8a3b 
+0017 708a3c17 jam 0x17 ,0x8a3c 
+0018 708a398a jam 0x8a ,core_tx_pwr_ctrl0 
+0019 708a3a0f jam 0x0f ,core_tx_pwr_ctrl1 
+001a 202039f4 branch set_rf_ldo_cfg89_2 
+
+p_set_tx_power_6db:
+001b 708a3b70 jam 0x70 ,0x8a3b 
+001c 708a3c1f jam 0x1f ,0x8a3c 
+001d 708a39c9 jam 0xc9 ,core_tx_pwr_ctrl0 
+001e 20200019 branch p_set_tx_power_0db + 3 
+
+p_set_tx_power_f20db:
+001f 708a3985 jam 0x85 ,core_tx_pwr_ctrl0 
+0020 708a3a04 jam 0x04 ,core_tx_pwr_ctrl1 
+0021 708a14a3 jam 0xa3 ,core_rf_ldo_cfg8 
+0022 708a150a jam 0x0a ,core_rf_ldo_cfg9 
+0023 708a3b18 jam 0x18 ,0x8a3b 
+0024 708a3c0f jam 0x0f ,0x8a3c 
+0025 20600000 rtn 
 
 p_initialize_radio_cont:
-000f 708a7503 jam 0x03 ,core_rx_lna_cfg3 
-0010 708a8500 jam 0 ,core_syn_loopdiv_dsm_cfg 
-0011 20203a1e branch initialize_radio_cont + 1 
+0026 708a7503 jam 0x03 ,core_rx_lna_cfg3 
+0027 708a8500 jam 0 ,core_syn_loopdiv_dsm_cfg 
+0028 70896f10 jam 0x10 ,0x896f 
+0029 20406d31 call wdt_set_disable 
+002a 708a0305 jam 0x05 ,core_clkpll_cfg0 
+002b 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
+002c 20403a44 call initialize_rc_cal 
+002d 20403a3f call initialize_rf_ldo_cfg1 
+002e 20403a3a call initialize_syn_afc_cfg1 
+002f 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
+0030 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
+0031 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
+0032 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
+0033 70896876 jam 0x76 ,core_agc_wb_sat_th 
+0034 70896976 jam 0x76 ,core_agc_nb_sat_th 
+0035 6fe0c09a fetch 1 ,mem_fcomp_div 
+0036 c0840038 bne xtal_16m ,p_initialize_radio_cont_next 
+0037 708a0834 jam 0x34 ,core_clkpll_cfg5 
+
+p_initialize_radio_cont_next:
+0038 708a01ff jam 0xff ,core_clkpll_ctrl1 
+0039 20000064 nop 100 
+003a 708a020e jam 0x0e ,core_clkpll_ctrl2 
+003b 708a0003 jam 0x03 ,core_clkpll_ctrl0 
+003c 20400016 call p_set_tx_power_0db 
+003d 708a9a28 jam 0x28 ,core_tx_mixer_cfg1 
+003e 708a9b3f jam 0x3f ,core_tx_mixer_cfg2 
+003f 20203a35 branch initialize_radio_cont_next_2 
 
 p_lpm_sleep:
-0012 20403c18 call lpm_write_gpio_wakeup 
-0013 20203b48 branch lpm_sleep + 1 
+0040 20403c18 call lpm_write_gpio_wakeup 
+0041 20203b48 branch lpm_sleep + 1 
 
 p_app_init:
 
 p_mouse_init:
-0014 70808073 jam 0x73 ,core_spid_ctrl 
-0015 20406eb3 call enable_authrom 
-0016 2040001e call p_mouse_setting_config 
-0017 204057a0 call mouse_init_sunt 
-0018 20758000 rtn wake 
-0019 204059bd call mouse_le_name_load 
-001a 2040562e call mouse_dpi_config 
-001b 20405cc5 call mouse_drawing_optima_init 
-001c 20400032 call p_mouse_cb_fuction 
-001d 20205234 branch mouse_init + 8 
+0042 70808073 jam 0x73 ,core_spid_ctrl 
+0043 20406eb3 call enable_authrom 
+0044 2040004c call p_mouse_setting_config 
+0045 204057a0 call mouse_init_sunt 
+0046 20758000 rtn wake 
+0047 204059bd call mouse_le_name_load 
+0048 2040562e call mouse_dpi_config 
+0049 20405cc5 call mouse_drawing_optima_init 
+004a 20400083 call p_mouse_cb_fuction 
+004b 20205234 branch mouse_init + 8 
 
 p_mouse_setting_config:
-001e 20758000 rtn wake 
-001f 2040525e call mouse_setting_config 
-0020 c40b8000 rtnbit0 mouse_enable_otp 
+004c 20758000 rtn wake 
+004d 2040525e call mouse_setting_config 
+004e c40b8000 rtnbit0 mouse_enable_otp 
+004f 20400065 call p_mouse_select_angle 
+0050 20400079 call p_mouse_set_sensor_gpio_sleep 
 
 p_mouse_load_otp_info_check:
-0021 20400135 call p_mouse_read_otp_dpi 
-0022 2040014d call p_mouse_read_otp_24g_addr 
+0051 20400159 call p_mouse_read_otp_24g_addr 
 
 p_mouse_otp_load_app_initflag:
-0023 d8400002 arg 2 ,temp 
-0024 dfe007ee arg otp_offset_app_initlag ,pdata 
-0025 da20463d arg mem_store_flag ,rega 
-0026 204068c5 call otpd_read_data_with_pwr_operation 
-0027 6fe1463d fetch 2 ,mem_store_flag 
-0028 d840aa55 arg eeprom_init_flag ,temp 
-0029 98467c00 isub temp ,null 
-002a 20228030 branch p_mouse_load_device_info ,zero 
-002b 20405b76 call mouse_app_initflag_check + 4 
+0052 d8400002 arg 2 ,temp 
+0053 dfe007ee arg otp_offset_app_initlag ,pdata 
+0054 da20463d arg mem_store_flag ,rega 
+0055 204068c5 call otpd_read_data_with_pwr_operation 
+0056 6fe1463d fetch 2 ,mem_store_flag 
+0057 d840aa55 arg eeprom_init_flag ,temp 
+0058 98467c00 isub temp ,null 
+0059 2022805f branch p_mouse_load_device_info ,zero 
+005a 20405b76 call mouse_app_initflag_check + 4 
 
 p_mouse_otp_store_app_initflag:
-002c df200002 arg 2 ,loopcnt 
-002d da20463d arg mem_store_flag ,rega 
-002e dfe007ee arg otp_offset_app_initlag ,pdata 
-002f 20206883 branch otp_write 
+005b df200002 arg 2 ,loopcnt 
+005c da20463d arg mem_store_flag ,rega 
+005d dfe007ee arg otp_offset_app_initlag ,pdata 
+005e 20206883 branch otp_write 
 
 p_mouse_load_device_info:
-0030 7045e500 jam mode_24g_device ,mem_device_flag 
-0031 20205b81 branch mouse_load_device_info + 1 
+005f 20400062 call p_mouse_load_default_dpi 
+0060 7045e500 jam mode_24g_device ,mem_device_flag 
+0061 20205b81 branch mouse_load_device_info + 1 
+
+p_mouse_load_default_dpi:
+0062 6fe0c5c0 fetch 1 ,mem_config_sensor_dpi 
+0063 67e0c63f store 1 ,mem_mouse_dpi 
+0064 20600000 rtn 
+
+p_mouse_select_angle:
+0065 6fe0c5bd fetch 1 ,mem_select_sensor_angle_gpio 
+0066 c17f8000 rtneq gpio_disable 
+0067 d8400040 arg gpcfg_pullup ,temp 
+0068 20406bbd call gpio_config_function_int 
+0069 6848c5bd fetcht 1 ,mem_select_sensor_angle_gpio 
+006a 20406b85 call gpio_get_bit 
+006b 20208073 branch p_mouse_set_sensor_angle_gnd ,true 
+006c 6fe0c5bd fetch 1 ,mem_select_sensor_angle_gpio 
+006d d8400080 arg gpcfg_pulldown ,temp 
+006e 20406bbd call gpio_config_function_int 
+006f 6848c5bd fetcht 1 ,mem_select_sensor_angle_gpio 
+0070 20406b85 call gpio_get_bit 
+0071 20208075 branch p_mouse_set_sensor_angle_float ,true 
+0072 20200077 branch p_mouse_set_sensor_angle_vin 
+
+p_mouse_set_sensor_angle_gnd:
+0073 7045d503 jam mouse_3clk_angle ,mem_config_sensor_angle 
+0074 20600000 rtn 
+
+p_mouse_set_sensor_angle_float:
+0075 7045d500 jam mouse_6clk_angle ,mem_config_sensor_angle 
+0076 20600000 rtn 
+
+p_mouse_set_sensor_angle_vin:
+0077 7045d502 jam mouse_12clk_angle ,mem_config_sensor_angle 
+0078 20600000 rtn 
+
+p_mouse_set_sensor_gpio_sleep:
+0079 6fe0c5bd fetch 1 ,mem_select_sensor_angle_gpio 
+007a c17f8000 rtneq gpio_disable 
+007b 6fe0c5d5 fetch 1 ,mem_config_sensor_angle 
+007c c001807f beq mouse_3clk_angle ,p_mouse_set_sensor_gnd_low_level 
+007d c0010081 beq mouse_12clk_angle ,p_mouse_set_sensor_input_pu 
+007e 20600000 rtn 
+
+p_mouse_set_sensor_gnd_low_level:
+007f 6848c5bd fetcht 1 ,mem_select_sensor_angle_gpio 
+0080 20206b96 branch gpio_out_active 
+
+p_mouse_set_sensor_input_pu:
+0081 6848c5bd fetcht 1 ,mem_select_sensor_angle_gpio 
+0082 2020547f branch mouse_gpio_config_input_pu 
 
 p_mouse_cb_fuction:
-0032 58000045 setarg p_mouse_24g_short_sleep 
-0033 67e14543 store 2 ,mem_cb_24g_transmit_short_sleep 
-0034 58000037 setarg p_mouse_24g_long_sleep 
-0035 67e14545 store 2 ,mem_cb_24g_transmit_long_sleep 
-0036 2020523d branch mouse_cb_fuction + 4 
+0083 58000096 setarg p_mouse_24g_short_sleep 
+0084 67e14543 store 2 ,mem_cb_24g_transmit_short_sleep 
+0085 58000088 setarg p_mouse_24g_long_sleep 
+0086 67e14545 store 2 ,mem_cb_24g_transmit_long_sleep 
+0087 2020523d branch mouse_cb_fuction + 4 
 
 p_mouse_24g_long_sleep:
-0037 20404d15 call g24_lpm_wait 
-0038 24740000 nrtn user 
-0039 6fe0c863 fetch 1 ,mem_24g_device_led_status 
-003a 247a0000 nrtn blank 
-003b 70490501 jam 1 ,mem_mouse_24g_long_sleep_flag 
-003c 20205fa6 branch mouse_24g_long_sleep + 4 
+0088 20404d15 call g24_lpm_wait 
+0089 24740000 nrtn user 
+008a 6fe0c863 fetch 1 ,mem_24g_device_led_status 
+008b 247a0000 nrtn blank 
+008c 70490501 jam 1 ,mem_mouse_24g_long_sleep_flag 
+008d 20205fa6 branch mouse_24g_long_sleep + 4 
 
 p_mouse_24g_short_sleep_clear_wake:
-003d 204074e0 call clear_wake 
-003e 20203c18 branch lpm_write_gpio_wakeup 
+008e 204074e0 call clear_wake 
+008f 20203c18 branch lpm_write_gpio_wakeup 
 
 p_mouse_24g_package_data:
-003f 2040549b call mouse_motion 
-0040 24740000 nrtn user 
-0041 6fe0c905 fetch 1 ,mem_mouse_24g_long_sleep_flag 
-0042 70490500 jam 0 ,mem_mouse_24g_long_sleep_flag 
-0043 245a003d ncall p_mouse_24g_short_sleep_clear_wake ,blank 
-0044 20205e35 branch mouse_24g_package_data + 4 
+0090 2040549b call mouse_motion 
+0091 24740000 nrtn user 
+0092 6fe0c905 fetch 1 ,mem_mouse_24g_long_sleep_flag 
+0093 70490500 jam 0 ,mem_mouse_24g_long_sleep_flag 
+0094 245a008e ncall p_mouse_24g_short_sleep_clear_wake ,blank 
+0095 20205e35 branch mouse_24g_package_data + 4 
 
 p_mouse_24g_short_sleep:
-0045 6fe0c904 fetch 1 ,mem_mouse_sleep_deal_type 
-0046 203a4c75 branch g24_short_sleep ,blank 
-0047 20404d15 call g24_lpm_wait 
-0048 24740000 nrtn user 
-0049 6fe0c863 fetch 1 ,mem_24g_device_led_status 
-004a 247a0000 nrtn blank 
-004b 6fe0c8fb fetch 1 ,mem_mouse_24g_sleep_miss 
-004c 7048fb00 jam 0 ,mem_mouse_24g_sleep_miss 
-004d 1fe67c00 sub pdata ,0 ,null 
-004e 24228054 nbranch p_mouse_24g_short_sleep_last_miss ,zero 
-004f 6849456d fetcht 2 ,mem_24g_retransmit 
-0050 18467c00 sub temp ,0 ,null 
-0051 20228065 branch p_mouse_24g_short_sleep_default ,zero 
-0052 6fe248f0 fetch 4 ,mem_mouse_24g_tx_time_last_delt 
-0053 203a0065 branch p_mouse_24g_short_sleep_default ,blank 
+0096 6fe0c904 fetch 1 ,mem_mouse_sleep_deal_type 
+0097 203a4c75 branch g24_short_sleep ,blank 
+0098 20404d15 call g24_lpm_wait 
+0099 24740000 nrtn user 
+009a 6fe0c863 fetch 1 ,mem_24g_device_led_status 
+009b 247a0000 nrtn blank 
+009c 6fe0c8fb fetch 1 ,mem_mouse_24g_sleep_miss 
+009d 7048fb00 jam 0 ,mem_mouse_24g_sleep_miss 
+009e 1fe67c00 sub pdata ,0 ,null 
+009f 242280a5 nbranch p_mouse_24g_short_sleep_last_miss ,zero 
+00a0 6849456d fetcht 2 ,mem_24g_retransmit 
+00a1 18467c00 sub temp ,0 ,null 
+00a2 202280b6 branch p_mouse_24g_short_sleep_default ,zero 
+00a3 6fe248f0 fetch 4 ,mem_mouse_24g_tx_time_last_delt 
+00a4 203a00b6 branch p_mouse_24g_short_sleep_default ,blank 
 
 p_mouse_24g_short_sleep_last_miss:
-0054 684a4900 fetcht 4 ,mem_mouse_24g_sleep_miss_temp 
-0055 284ffe1f isolate1 31 ,temp 
-0056 2020806c branch p_mouse_24g_sub_miss_temp ,true 
-0057 6fe248f0 fetch 4 ,mem_mouse_24g_tx_time_last_delt 
-0058 9840fe00 iadd temp ,pdata 
+00a5 684a4900 fetcht 4 ,mem_mouse_24g_sleep_miss_temp 
+00a6 284ffe1f isolate1 31 ,temp 
+00a7 202080bd branch p_mouse_24g_sub_miss_temp ,true 
+00a8 6fe248f0 fetch 4 ,mem_mouse_24g_tx_time_last_delt 
+00a9 9840fe00 iadd temp ,pdata 
 
 p_mouse_24g_short_sleep_notify:
-0059 684a48da fetcht 4 ,mem_mouse_24g_tsniff 
-005a 98460400 isub temp ,temp 
-005b 604a4900 storet 4 ,mem_mouse_24g_sleep_miss_temp 
-005c 24210068 nbranch p_mouse_24g_short_sleep_long ,positive 
-005d 6fe1c553 fetch 3 ,mem_24g_short_sleep_set 
-005e 98467e00 isub temp ,pdata 
-005f 24215fda nbranch mouse_24g_short_sleep_2 ,positive 
-0060 d8400600 arg 0x600 ,temp 
-0061 98467c00 isub temp ,null 
-0062 24215fda nbranch mouse_24g_short_sleep_2 ,positive 
+00aa 684a48da fetcht 4 ,mem_mouse_24g_tsniff 
+00ab 98460400 isub temp ,temp 
+00ac 604a4900 storet 4 ,mem_mouse_24g_sleep_miss_temp 
+00ad 242100b9 nbranch p_mouse_24g_short_sleep_long ,positive 
+00ae 6fe1c553 fetch 3 ,mem_24g_short_sleep_set 
+00af 98467e00 isub temp ,pdata 
+00b0 24215fda nbranch mouse_24g_short_sleep_2 ,positive 
+00b1 d8400600 arg 0x600 ,temp 
+00b2 98467c00 isub temp ,null 
+00b3 24215fda nbranch mouse_24g_short_sleep_2 ,positive 
 
 p_mouse_24g_short_sleep2:
-0063 7048fafa jam 250 ,mem_mouse_24g_tx_time_offset 
-0064 20205fc9 branch mouse_24g_short_sleep3 
+00b4 7048fafa jam 250 ,mem_mouse_24g_tx_time_offset 
+00b5 20205fc9 branch mouse_24g_short_sleep3 
 
 p_mouse_24g_short_sleep_default:
-0065 20405fd3 call mouse_24g_miss_temp_clear 
-0066 6fe1c553 fetch 3 ,mem_24g_short_sleep_set 
-0067 20200063 branch p_mouse_24g_short_sleep2 
+00b6 20405fd3 call mouse_24g_miss_temp_clear 
+00b7 6fe1c553 fetch 3 ,mem_24g_short_sleep_set 
+00b8 202000b4 branch p_mouse_24g_short_sleep2 
 
 p_mouse_24g_short_sleep_long:
-0068 18460400 sub temp ,0 ,temp 
-0069 6fe1c553 fetch 3 ,mem_24g_short_sleep_set 
-006a 9840fe00 iadd temp ,pdata 
-006b 20200063 branch p_mouse_24g_short_sleep2 
+00b9 18460400 sub temp ,0 ,temp 
+00ba 6fe1c553 fetch 3 ,mem_24g_short_sleep_set 
+00bb 9840fe00 iadd temp ,pdata 
+00bc 202000b4 branch p_mouse_24g_short_sleep2 
 
 p_mouse_24g_sub_miss_temp:
-006c dfffffff arg -1 ,pdata 
-006d 98465e00 isub temp ,regext 
-006e 6fe248f0 fetch 4 ,mem_mouse_24g_tx_time_last_delt 
-006f 9de67e00 isub regext ,pdata 
-0070 20200059 branch p_mouse_24g_short_sleep_notify 
+00bd dfffffff arg -1 ,pdata 
+00be 98465e00 isub temp ,regext 
+00bf 6fe248f0 fetch 4 ,mem_mouse_24g_tx_time_last_delt 
+00c0 9de67e00 isub regext ,pdata 
+00c1 202000aa branch p_mouse_24g_short_sleep_notify 
 
 p_g24_transmit_no_interrupt:
-0071 20404c84 call g24_txdata_prep 
-0072 24340075 nbranch p_g24_nodata_transmit ,user 
+00c2 20404c84 call g24_txdata_prep 
+00c3 243400c6 nbranch p_g24_nodata_transmit ,user 
 
 p_g24_transmit_start:
-0073 20400086 call p_g24_transmit_process 
-0074 20204c6c branch g24_transmit_start + 1 
+00c4 204000d7 call p_g24_transmit_process 
+00c5 20204c6c branch g24_transmit_start + 1 
 
 p_g24_nodata_transmit:
-0075 6fe0c54d fetch 1 ,mem_24g_abort_pac 
-0076 205a0078 call p_g24_send_abort_packet ,blank 
-0077 20204d02 branch g24_nodata_transmit + 2 
+00c6 6fe0c54d fetch 1 ,mem_24g_abort_pac 
+00c7 205a00c9 call p_g24_send_abort_packet ,blank 
+00c8 20204d02 branch g24_nodata_transmit + 2 
 
 p_g24_send_abort_packet:
-0078 7044d401 jam type_ms ,mem_24g_data_type 
-0079 70454d01 jam 1 ,mem_24g_abort_pac 
-007a 20404c95 call g24_transmit_rf_ctrl_clear 
-007b 67e0c464 store 1 ,mem_24g_txbuf 
-007c 58000000 setarg 0 
-007d 67e3c465 store 7 ,mem_24g_txbuf + 1 
-007e 6fe2454f fetch 4 ,mem_24g_device_addr 
-007f 67e2446c store 4 ,mem_24g_txbuf + 8 
-0080 7044d30c jam 12 ,mem_24g_datalen 
-0081 6fe0c4d4 fetch 1 ,mem_24g_data_type 
-0082 79207e03 set1 bit_abort ,pdata 
-0083 67e0c4d4 store 1 ,mem_24g_data_type 
-0084 2040485e call g24_transmit_prep 
-0085 20200073 branch p_g24_transmit_start 
+00c9 7044d401 jam type_ms ,mem_24g_data_type 
+00ca 70454d01 jam 1 ,mem_24g_abort_pac 
+00cb 20404c95 call g24_transmit_rf_ctrl_clear 
+00cc 67e0c464 store 1 ,mem_24g_txbuf 
+00cd 58000000 setarg 0 
+00ce 67e3c465 store 7 ,mem_24g_txbuf + 1 
+00cf 6fe2454f fetch 4 ,mem_24g_device_addr 
+00d0 67e2446c store 4 ,mem_24g_txbuf + 8 
+00d1 7044d30c jam 12 ,mem_24g_datalen 
+00d2 6fe0c4d4 fetch 1 ,mem_24g_data_type 
+00d3 79207e03 set1 bit_abort ,pdata 
+00d4 67e0c4d4 store 1 ,mem_24g_data_type 
+00d5 2040485e call g24_transmit_prep 
+00d6 202000c4 branch p_g24_transmit_start 
 
 p_g24_transmit_process:
-0086 58000000 setarg 0 
-0087 67e0c54c store 1 ,mem_24g_retry 
-0088 67e1456d store 2 ,mem_24g_retransmit 
+00d7 58000000 setarg 0 
+00d8 67e0c54c store 1 ,mem_24g_retry 
+00d9 67e1456d store 2 ,mem_24g_retransmit 
 
 p_g24_transmit_loop:
-0089 20404cb0 call g24_transmit_receive_ack 
-008a 242c0091 nbranch p_g24_retransmit ,sync 
-008b 24378091 nbranch p_g24_retransmit ,user3 
-008c 20404ccf call g24_ackpayload_parse 
-008d 2040008f call p_mouse_24g_transmit_callback 
-008e 20204ca5 branch g24_transmit_no_ack 
+00da 20404cb0 call g24_transmit_receive_ack 
+00db 242c00e2 nbranch p_g24_retransmit ,sync 
+00dc 243780e2 nbranch p_g24_retransmit ,user3 
+00dd 20404ccf call g24_ackpayload_parse 
+00de 204000e0 call p_mouse_24g_transmit_callback 
+00df 20204ca5 branch g24_transmit_no_ack 
 
 p_mouse_24g_transmit_callback:
-008f 204000a0 call p_mouse_24g_send_time_check 
-0090 20205d8b branch mouse_wakeup_24g 
+00e0 204000f1 call p_mouse_24g_send_time_check 
+00e1 20205d8b branch mouse_wakeup_24g 
 
 p_g24_retransmit:
-0091 6fe0c77f fetch 1 ,mem_mouse_need_soft_reset 
-0092 247a0000 nrtn blank 
-0093 20405bf7 call mouse_select_device_by_pb_button 
+00e2 6fe0c77f fetch 1 ,mem_mouse_need_soft_reset 
+00e3 247a0000 nrtn blank 
+00e4 20405bf7 call mouse_select_device_by_pb_button 
 
 p_g24_retransmit0:
-0094 6fe0c54d fetch 1 ,mem_24g_abort_pac 
-0095 247a0000 nrtn blank 
-0096 6fe14549 fetch 2 ,mem_24g_txfail_cnt 
-0097 1fe0fe01 increase 1 ,pdata 
-0098 67e14549 store 2 ,mem_24g_txfail_cnt 
-0099 6fe0c54a fetch 1 ,mem_24g_txfail_cnt + 1 
-009a c2824cd7 bbit1 4 ,g24_tx_attempt_fail 
-009b 20404cdd call g24_transmit_hop_process 
-009c 6fe1456d fetch 2 ,mem_24g_retransmit 
-009d 1fe0fe01 increase 1 ,pdata 
-009e 67e1456d store 2 ,mem_24g_retransmit 
-009f 20200089 branch p_g24_transmit_loop 
+00e5 6fe0c54d fetch 1 ,mem_24g_abort_pac 
+00e6 247a0000 nrtn blank 
+00e7 6fe14549 fetch 2 ,mem_24g_txfail_cnt 
+00e8 1fe0fe01 increase 1 ,pdata 
+00e9 67e14549 store 2 ,mem_24g_txfail_cnt 
+00ea 6fe0c54a fetch 1 ,mem_24g_txfail_cnt + 1 
+00eb c2824cd7 bbit1 4 ,g24_tx_attempt_fail 
+00ec 20404cdd call g24_transmit_hop_process 
+00ed 6fe1456d fetch 2 ,mem_24g_retransmit 
+00ee 1fe0fe01 increase 1 ,pdata 
+00ef 67e1456d store 2 ,mem_24g_retransmit 
+00f0 202000da branch p_g24_transmit_loop 
 
 p_mouse_24g_send_time_check:
-00a0 6fe0c904 fetch 1 ,mem_mouse_sleep_deal_type 
-00a1 207a0000 rtn blank 
-00a2 6fe0c563 fetch 1 ,mem_24g_transmit_by_interrupt 
-00a3 c000e020 beq g24_tx_timer_int_enable ,mouse_24g_send_timer_first 
-00a4 6fe0c8e9 fetch 1 ,mem_mouse_24g_tx_count 
-00a5 203a6020 branch mouse_24g_send_timer_first ,blank 
-00a6 1b227e00 copy clkn ,pdata 
-00a7 684b48ea fetcht 6 ,mem_mouse_24g_tx_time_last 
-00a8 67e348ea store 6 ,mem_mouse_24g_tx_time_last 
-00a9 2040744f call clk_diff_rt 
-00aa 67e248f0 store 4 ,mem_mouse_24g_tx_time_last_delt 
-00ab 6fe0c8fb fetch 1 ,mem_mouse_24g_sleep_miss 
-00ac 247a0000 nrtn blank 
-00ad 6fe1456d fetch 2 ,mem_24g_retransmit 
-00ae 247a0000 nrtn blank 
-00af 6fe24900 fetch 4 ,mem_mouse_24g_sleep_miss_temp 
-00b0 247a0000 nrtn blank 
-00b1 6fe248f0 fetch 4 ,mem_mouse_24g_tx_time_last_delt 
-00b2 684a48da fetcht 4 ,mem_mouse_24g_tsniff 
-00b3 18438400 lshift temp ,temp 
-00b4 98467c00 isub temp ,null 
-00b5 20216024 branch mouse_24g_send_time_long_wake ,positive 
-00b6 7048fad2 jam 210 ,mem_mouse_24g_tx_time_offset 
-00b7 20405fee call mouse_24g_send_time_check_1 
-00b8 7048fafa jam 250 ,mem_mouse_24g_tx_time_offset 
-00b9 20600000 rtn 
+00f1 6fe0c904 fetch 1 ,mem_mouse_sleep_deal_type 
+00f2 207a0000 rtn blank 
+00f3 6fe0c563 fetch 1 ,mem_24g_transmit_by_interrupt 
+00f4 c000e020 beq g24_tx_timer_int_enable ,mouse_24g_send_timer_first 
+00f5 6fe0c8e9 fetch 1 ,mem_mouse_24g_tx_count 
+00f6 203a6020 branch mouse_24g_send_timer_first ,blank 
+00f7 1b227e00 copy clkn ,pdata 
+00f8 684b48ea fetcht 6 ,mem_mouse_24g_tx_time_last 
+00f9 67e348ea store 6 ,mem_mouse_24g_tx_time_last 
+00fa 2040744f call clk_diff_rt 
+00fb 67e248f0 store 4 ,mem_mouse_24g_tx_time_last_delt 
+00fc 6fe0c8fb fetch 1 ,mem_mouse_24g_sleep_miss 
+00fd 247a0000 nrtn blank 
+00fe 6fe1456d fetch 2 ,mem_24g_retransmit 
+00ff 247a0000 nrtn blank 
+0100 6fe24900 fetch 4 ,mem_mouse_24g_sleep_miss_temp 
+0101 247a0000 nrtn blank 
+0102 6fe248f0 fetch 4 ,mem_mouse_24g_tx_time_last_delt 
+0103 684a48da fetcht 4 ,mem_mouse_24g_tsniff 
+0104 18438400 lshift temp ,temp 
+0105 98467c00 isub temp ,null 
+0106 20216024 branch mouse_24g_send_time_long_wake ,positive 
+0107 7048fad2 jam 210 ,mem_mouse_24g_tx_time_offset 
+0108 20405fee call mouse_24g_send_time_check_1 
+0109 7048fafa jam 250 ,mem_mouse_24g_tx_time_offset 
+010a 20600000 rtn 
 
 p_le_enable_phy_by_pdata:
-00ba 18427e00 copy temp ,pdata 
-00bb c28080bd bbit1 bit_le_2m_phy ,p_le_enable_2m 
-00bc 20203ce3 branch le_enable_phy_by_pdata + 3 
+010b 18427e00 copy temp ,pdata 
+010c c280810e bbit1 bit_le_2m_phy ,p_le_enable_2m 
+010d 20203ce3 branch le_enable_phy_by_pdata + 3 
 
 p_le_enable_2m:
-00bd 708a6d89 jam 0x89 ,core_rx_bq_cfg0 
-00be 20203ce9 branch le_enable_2m 
+010e 708a6d89 jam 0x89 ,core_rx_bq_cfg0 
+010f 20203ce9 branch le_enable_2m 
 
 p_mouse_setgpio_hibernate:
-00bf 70807080 jam 0x80 ,0x8070 
-00c0 20405339 call mouse_setgpio_hibernate + 1 
-00c1 6fe08017 fetch 1 ,mem_gpio_wakeup_low + 1 
-00c2 79207e05 set1 5 ,pdata 
-00c3 67e08017 store 1 ,mem_gpio_wakeup_low + 1 
-00c4 20403c18 call lpm_write_gpio_wakeup 
-00c5 dfe00000 arg 0x00 ,pdata 
-00c6 d84000c0 arg gpcfg_no_ie ,temp 
-00c7 20406bbd call gpio_config_function_int 
-00c8 20405afd call mouse_logo_led_off 
-00c9 20205af0 branch mouse_1io2led_all_off 
+0110 20405339 call mouse_setgpio_hibernate + 1 
+0111 6fe08017 fetch 1 ,mem_gpio_wakeup_low + 1 
+0112 79207e05 set1 5 ,pdata 
+0113 67e08017 store 1 ,mem_gpio_wakeup_low + 1 
+0114 20403c18 call lpm_write_gpio_wakeup 
+0115 20405afd call mouse_logo_led_off 
+0116 20205af0 branch mouse_1io2led_all_off 
 
 p_mouse_3io6key_check:
-00ca 1a627e00 copy regc ,pdata 
-00cb 67e0c850 store 1 ,mem_mouse_key_status 
-00cc 1fe3fe00 lshift pdata ,pdata 
-00cd 1fe22400 copy pdata ,regb 
-00ce 18422600 copy temp ,regc 
-00cf 2040547b call mouse_gpio_config_input_pd 
-00d0 1a620400 copy regc ,temp 
-00d1 20406b85 call gpio_get_bit 
-00d2 7d20a400 nsetflag true ,0 ,regb 
-00d3 20405753 call mouse_check_press 
-00d4 2020573f branch mouse_check_key_connect_gnd_1 
+0117 1a627e00 copy regc ,pdata 
+0118 67e0c850 store 1 ,mem_mouse_key_status 
+0119 1fe3fe00 lshift pdata ,pdata 
+011a 1fe22400 copy pdata ,regb 
+011b 18422600 copy temp ,regc 
+011c 2040547b call mouse_gpio_config_input_pd 
+011d 1a620400 copy regc ,temp 
+011e 20406b85 call gpio_get_bit 
+011f 7d20a400 nsetflag true ,0 ,regb 
+0120 20405753 call mouse_check_press 
+0121 2020573f branch mouse_check_key_connect_gnd_1 
 
 p_mouse_priority_bb_event:
-00d5 1a627e00 copy regc ,pdata 
-00d6 c01e00d9 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-00d7 c01d00e5 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
-00d8 20205914 branch mouse_priority_bb_event + 2 
+0122 1a627e00 copy regc ,pdata 
+0123 c01e0126 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+0124 c01d0132 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
+0125 20205914 branch mouse_priority_bb_event + 2 
 
 p_mouse_24g_attempt_success:
-00d9 6fe244da fetch 4 ,mem_24g_addr 
-00da 67e24533 store 4 ,mem_24g_receiver_addr 
-00db 67e24640 store 4 ,mem_mouse_24g_addr 
-00dc 20404bce call g24_ch_syncword_crc8_init 
-00dd 20405e1b call mouse_device_poweron_led_config 
-00de 20405aa9 call mouse_no_data_timer_init 
-00df 204058c4 call mouse_init_sensor_reset 
-00e0 70476800 jam 0 ,mem_mouse_long_mult_flag 
-00e1 70454700 jam 0 ,mem_24g_conn_sm 
-00e2 70452d00 jam 0 ,mem_24g_reconn_type 
-00e3 684a4533 fetcht 4 ,mem_24g_receiver_addr 
-00e4 20205e17 branch mouse_24g_attempt_success + 11 
+0126 6fe244da fetch 4 ,mem_24g_addr 
+0127 67e24533 store 4 ,mem_24g_receiver_addr 
+0128 67e24640 store 4 ,mem_mouse_24g_addr 
+0129 20404bce call g24_ch_syncword_crc8_init 
+012a 20405e1b call mouse_device_poweron_led_config 
+012b 20405aa9 call mouse_no_data_timer_init 
+012c 204058c4 call mouse_init_sensor_reset 
+012d 70476800 jam 0 ,mem_mouse_long_mult_flag 
+012e 70454700 jam 0 ,mem_24g_conn_sm 
+012f 70452d00 jam 0 ,mem_24g_reconn_type 
+0130 684a4533 fetcht 4 ,mem_24g_receiver_addr 
+0131 20205e17 branch mouse_24g_attempt_success + 11 
 
 p_mouse_24g_attempt_fail:
-00e5 6fe0c54b fetch 1 ,mem_24g_attempt_fail_flag 
-00e6 243a5d80 nbranch mouse_24g_hibernate_set ,blank 
-00e7 6fe0c52d fetch 1 ,mem_24g_reconn_type 
-00e8 c0015df4 beq fast_conn_and_3_0_addr ,mouse_24g_fast_conn_attempt_fail 
-00e9 c00200ec beq pair_and_3_0_addr ,p_mouse_24g_auto_pair_attempt_fail 
-00ea c00180f1 beq receiver_and_3_0_addr ,p_mouse_reconn_dongle_attempt_fail 
-00eb 20205ded branch mouse_24g_attempt_fail_enter_hibernate_next 
+0132 6fe0c54b fetch 1 ,mem_24g_attempt_fail_flag 
+0133 243a5d80 nbranch mouse_24g_hibernate_set ,blank 
+0134 6fe0c52d fetch 1 ,mem_24g_reconn_type 
+0135 c0015df4 beq fast_conn_and_3_0_addr ,mouse_24g_fast_conn_attempt_fail 
+0136 c0020139 beq pair_and_3_0_addr ,p_mouse_24g_auto_pair_attempt_fail 
+0137 c001813e beq receiver_and_3_0_addr ,p_mouse_reconn_dongle_attempt_fail 
+0138 20205ded branch mouse_24g_attempt_fail_enter_hibernate_next 
 
 p_mouse_24g_auto_pair_attempt_fail:
-00ec 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
-00ed c317dded bbit0 mouse_enable_24g_first_auto_pairing ,mouse_24g_attempt_fail_enter_hibernate_next 
-00ee 6fe0c86c fetch 1 ,mem_device_number 
-00ef c000dded beq 1 ,mouse_24g_attempt_fail_enter_hibernate_next 
-00f0 20205dcb branch mouse_24g_first_bluetooth_reconnect 
+0139 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+013a c317dded bbit0 mouse_enable_24g_first_auto_pairing ,mouse_24g_attempt_fail_enter_hibernate_next 
+013b 6fe0c86c fetch 1 ,mem_device_number 
+013c c000dded beq 1 ,mouse_24g_attempt_fail_enter_hibernate_next 
+013d 20205dcb branch mouse_24g_first_bluetooth_reconnect 
 
 p_mouse_reconn_dongle_attempt_fail:
-00f1 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
-00f2 c317dded bbit0 mouse_enable_24g_first_auto_pairing ,mouse_24g_attempt_fail_enter_hibernate_next 
-00f3 c289dded bbit1 mouse_enable_eeprom ,mouse_24g_attempt_fail_enter_hibernate_next 
-00f4 c2895ded bbit1 mouse_enable_flash ,mouse_24g_attempt_fail_enter_hibernate_next 
-00f5 20205dc4 branch mouse_24g_start_auto_pair + 1 
-
-p_mouse_bb_event_timer:
-00f6 20404907 call g24_pair_timeout_timer 
-00f7 20404ba5 call g24_reconn_timeout_timer 
-00f8 20405d6b call mouse_24g_long_sleep_param_update_timer 
-00f9 20405af3 call mouse_logo_led_on_timer 
-00fa 20405a46 call mouse_commbination_key_process 
-00fb 20205a2d branch mouse_bb_event_timer + 15 
+013e 6fe44864 fetch mouse_flag_len ,mem_mouse_flag 
+013f c317dded bbit0 mouse_enable_24g_first_auto_pairing ,mouse_24g_attempt_fail_enter_hibernate_next 
+0140 c289dded bbit1 mouse_enable_eeprom ,mouse_24g_attempt_fail_enter_hibernate_next 
+0141 c2895ded bbit1 mouse_enable_flash ,mouse_24g_attempt_fail_enter_hibernate_next 
+0142 20205dc4 branch mouse_24g_start_auto_pair + 1 
 
 p_mouse_store_device_info:
-00fc 20405b90 call mouse_store_device_info + 1 
-00fd c40b8000 rtnbit0 mouse_enable_otp 
+0143 20405b90 call mouse_store_device_info + 1 
+0144 c40b8000 rtnbit0 mouse_enable_otp 
 
 p_mouse_store_otp_device_info:
-00fe 20400113 call p_mouse_otp_store_dpi 
 
 p_mouse_otp_store_24g_addr:
-00ff dfe00790 arg otp_offset_24g_addr ,pdata 
-0100 1fe22400 copy pdata ,regb 
+0145 dfe00790 arg otp_offset_24g_addr ,pdata 
+0146 1fe22400 copy pdata ,regb 
 
 p_mouse_otp_store_24g_addr_loop:
-0101 20400159 call p_mouse_read_otp_24g_addr_common 
-0102 6fe2490d fetch 4 ,mem_mouse_24g_addr_temp 
-0103 203a010b branch p_mouse_24g_addr_store ,blank 
-0104 67e24909 store 4 ,mem_mouse_24g_addr_last 
-0105 1a40a404 increase 4 ,regb 
-0106 dfe007cf arg otp_offset_24g_addr_end ,pdata 
-0107 9a467c00 isub regb ,null 
-0108 24610000 nrtn positive 
-0109 1a427e00 copy regb ,pdata 
-010a 20200101 branch p_mouse_otp_store_24g_addr_loop 
+0147 20400165 call p_mouse_read_otp_24g_addr_common 
+0148 6fe2490d fetch 4 ,mem_mouse_24g_addr_temp 
+0149 203a0151 branch p_mouse_24g_addr_store ,blank 
+014a 67e24909 store 4 ,mem_mouse_24g_addr_last 
+014b 1a40a404 increase 4 ,regb 
+014c dfe007cf arg otp_offset_24g_addr_end ,pdata 
+014d 9a467c00 isub regb ,null 
+014e 24610000 nrtn positive 
+014f 1a427e00 copy regb ,pdata 
+0150 20200147 branch p_mouse_otp_store_24g_addr_loop 
 
 p_mouse_24g_addr_store:
-010b 6fe24909 fetch 4 ,mem_mouse_24g_addr_last 
-010c 684a4640 fetcht 4 ,mem_mouse_24g_addr 
-010d 98467c00 isub temp ,null 
-010e 20628000 rtn zero 
-010f df200004 arg 4 ,loopcnt 
-0110 da204640 arg mem_mouse_24g_addr ,rega 
-0111 1a427e00 copy regb ,pdata 
-0112 20206883 branch otp_write 
-
-p_mouse_otp_store_dpi:
-0113 dfe00760 arg otp_offset_dpi ,pdata 
-0114 1fe22400 copy pdata ,regb 
-
-p_mouse_otp_store_dpi_loop:
-0115 20400141 call p_mouse_read_otp_dpi_common 
-0116 6fe0c907 fetch 1 ,mem_mouse_dpi_temp 
-0117 203a011f branch p_mouse_dpi_store ,blank 
-0118 67e0c906 store 1 ,mem_mouse_dpi_last 
-0119 1a40a401 increase 1 ,regb 
-011a dfe0078f arg otp_offset_dpi_end ,pdata 
-011b 9a467c00 isub regb ,null 
-011c 24610000 nrtn positive 
-011d 1a427e00 copy regb ,pdata 
-011e 20200115 branch p_mouse_otp_store_dpi_loop 
-
-p_mouse_dpi_store:
-011f 6fe0c906 fetch 1 ,mem_mouse_dpi_last 
-0120 1fe17ef0 and pdata ,0xf0 ,pdata 
-0121 203a0128 branch p_mouse_dpi_store_next ,blank 
-0122 6fe0c63f fetch 1 ,mem_mouse_dpi 
-0123 67e0c908 store 1 ,mem_mouse_otp_dpi_value 
-
-p_mouse_dpi_store_end:
-0124 df200001 arg 1 ,loopcnt 
-0125 1a427e00 copy regb ,pdata 
-0126 da204908 arg mem_mouse_otp_dpi_value ,rega 
-0127 20206883 branch otp_write 
-
-p_mouse_dpi_store_next:
-0128 6fe0c906 fetch 1 ,mem_mouse_dpi_last 
-0129 6848c63f fetcht 1 ,mem_mouse_dpi 
-012a 98467c00 isub temp ,null 
-012b 20628000 rtn zero 
-012c 18520400 lshift4 temp ,temp 
-012d 9840fe00 iadd temp ,pdata 
-012e 67e0c908 store 1 ,mem_mouse_otp_dpi_value 
-012f 1a427e00 copy regb ,pdata 
-0130 d8400760 arg otp_offset_dpi ,temp 
-0131 98467c00 isub temp ,null 
-0132 20228124 branch p_mouse_dpi_store_end ,zero 
-0133 1a40a5ff increase -1 ,regb 
-0134 20200124 branch p_mouse_dpi_store_end 
-
-p_mouse_read_otp_dpi:
-0135 dfe00760 arg otp_offset_dpi ,pdata 
-0136 1fe22400 copy pdata ,regb 
-
-p_mouse_read_otp_dpi_loop:
-0137 20400141 call p_mouse_read_otp_dpi_common 
-0138 6fe0c907 fetch 1 ,mem_mouse_dpi_temp 
-0139 203a0144 branch p_mouse_dpi_load ,blank 
-013a 67e0c906 store 1 ,mem_mouse_dpi_last 
-013b 1a40a401 increase 1 ,regb 
-013c dfe0078f arg otp_offset_dpi_end ,pdata 
-013d 9a467c00 isub regb ,null 
-013e 24210144 nbranch p_mouse_dpi_load ,positive 
-013f 1a427e00 copy regb ,pdata 
-0140 20200137 branch p_mouse_read_otp_dpi_loop 
-
-p_mouse_read_otp_dpi_common:
-0141 d8400001 arg 1 ,temp 
-0142 da204907 arg mem_mouse_dpi_temp ,rega 
-0143 202068c5 branch otpd_read_data_with_pwr_operation 
-
-p_mouse_dpi_load:
-0144 6fe0c906 fetch 1 ,mem_mouse_dpi_last 
-0145 1fe22600 copy pdata ,regc 
-0146 1fe17ef0 and pdata ,0xf0 ,pdata 
-0147 203a014a branch p_mouse_dpi_load_next ,blank 
-0148 1ff1fe00 rshift4 pdata ,pdata 
-0149 2020014b branch p_mouse_dpi_load_end 
-
-p_mouse_dpi_load_next:
-014a 1a627e00 copy regc ,pdata 
-
-p_mouse_dpi_load_end:
-014b 67e0c63f store 1 ,mem_mouse_dpi 
-014c 20600000 rtn 
+0151 6fe24909 fetch 4 ,mem_mouse_24g_addr_last 
+0152 684a4640 fetcht 4 ,mem_mouse_24g_addr 
+0153 98467c00 isub temp ,null 
+0154 20628000 rtn zero 
+0155 df200004 arg 4 ,loopcnt 
+0156 da204640 arg mem_mouse_24g_addr ,rega 
+0157 1a427e00 copy regb ,pdata 
+0158 20206883 branch otp_write 
 
 p_mouse_read_otp_24g_addr:
-014d dfe00790 arg otp_offset_24g_addr ,pdata 
-014e 1fe22400 copy pdata ,regb 
+0159 dfe00790 arg otp_offset_24g_addr ,pdata 
+015a 1fe22400 copy pdata ,regb 
 
 p_mouse_read_otp_24g_addr_loop:
-014f 20400159 call p_mouse_read_otp_24g_addr_common 
-0150 6fe2490d fetch 4 ,mem_mouse_24g_addr_temp 
-0151 203a015c branch p_mouse_24g_addr_load ,blank 
-0152 67e24909 store 4 ,mem_mouse_24g_addr_last 
-0153 1a40a404 increase 4 ,regb 
-0154 dfe007cf arg otp_offset_24g_addr_end ,pdata 
-0155 9a467c00 isub regb ,null 
-0156 2421015c nbranch p_mouse_24g_addr_load ,positive 
-0157 1a427e00 copy regb ,pdata 
-0158 2020014f branch p_mouse_read_otp_24g_addr_loop 
+015b 20400165 call p_mouse_read_otp_24g_addr_common 
+015c 6fe2490d fetch 4 ,mem_mouse_24g_addr_temp 
+015d 203a0168 branch p_mouse_24g_addr_load ,blank 
+015e 67e24909 store 4 ,mem_mouse_24g_addr_last 
+015f 1a40a404 increase 4 ,regb 
+0160 dfe007cf arg otp_offset_24g_addr_end ,pdata 
+0161 9a467c00 isub regb ,null 
+0162 24210168 nbranch p_mouse_24g_addr_load ,positive 
+0163 1a427e00 copy regb ,pdata 
+0164 2020015b branch p_mouse_read_otp_24g_addr_loop 
 
 p_mouse_read_otp_24g_addr_common:
-0159 d8400004 arg 4 ,temp 
-015a da20490d arg mem_mouse_24g_addr_temp ,rega 
-015b 202068c5 branch otpd_read_data_with_pwr_operation 
+0165 d8400004 arg 4 ,temp 
+0166 da20490d arg mem_mouse_24g_addr_temp ,rega 
+0167 202068c5 branch otpd_read_data_with_pwr_operation 
 
 p_mouse_24g_addr_load:
-015c 6fe24909 fetch 4 ,mem_mouse_24g_addr_last 
-015d 67e24640 store 4 ,mem_mouse_24g_addr 
-015e 20600000 rtn 
+0168 6fe24909 fetch 4 ,mem_mouse_24g_addr_last 
+0169 67e24640 store 4 ,mem_mouse_24g_addr 
+016a 20600000 rtn 
               org 0x3800
 
 start:
@@ -1223,6 +1239,8 @@
 3a32 204039ed call set_tx_power_0db 
 3a33 708a9a2b jam 0x2b ,core_tx_mixer_cfg1 
 3a34 708a9b13 jam 0x13 ,core_tx_mixer_cfg2 
+
+initialize_radio_cont_next_2:
 3a35 20403a71 call init_lpm_ctrl 
 3a36 20000064 nop 100 
 3a37 70804205 jam clksel_dpll ,core_clksel 
Index: output/ramcode.rom
===================================================================
--- /1306ac/branch/mouse/branch/XZR_Project/mouse_public_2M/output/ramcode.rom	(revision 765)
+++ /1306ac/branch/mouse/branch/XZR_Project/mouse_public_2M/output/ramcode.rom	(working copy)
@@ -1,38 +1,85 @@
-c284000c
-c00c000f
-c0100012
-c01e80bf
-c02300ca
-c02600d5
-c02700f6
-c02900fc
-c02d003f
-c0380014
-c07180ba
+c284000f
+c000000c
+c00b8012
+c00c0026
+c01e8110
+c0230117
+c0260122
+c0290143
+c02d0090
+c0380042
+c071810b
 20203a8a
-c02c8071
+20800000
+70808073
+20203803
+c02c80c2
 c17f8000
 20203a8a
+6fe0c116
+c003001b
+c04a001f
+c0553a0f
+708a3b2c
+708a3c17
+708a398a
+708a3a0f
+202039f4
+708a3b70
+708a3c1f
+708a39c9
+20200019
+708a3985
+708a3a04
+708a14a3
+708a150a
+708a3b18
+708a3c0f
+20600000
 708a7503
 708a8500
-20203a1e
+70896f10
+20406d31
+708a0305
+708a7a94
+20403a44
+20403a3f
+20403a3a
+708a8be6
+708a8390
+708a0e0b
+708a0f05
+70896876
+70896976
+6fe0c09a
+c0840038
+708a0834
+708a01ff
+20000064
+708a020e
+708a0003
+20400016
+708a9a28
+708a9b3f
+20203a35
 20403c18
 20203b48
 70808073
 20406eb3
-2040001e
+2040004c
 204057a0
 20758000
 204059bd
 2040562e
 20405cc5
-20400032
+20400083
 20205234
 20758000
 2040525e
 c40b8000
-20400135
-2040014d
+20400065
+20400079
+20400159
 d8400002
 dfe007ee
 da20463d
@@ -40,17 +87,51 @@
 6fe1463d
 d840aa55
 98467c00
-20228030
+2022805f
 20405b76
 df200002
 da20463d
 dfe007ee
 20206883
+20400062
 7045e500
 20205b81
-58000045
+6fe0c5c0
+67e0c63f
+20600000
+6fe0c5bd
+c17f8000
+d8400040
+20406bbd
+6848c5bd
+20406b85
+20208073
+6fe0c5bd
+d8400080
+20406bbd
+6848c5bd
+20406b85
+20208075
+20200077
+7045d503
+20600000
+7045d500
+20600000
+7045d502
+20600000
+6fe0c5bd
+c17f8000
+6fe0c5d5
+c001807f
+c0010081
+20600000
+6848c5bd
+20206b96
+6848c5bd
+2020547f
+58000096
 67e14543
-58000037
+58000088
 67e14545
 2020523d
 20404d15
@@ -65,7 +146,7 @@
 24740000
 6fe0c905
 70490500
-245a003d
+245a008e
 20205e35
 6fe0c904
 203a4c75
@@ -76,21 +157,21 @@
 6fe0c8fb
 7048fb00
 1fe67c00
-24228054
+242280a5
 6849456d
 18467c00
-20228065
+202280b6
 6fe248f0
-203a0065
+203a00b6
 684a4900
 284ffe1f
-2020806c
+202080bd
 6fe248f0
 9840fe00
 684a48da
 98460400
 604a4900
-24210068
+242100b9
 6fe1c553
 98467e00
 24215fda
@@ -101,22 +182,22 @@
 20205fc9
 20405fd3
 6fe1c553
-20200063
+202000b4
 18460400
 6fe1c553
 9840fe00
-20200063
+202000b4
 dfffffff
 98465e00
 6fe248f0
 9de67e00
-20200059
+202000aa
 20404c84
-24340075
-20400086
+243400c6
+204000d7
 20204c6c
 6fe0c54d
-205a0078
+205a00c9
 20204d02
 7044d401
 70454d01
@@ -131,17 +212,17 @@
 79207e03
 67e0c4d4
 2040485e
-20200073
+202000c4
 58000000
 67e0c54c
 67e1456d
 20404cb0
-242c0091
-24378091
+242c00e2
+243780e2
 20404ccf
-2040008f
+204000e0
 20204ca5
-204000a0
+204000f1
 20205d8b
 6fe0c77f
 247a0000
@@ -157,7 +238,7 @@
 6fe1456d
 1fe0fe01
 67e1456d
-20200089
+202000da
 6fe0c904
 207a0000
 6fe0c563
@@ -185,19 +266,15 @@
 7048fafa
 20600000
 18427e00
-c28080bd
+c280810e
 20203ce3
 708a6d89
 20203ce9
-70807080
 20405339
 6fe08017
 79207e05
 67e08017
 20403c18
-dfe00000
-d84000c0
-20406bbd
 20405afd
 20205af0
 1a627e00
@@ -212,8 +289,8 @@
 20405753
 2020573f
 1a627e00
-c01e00d9
-c01d00e5
+c01e0126
+c01d0132
 20205914
 6fe244da
 67e24533
@@ -231,8 +308,8 @@
 243a5d80
 6fe0c52d
 c0015df4
-c00200ec
-c00180f1
+c0020139
+c001813e
 20205ded
 6fe44864
 c317dded
@@ -244,27 +321,20 @@
 c289dded
 c2895ded
 20205dc4
-20404907
-20404ba5
-20405d6b
-20405af3
-20405a46
-20205a2d
 20405b90
 c40b8000
-20400113
 dfe00790
 1fe22400
-20400159
+20400165
 6fe2490d
-203a010b
+203a0151
 67e24909
 1a40a404
 dfe007cf
 9a467c00
 24610000
 1a427e00
-20200101
+20200147
 6fe24909
 684a4640
 98467c00
@@ -273,76 +343,18 @@
 da204640
 1a427e00
 20206883
-dfe00760
-1fe22400
-20400141
-6fe0c907
-203a011f
-67e0c906
-1a40a401
-dfe0078f
-9a467c00
-24610000
-1a427e00
-20200115
-6fe0c906
-1fe17ef0
-203a0128
-6fe0c63f
-67e0c908
-df200001
-1a427e00
-da204908
-20206883
-6fe0c906
-6848c63f
-98467c00
-20628000
-18520400
-9840fe00
-67e0c908
-1a427e00
-d8400760
-98467c00
-20228124
-1a40a5ff
-20200124
-dfe00760
-1fe22400
-20400141
-6fe0c907
-203a0144
-67e0c906
-1a40a401
-dfe0078f
-9a467c00
-24210144
-1a427e00
-20200137
-d8400001
-da204907
-202068c5
-6fe0c906
-1fe22600
-1fe17ef0
-203a014a
-1ff1fe00
-2020014b
-1a627e00
-67e0c63f
-20600000
 dfe00790
 1fe22400
-20400159
+20400165
 6fe2490d
-203a015c
+203a0168
 67e24909
 1a40a404
 dfe007cf
 9a467c00
-2421015c
+24210168
 1a427e00
-2020014f
+2020015b
 d8400004
 da20490d
 202068c5
Index: output/sched.rom
===================================================================
--- /1306ac/branch/mouse/branch/XZR_Project/mouse_public_2M/output/sched.rom	(revision 765)
+++ /1306ac/branch/mouse/branch/XZR_Project/mouse_public_2M/output/sched.rom	(working copy)
@@ -1,13 +1,16 @@
 443c: 12 21 92 71 51 61
 
 01de:5a
-4003:01
+4000:01
+00 
+80
 01
 
-00 00 
+
+00 00 00 
 20 
 40 
-50 
+10 
 04
 04
 00 00 
@@ -70,7 +73,7 @@
 45a8:58 02  
 
 00 
-64 
+05 
 94 
 45b3:
 01  
@@ -105,7 +108,7 @@
 ff  
 ff  
 ff  
-07  
+ff  
 
 
 
@@ -117,6 +120,13 @@
 466d:05
 
 
+
+
+
+
+
+
+
 467d:
 03	
 04	
@@ -133,19 +143,19 @@
 11	
 0e	
 
-468c:
-09 5a
-26 34
-19 04
-09 00
-ff ff
 
-46a0:
-09 5a
-0d 10
-1d ed
-7d 80
-ff ff
+
+
+
+
+
+
+
+
+
+
+
+
 
 46e6:
 09 5a
@@ -186,15 +196,15 @@
 
 
 
-472a:
-09 5a
-06 02
-09 69
-0d 48
-0e 9f
-0f ba
-09 00
-ff ff	
+
+
+
+
+
+
+
+
+
 
 
 
@@ -304,7 +314,7 @@
 
 
 
-03
+02
 
 
 
@@ -315,13 +325,13 @@
 
 
 
-bb
+bf
 
 
 01   
 
 
-4872:64 00	
+4872:05 00	
 64 00	
 70 17   
 
@@ -332,22 +342,20 @@
 
 
 
-4883:03 
-489a:02    
-42 00		
-
-
-
-
-
+00 00 
+90 01			
 
 
 
 
+4883:03 
+489a:02    
+42 00		
 
 
 
 
+48c3:14	
 
 
 
Index: program/bt.prog
===================================================================
--- /1306ac/branch/mouse/branch/XZR_Project/mouse_public_2M/program/bt.prog	(revision 765)
+++ /1306ac/branch/mouse/branch/XZR_Project/mouse_public_2M/program/bt.prog	(working copy)
@@ -826,7 +826,7 @@
 	
 	jam 0x2b,core_tx_mixer_cfg1
 	jam 0x13,core_tx_mixer_cfg2
-
+initialize_radio_cont_next_2:
 	call init_lpm_ctrl
 	nop 100
 	jam clksel_dpll,core_clksel
@@ -1024,8 +1024,8 @@
 
 
 /*
-ÕâÊÇ1308/7/6Ð¾Æ¬Éè¼ÆÐèÒªÈÆ¹ýµÄÒ»¸öÎÊÌâ,Èç¹ûÐ¾Æ¬Í¬ÊÂÈ·ÈÏÐÞ¸´ºó£¬¿ÉÒÔÉ¾³ý¡£
-ÐÞ¸´µÄÎÊÌâÊÇ£¬½â¾öÔÚlpmÄ£Ê½ÏÂ£¬Ð¾Æ¬»áËæ»ú³öÏÖ¼¸Ê®Î¢°²µÄÒì³£µçÁ÷¡£
+ï¿½ï¿½ï¿½ï¿½1308/7/6Ð¾Æ¬ï¿½ï¿½ï¿½ï¿½ï¿½Òªï¿½Æ¹ï¿½ï¿½ï¿½Ò»ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½,ï¿½ï¿½ï¿½Ð¾Æ¬Í¬ï¿½ï¿½È·ï¿½ï¿½ï¿½Þ¸ï¿½ï¿½ó£¬¿ï¿½ï¿½ï¿½É¾ï¿½ï¿½ï¿½ï¿½
+ï¿½Þ¸ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½Ç£ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½lpmÄ£Ê½ï¿½Â£ï¿½Ð¾Æ¬ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½Ö¼ï¿½Ê®Î¢ï¿½ï¿½ï¿½ï¿½ï¿½ì³£ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½
 */
 ldo_abb_en_init:
 	rtn wake
Index: program/patch.prog
===================================================================
--- /1306ac/branch/mouse/branch/XZR_Project/mouse_public_2M/program/patch.prog	(revision 765)
+++ /1306ac/branch/mouse/branch/XZR_Project/mouse_public_2M/program/patch.prog	(working copy)
@@ -1,7 +1,8 @@
 
 define G24_NEW_REVISION
+// define DPI_LOAD_AND_STORE
 //define SENSOR_ANGLE_ICE_SDIO
-// define SELECT_ANGLE
+define SELECT_ANGLE
 // define KA8G2_SENSOR
 //define 1io2led
 
@@ -9,8 +10,10 @@
 ifdef SENSOR_ANGLE_ICE_SDIO
 	beq patch06_7,p_mouse_sensor_set_angle
 endif
+	beq patch00_0,p_soft_reset
+	beq patch02_7,p_tx_on_next
 	beq patch03_0,p_initialize_radio_cont
-	beq patch04_0,p_lpm_sleep
+	// beq patch04_0,p_lpm_sleep
 	// beq patch07_0,p_mouse_start_work
 	beq patch07_5,p_mouse_setgpio_hibernate
 ifdef KA8G2_SENSOR
@@ -21,7 +24,7 @@
 	beq patch09_0,p_mouse_init_sensor
 endif
 	beq patch09_4,p_mouse_priority_bb_event
-	beq patch09_6,p_mouse_bb_event_timer
+	// beq patch09_6,p_mouse_bb_event_timer
 	beq patch0a_2,p_mouse_store_device_info
 	beq patch0b_2,p_mouse_24g_package_data
 	//beq patch0b_6,p_mouse_ui_led_off_static
@@ -30,6 +33,11 @@
 	beq patch1c_3,p_le_enable_phy_by_pdata
 	branch assert
 	
+p_soft_reset:
+	clear_stack
+	jam 0x73,core_spid_ctrl
+	branch soft_reset+2
+
 pf_patch_ext:
 ifdef G24_NEW_REVISION
 	beq patch2b_1,p_g24_transmit_no_interrupt
@@ -37,10 +45,75 @@
 	rtneq patch3f_7
 	branch assert
 
+
+p_tx_on_next:
+	fetch 1,mem_tx_power
+	//beq TX_POWER_3DB,p_set_tx_power_3db
+	beq TX_POWER_6DB,p_set_tx_power_6db
+	//beq TX_POWER_10DB,set_tx_power_10db
+	beq TX_POWER_F20DB,p_set_tx_power_f20db
+	//beq TX_POWER_F30DB,set_tx_power_f30db
+	beq TX_POWER_FACTORY,set_tx_power_factory
+p_set_tx_power_0db:
+	jam 0x2c,0x8a3b
+	jam 0x17,0x8a3c
+	jam 0x8a,core_tx_pwr_ctrl0
+	jam 0x0f,core_tx_pwr_ctrl1
+	branch set_rf_ldo_cfg89_2
+
+
+p_set_tx_power_6db:
+	jam 0x70,0x8a3b
+	jam 0x1f,0x8a3c
+	jam 0xc9,core_tx_pwr_ctrl0
+	branch p_set_tx_power_0db+3
+
+p_set_tx_power_f20db:
+	jam 0x85,core_tx_pwr_ctrl0
+	jam 0x04,core_tx_pwr_ctrl1
+	jam 0xa3,core_rf_ldo_cfg8	
+	jam 0x0a,core_rf_ldo_cfg9
+	jam 0x18,0x8a3b
+	jam 0x0f,0x8a3c
+	rtn
+
 p_initialize_radio_cont:
 	jam 0x03,core_rx_lna_cfg3
 	jam 0,core_syn_loopdiv_dsm_cfg
-	branch initialize_radio_cont+1
+	jam 0x10,0x896f
+	// branch initialize_radio_cont+1
+
+	call wdt_set_disable
+
+	jam 0x05,core_clkpll_cfg0
+	jam 0x94,core_rx_iqadc_cfg
+	call initialize_rc_cal
+	call initialize_rf_ldo_cfg1
+	call initialize_syn_afc_cfg1
+	jam 0xe6,core_syn_aac_cfg1
+
+	//optimize RX SX pn
+	jam 0x90,core_syn_pfd_lkd_cfg
+	jam 0x0b,core_rf_ldo_cfg2
+	jam 0x05,core_rf_ldo_cfg3
+
+	//Improve auto agc
+	jam 0x76,core_agc_wb_sat_th
+	jam 0x76,core_agc_nb_sat_th
+
+	fetch 1,mem_fcomp_div
+	bne XTAL_16M,p_initialize_radio_cont_next
+	jam 0x34,core_clkpll_cfg5		//16M XTAL
+p_initialize_radio_cont_next:
+	jam 0xff,core_clkpll_ctrl1
+	nop 100
+	jam 0x0e,core_clkpll_ctrl2
+	jam 0x03,core_clkpll_ctrl0
+	
+	call p_set_tx_power_0db
+	jam 0x28,core_tx_mixer_cfg1
+	jam 0x3f,core_tx_mixer_cfg2
+	branch initialize_radio_cont_next_2
 
 p_lpm_sleep:
 	call lpm_write_gpio_wakeup
@@ -113,7 +186,9 @@
 	call p_mouse_set_sensor_gpio_sleep
 endif
 p_mouse_load_otp_info_check:
+ifdef DPI_LOAD_AND_STORE
 	call p_mouse_read_otp_dpi
+endif
 	call p_mouse_read_otp_24g_addr
 p_mouse_otp_load_app_initflag:
 	arg 2,temp
@@ -133,9 +208,20 @@
 	branch otp_write
 
 p_mouse_load_device_info:
+ifdef DPI_LOAD_AND_STORE
+	arg OTP_OFFSET_DPI,pdata
+	call p_mouse_read_otp_dpi_common			
+	fetch 1,mem_mouse_dpi_temp
+	call p_mouse_load_default_dpi,blank
+else
+	call p_mouse_load_default_dpi
+endif
 	jam MODE_24G_DEVICE,mem_device_flag
 	branch mouse_load_device_info+1
-
+p_mouse_load_default_dpi:
+	fetch 1,mem_config_sensor_dpi
+	store 1,mem_mouse_dpi
+	rtn
 /*
 p_mouse_ui_led_off_static:
 	copy temp,pdata
@@ -434,17 +520,12 @@
 	branch le_enable_2M
 	
 p_mouse_setgpio_hibernate:
-	jam 0x80,0x8070					//if gpio0 unused,need it
 	call mouse_setgpio_hibernate+1
+	// jam 0x80,0x8070					//if gpio0 unused,need it
 	fetch 1,mem_gpio_wakeup_low+1	//enable ice wakeup
 	set1 5,pdata
 	store 1,mem_gpio_wakeup_low+1
 	call lpm_write_gpio_wakeup
-
-	arg 0x00,pdata
-	arg gpcfg_no_ie,temp
- 	call gpio_config_function_int
-	// call p_mouse_1io2led_all_off
 	call mouse_logo_led_off
 	branch mouse_1io2led_all_off
 
@@ -508,28 +589,28 @@
 	bbit1 MOUSE_ENABLE_FLASH,mouse_24g_attempt_fail_enter_hibernate_next
 	branch mouse_24g_start_auto_pair+1	
 	
-p_mouse_bb_event_timer:
-	// call mouse_adc_read
-	// call mouse_low_voltage_led_timer
-	//24g
-	call g24_pair_timeout_timer
-	call g24_reconn_timeout_timer
-	call mouse_24g_long_sleep_param_update_timer
-	//led
-	// call mouse_device_poweron_timer
-	// call mouse_dpi_led_blink_delay_timer
-ifdef 1io2led
-	call p_mouse_led_multi_timer
-endif
-	call mouse_logo_led_on_timer
-	//poll
-	// call mouse_dpi_key_check_long_press
-	// call mouse_bt_discovery_check
-	call mouse_commbination_key_process
-	// call mouse_check_discovery_timeout_timer
-	//ble
-	// call p_mouse_check_direct_timeout_timer
-	branch mouse_bb_event_timer+15
+// p_mouse_bb_event_timer:
+// 	// call mouse_adc_read
+// 	// call mouse_low_voltage_led_timer
+// 	//24g
+// 	call g24_pair_timeout_timer
+// 	call g24_reconn_timeout_timer
+// 	call mouse_24g_long_sleep_param_update_timer
+// 	//led
+// 	// call mouse_device_poweron_timer
+// 	// call mouse_dpi_led_blink_delay_timer
+// ifdef 1io2led
+// 	call p_mouse_led_multi_timer
+// endif
+// 	call mouse_logo_led_on_timer
+// 	//poll
+// 	// call mouse_dpi_key_check_long_press
+// 	// call mouse_bt_discovery_check
+// 	call mouse_commbination_key_process
+// 	// call mouse_check_discovery_timeout_timer
+// 	//ble
+// 	// call p_mouse_check_direct_timeout_timer
+// 	branch mouse_bb_event_timer+15
 
 // p_mouse_check_direct_timeout_timer:
 // 	arg mem_mouse_direct_timer,regc
@@ -615,7 +696,9 @@
 	call mouse_store_device_info+1
 	rtnbit0 MOUSE_ENABLE_OTP 
 p_mouse_store_otp_device_info:
+ifdef DPI_LOAD_AND_STORE
 	call p_mouse_otp_store_dpi
+endif
 p_mouse_otp_store_24g_addr:
 	arg OTP_OFFSET_24G_ADDR,pdata
 	copy pdata,regb
@@ -641,7 +724,7 @@
 	copy regb,pdata
 	branch otp_write
 
-
+ifdef DPI_LOAD_AND_STORE
 p_mouse_otp_store_dpi:
 	arg OTP_OFFSET_DPI,pdata
 	copy pdata,regb
@@ -720,6 +803,7 @@
 p_mouse_dpi_load_end:
 	store 1,mem_mouse_dpi
 	rtn	
+endif
 
 p_mouse_read_otp_24g_addr:
 	arg OTP_OFFSET_24G_ADDR,pdata
Index: sched/mouse_enhanced.dat
===================================================================
--- /1306ac/branch/mouse/branch/XZR_Project/mouse_public_2M/sched/mouse_enhanced.dat	(revision 765)
+++ /1306ac/branch/mouse/branch/XZR_Project/mouse_public_2M/sched/mouse_enhanced.dat	(working copy)
@@ -1,9 +1,11 @@
+mem_patch00:01
+mem_patch02:80
 mem_patch03:01
-mem_patch04:01
+# mem_patch04:01
 #mem_patch06:80
 mem_patch07:20 #21
 mem_patch08:40 #44 KA8G2_SENSOR
-mem_patch09:50 #51 KA8G2_SENSOR
+mem_patch09:10 #51 KA8G2_SENSOR
 mem_patch0a:04
 mem_patch0b:04
 mem_patch0e:01
@@ -85,7 +87,7 @@
 #bit5 MOUSE_ENABLE_COMMBINATION_KEY_BY_BT_DISCOVERY
 #bit6 MOUSE_ENABLE_DPI_KEY_LONG_PRESS_DISCONVERY
 #bit7 MOUSE_ENABLE_PB_BUTTON_LONG_PRESS_DISCONVERY
-03
+02
 
 #mouse flag byte8
 #bit0 MOUSE_ENABLE_SMOOTHER
@@ -96,7 +98,7 @@
 #bit5 MOUSE_ENABLE_24G_2M_PHY
 #bit6 MOUSE_ENABLE_DOUBLE_DPI_KEY
 #bit7 MOUSE_ENABLE_24G_NEW_REVISION
-bb
+bf
 
 
 mem_mouse_param_config:
@@ -132,7 +134,7 @@
 ff  #mem_mouse_1io2led_multi_24g_gpio
 ff  #mem_mouse_1io2led_multi_bt1_gpio
 ff  #mem_mouse_1io2led_multi_bt2_gpio
-07  #mem_mouse_logo_led_gpio
+ff  #mem_mouse_logo_led_gpio
 
 
 #mouse sensor angle
@@ -168,16 +170,16 @@
 
 
 #led
-#mem_mouse_low_v_led_blink_time:90 01		#200ms on,200ms off
-#mem_mouse_dpi_led_blink_time:90 01			#200ms on,200ms off
+# mem_mouse_low_v_led_blink_time:90 01		#200ms on,200ms off
+mem_mouse_dpi_led_blink_time:90 01			#200ms on,200ms off
 #mem_mouse_disconvey_led_blink_time:e8 03
 # mem_mouse_device_poweron_timer_count_init:14
 
 #1io2led multi start
-# mem_mouse_1io2led_led_enable:00		#00:close 	01:open
+mem_mouse_1io2led_led_enable:00		#00:close 	01:open
 #mem_mouse_bt_led_recon_effect_flag:00		#00:close 	01:open
 # mem_mouse_multi_led_poweron2s_flag_init:01	#00:close 01:open
-# mem_mouse_multi_led_powon2s_timer_init:14	#2s
+mem_mouse_multi_led_powon2s_timer_init:14	#2s
 # mem_mouse_multi_led_blink_timer_init:03
 
 #log led
@@ -232,10 +234,17 @@
 mem_24g_enter_hibernate:00 48 60
 mem_24g_long_sleep_param_update_timer_init:2c 01	#30s
 mem_24g_transmit_by_interrupt_exit_count_init:50 00
-mem_mouse_24g_reconn_timeout_init:64 #10s
-mem_mouse_24g_power_on_fast_conn_timer:64 00	#10s
+mem_mouse_24g_reconn_timeout_init:05 #500ms
+mem_mouse_24g_power_on_fast_conn_timer:05 00	#500ms
 mem_mouse_24g_search_dongle_time_init:64 00	#10s
 mem_store_information_delay_timer_init:05
+# mem_24g_enter_hibernate:00 48 60
+# mem_24g_long_sleep_param_update_timer_init:2c 01	#30s
+# mem_24g_transmit_by_interrupt_exit_count_init:50 00
+# mem_mouse_24g_reconn_timeout_init:64 #10s
+# mem_mouse_24g_power_on_fast_conn_timer:64 00	#10s
+# mem_mouse_24g_search_dongle_time_init:64 00	#10s
+# mem_store_information_delay_timer_init:05
 
 
 mem_mouse_dpi_seting:
@@ -254,19 +263,19 @@
 11	#mem_ka8g2_dpi_2
 0e	#mem_ka8g2_dpi_3
 
-mem_sensor_3212_init:
-09 5a
-26 34
-19 04
-09 00
-ff ff
+# mem_sensor_3212_init:
+# 09 5a
+# 26 34
+# 19 04
+# 09 00
+# ff ff
 
-mem_sensor_3205_init:
-09 5a
-0d 10
-1d ed
-7d 80
-ff ff
+# mem_sensor_3205_init:
+# 09 5a
+# 0d 10
+# 1d ed
+# 7d 80
+# ff ff
 
 mem_sensor_8650_init:
 09 5a
@@ -290,32 +299,32 @@
 ff ff
 ff ff
 
-#mem_sensor_ka8ul_init:
-#09 5a
-#0d 10
-#0e c5
-#5b 9a
-#10 38
-#11 42
-#28 28
-#41 23
-#49 39
-#4a b0
-#4b a0
-#4c 90
-#4d 70
-#09 00
-#ff ff	
+# mem_sensor_ka8ul_init:
+# 09 5a
+# 0d 10
+# 0e c5
+# 5b 9a
+# 10 38
+# 11 42
+# 28 28
+# 41 23
+# 49 39
+# 4a b0
+# 4b a0
+# 4c 90
+# 4d 70
+# 09 00
+# ff ff	
 
-mem_sensor_8009_init:
-09 5a
-06 02
-09 69
-0d 48
-0e 9f
-0f ba
-09 00
-ff ff	
+# mem_sensor_8009_init:
+# 09 5a
+# 06 02
+# 09 69
+# 0d 48
+# 0e 9f
+# 0f ba
+# 09 00
+# ff ff	
 
 # mem_sensor_ka8g2_init:
 # 09 a5
