Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/ZhongXinSheng/ZXS_1319AC_3mode/output/eeprom.dat	(revision 3584)
+++ /YC1308AC/branch/mouse_project/ZhongXinSheng/ZXS_1319AC_3mode/output/eeprom.dat	(working copy)
@@ -2,100 +2,160 @@
 02
 aa
 55
-96
+f2
 04
 c2
 84
 00
-10
+11
 c0
 00
 00
-17
+26
 c0
 01
 80
-1b
+2a
 c0
 45
 80
-64
+73
 c0
 4f
 80
-6f
+7e
 c0
 57
 00
-71
+80
 c0
 58
 00
-58
+67
 c0
 63
 80
-77
+86
 c0
 64
 80
-78
+87
 c0
 65
 00
-83
+92
 c0
 66
 00
-54
+63
+c0
+67
+80
+b4
 c0
 68
 00
-a5
+bc
 c0
 6b
 00
-8c
+9b
 c0
 6c
 80
-b6
+cd
 c0
 6d
-00
-f8
+01
+0f
 20
 20
 13
 7c
 c0
+15
+80
+19
+c0
 19
 80
-34
+43
 c0
 1a
 00
-39
+48
 c0
 43
-80
-ff
+81
+16
 c0
 50
 81
-03
+1a
 c0
 60
 01
-0d
+24
 c0
 76
 01
-22
+39
 20
 20
 13
 7c
+6f
+f0
+8a
+0b
+79
+3f
+fe
+05
+79
+3f
+fe
+04
+79
+3f
+fe
+00
+67
+f0
+8a
+0b
+20
+00
+00
+18
+79
+3f
+fe
+03
+67
+f0
+8a
+0b
+20
+00
+00
+c8
+6f
+f0
+8a
+0a
+79
+3f
+fe
+01
+67
+f0
+8a
+0a
+20
+60
+00
+00
 20
 80
 00
@@ -159,7 +219,7 @@
 20
 40
 00
-28
+37
 20
 20
 08
@@ -191,7 +251,7 @@
 20
 3a
 00
-31
+40
 6f
 e0
 c6
@@ -351,7 +411,7 @@
 20
 40
 00
-39
+48
 20
 20
 3e
@@ -403,7 +463,7 @@
 20
 20
 00
-58
+67
 70
 8a
 8b
@@ -571,19 +631,19 @@
 c0
 1e
 00
-a0
+af
 c0
 02
 00
-99
+a8
 c0
 09
 80
-99
+a8
 c0
 19
 00
-92
+a1
 20
 20
 43
@@ -595,7 +655,7 @@
 c0
 00
 80
-96
+a5
 70
 4b
 76
@@ -667,11 +727,43 @@
 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
+20
+40
+40
 8f
 20
 40
 00
-a8
+bf
 20
 20
 40
@@ -723,7 +815,7 @@
 20
 3a
 00
-c6
+dd
 67
 e0
 cb
@@ -759,7 +851,7 @@
 20
 40
 00
-c3
+da
 20
 40
 40
@@ -771,7 +863,7 @@
 20
 40
 00
-e3
+fa
 20
 40
 44
@@ -779,7 +871,7 @@
 20
 40
 00
-db
+f2
 20
 20
 44
@@ -791,7 +883,7 @@
 da
 40
 00
-c6
+dd
 20
 20
 31
@@ -847,11 +939,11 @@
 20
 41
 00
-d5
+ec
 24
 41
 00
-d9
+f0
 20
 20
 48
@@ -887,7 +979,7 @@
 da
 40
 00
-de
+f5
 20
 20
 45
@@ -918,8 +1010,8 @@
 38
 c0
 00
+01
 00
-e9
 6f
 e4
 4b
@@ -934,8 +1026,8 @@
 ca
 20
 20
-00
-ec
+01
+03
 6f
 e4
 4b
@@ -970,8 +1062,8 @@
 00
 20
 22
-80
-f3
+81
+0a
 20
 20
 44
@@ -1087,7 +1179,7 @@
 c0
 02
 01
-10
+27
 20
 20
 19
@@ -1103,7 +1195,7 @@
 c0
 09
 01
-14
+2b
 20
 20
 1c
@@ -1176,8 +1268,8 @@
 20
 26
 bc
-db
-46
+9c
+8e
 aa
 55
 40
@@ -1209,7 +1301,7 @@
 01
 00
 80
-16
+96
 41
 06
 00
@@ -1221,7 +1313,7 @@
 00
 00
 00
-00
+08
 18
 00
 00
@@ -2342,102 +2434,10 @@
 aa
 aa
 55
-03
+8b
 5a
-01
-fe
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+53
+e0
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-a0
-4e
+2a
+a1
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/ZhongXinSheng/ZXS_1319AC_3mode/output/program.lis	(revision 3584)
+++ /YC1308AC/branch/mouse_project/ZhongXinSheng/ZXS_1319AC_3mode/output/program.lis	(working copy)
@@ -1,380 +1,407 @@
               include "bt_format "
               org 0x0000
-0000 c2840010 bbit1 8 ,pf_patch_ext 
-0001 c0000017 beq patch00_0 ,p_soft_reset 
-0002 c001801b beq patch00_3 ,p_main_loop 
-0003 c0458064 beq patch11_3 ,p_initialize_radio_cont 
-0004 c04f806f beq patch13_7 ,p_init_param 
-0005 c0570071 beq patch15_6 ,p_app_init 
-0006 c0580058 beq patch16_0 ,p_app_evt_100ms_loop 
-0007 c0638077 beq patch18_7 ,p_mouse_app_enter_hibernate 
-0008 c0648078 beq patch19_1 ,p_mouse_setgpio_hibernate 
-0009 c0650083 beq patch19_2 ,p_mouse_lpm_before_common 
-000a c0660054 beq patch19_4 ,p_mouse_adc_read_start 
-000b c06800a5 beq patch1a_0 ,p_mouse_seting_dpi 
-000c c06b008c beq patch1a_6 ,p_mouse_priority_bb_event 
-000d c06c80b6 beq patch1b_1 ,p_mouse_bb_event_timer 
-000e c06d00f8 beq patch1b_2 ,p_mouse_start_discovery 
-000f 2020137c branch loop 
+0000 c2840011 bbit1 8 ,pf_patch_ext 
+0001 c0000026 beq patch00_0 ,p_soft_reset 
+0002 c001802a beq patch00_3 ,p_main_loop 
+0003 c0458073 beq patch11_3 ,p_initialize_radio_cont 
+0004 c04f807e beq patch13_7 ,p_init_param 
+0005 c0570080 beq patch15_6 ,p_app_init 
+0006 c0580067 beq patch16_0 ,p_app_evt_100ms_loop 
+0007 c0638086 beq patch18_7 ,p_mouse_app_enter_hibernate 
+0008 c0648087 beq patch19_1 ,p_mouse_setgpio_hibernate 
+0009 c0650092 beq patch19_2 ,p_mouse_lpm_before_common 
+000a c0660063 beq patch19_4 ,p_mouse_adc_read_start 
+000b c06780b4 beq patch19_7 ,p_mouse_dpi_process 
+000c c06800bc beq patch1a_0 ,p_mouse_seting_dpi 
+000d c06b009b beq patch1a_6 ,p_mouse_priority_bb_event 
+000e c06c80cd beq patch1b_1 ,p_mouse_bb_event_timer 
+000f c06d010f beq patch1b_2 ,p_mouse_start_discovery 
+0010 2020137c branch loop 
 
 pf_patch_ext:
-0010 c0198034 beq patch26_3 ,p_adc_init_data 
-0011 c01a0039 beq patch26_4 ,p_enable_adc 
-0012 c04380ff beq patch30_7 ,p_ui_timer_check 
-0013 c0508103 beq patch34_1 ,p_le_slave_match 
-0014 c060010d beq patch38_0 ,p_le_parse_l2cap 
-0015 c0760122 beq patch3d_4 ,p_g24_lpm_wait 
-0016 2020137c branch loop 
+0011 c0158019 beq patch25_3 ,p_efuse_vdd_off 
+0012 c0198043 beq patch26_3 ,p_adc_init_data 
+0013 c01a0048 beq patch26_4 ,p_enable_adc 
+0014 c0438116 beq patch30_7 ,p_ui_timer_check 
+0015 c050811a beq patch34_1 ,p_le_slave_match 
+0016 c0600124 beq patch38_0 ,p_le_parse_l2cap 
+0017 c0760139 beq patch3d_4 ,p_g24_lpm_wait 
+0018 2020137c branch loop 
+
+p_efuse_vdd_off:
+0019 6ff08a0b fetch 1 ,core_rf_ldo_en1 
+001a 793ffe05 set0 5 ,pdata 
+001b 793ffe04 set0 4 ,pdata 
+001c 793ffe00 set0 0 ,pdata 
+001d 67f08a0b store 1 ,core_rf_ldo_en1 
+001e 20000018 nop 24 
+001f 793ffe03 set0 3 ,pdata 
+0020 67f08a0b store 1 ,core_rf_ldo_en1 
+0021 200000c8 nop 200 
+0022 6ff08a0a fetch 1 ,core_rf_ldo_en0 
+0023 793ffe01 set0 1 ,pdata 
+0024 67f08a0a store 1 ,core_rf_ldo_en0 
+0025 20600000 rtn 
 
 p_soft_reset:
-0017 20800000 clear_stack 
-0018 204030f3 call app_param_init 
-0019 20403bfd call mouse_xtal_init 
-001a 20200804 branch soft_reset + 3 
+0026 20800000 clear_stack 
+0027 204030f3 call app_param_init 
+0028 20403bfd call mouse_xtal_init 
+0029 20200804 branch soft_reset + 3 
 
 p_main_loop:
-001b 2040706c call sp_calc_sequence 
-001c 20407597 call sp_calc_sequence_256 
-001d 20406ea7 call sp_calc_sequence_256_check 
-001e 20401b93 call le_advertising_dispatch + 1 
-001f 2040083a call idle_dispatch 
-0020 20403108 call app_process_idle + 1 
-0021 20400892 call inquiry_dispatch + 1 
-0022 20400b08 call inquiry_scan_dispatch + 1 
-0023 20400b7b call page_scan_dispatch + 1 
-0024 20400823 call connection_dispatch + 1 
-0025 204021d3 call g24_dispatch + 2 
-0026 20400028 call p_lpm_dispatch 
-0027 20200813 branch main_loop 
+002a 2040706c call sp_calc_sequence 
+002b 20407597 call sp_calc_sequence_256 
+002c 20406ea7 call sp_calc_sequence_256_check 
+002d 20401b93 call le_advertising_dispatch + 1 
+002e 2040083a call idle_dispatch 
+002f 20403108 call app_process_idle + 1 
+0030 20400892 call inquiry_dispatch + 1 
+0031 20400b08 call inquiry_scan_dispatch + 1 
+0032 20400b7b call page_scan_dispatch + 1 
+0033 20400823 call connection_dispatch + 1 
+0034 204021d3 call g24_dispatch + 2 
+0035 20400037 call p_lpm_dispatch 
+0036 20200813 branch main_loop 
 
 p_lpm_dispatch:
-0028 20401465 call lpo_calibration 
-0029 6fe1c174 fetch 3 ,mem_clks_per_lpo 
-002a 207a0000 rtn blank 
-002b 6fe0c099 fetch 1 ,mem_lpm_mode 
-002c 207a0000 rtn blank 
-002d 6fe0c764 fetch 1 ,mem_ssp_enable 
-002e 203a0031 branch p_lpm_dispatch_next ,blank 
-002f 6fe0c6b9 fetch 1 ,mem_sp_local_key_invalid 
-0030 207a0000 rtn blank 
+0037 20401465 call lpo_calibration 
+0038 6fe1c174 fetch 3 ,mem_clks_per_lpo 
+0039 207a0000 rtn blank 
+003a 6fe0c099 fetch 1 ,mem_lpm_mode 
+003b 207a0000 rtn blank 
+003c 6fe0c764 fetch 1 ,mem_ssp_enable 
+003d 203a0040 branch p_lpm_dispatch_next ,blank 
+003e 6fe0c6b9 fetch 1 ,mem_sp_local_key_invalid 
+003f 207a0000 rtn blank 
 
 p_lpm_dispatch_next:
-0031 6fe0c6ba fetch 1 ,mem_sc_calc 
-0032 247a0000 nrtn blank 
-0033 202014ea branch lpm_dispatch_next + 3 
+0040 6fe0c6ba fetch 1 ,mem_sc_calc 
+0041 247a0000 nrtn blank 
+0042 202014ea branch lpm_dispatch_next + 3 
 
 p_adc_init_data:
-0034 da20099e arg mem_temp_block2 ,rega 
-0035 d840000c arg 12 ,temp 
-0036 58000030 setarg efuse_offset_adc_param 
-0037 20405e63 call efuse_read_data 
-0038 202060bf branch adc_init_data + 6 
+0043 da20099e arg mem_temp_block2 ,rega 
+0044 d840000c arg 12 ,temp 
+0045 58000030 setarg efuse_offset_adc_param 
+0046 20405e63 call efuse_read_data 
+0047 202060bf branch adc_init_data + 6 
 
 p_enable_adc:
-0039 6a508a12 fetchr regb ,1 ,core_rf_ldo_cfg6 
-003a 708a123d jam 0x3d ,core_rf_ldo_cfg6 
-003b 708a11aa jam 0xaa ,core_rf_ldo_cfg5 
-003c 708a0a0c jam 0x0c ,core_rf_ldo_en0 
-003d 6ff08a09 fetch 1 ,core_clkpll_cfg6 
-003e 79207e07 set1 7 ,pdata 
-003f 67f08a09 store 1 ,core_clkpll_cfg6 
-0040 708a0b04 jam 0x04 ,core_rf_ldo_en1 
-0041 2000003c nop 60 
-0042 708a1600 jam 0 ,core_syn_en 
-0043 708a1706 jam 6 ,core_rx_en0 
-0044 2040611a call read_adc_mode 
-0045 67f08a97 store 1 ,core_gpadc_ctrl 
-0046 7080dc03 jam 0x03 ,core_sum_ctrl 
-0047 2000003c nop 60 
-0048 6ff08053 fetch 1 ,core_sum_en 
-0049 79207e07 set1 7 ,pdata 
-004a 67f08053 store 1 ,core_sum_en 
-004b 200003e8 nop 1000 
-004c 6ff10150 fetch 2 ,core_adc_sum 
-004d 67e144a2 store 2 ,mem_adc_current_value 
-004e 6ff08053 fetch 1 ,core_sum_en 
-004f 793ffe07 set0 7 ,pdata 
-0050 67f08053 store 1 ,core_sum_en 
-0051 708a9700 jam 0 ,core_gpadc_ctrl 
-0052 62508a12 storer regb ,1 ,core_rf_ldo_cfg6 
-0053 20600000 rtn 
+0048 6a508a12 fetchr regb ,1 ,core_rf_ldo_cfg6 
+0049 708a123d jam 0x3d ,core_rf_ldo_cfg6 
+004a 708a11aa jam 0xaa ,core_rf_ldo_cfg5 
+004b 708a0a0c jam 0x0c ,core_rf_ldo_en0 
+004c 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+004d 79207e07 set1 7 ,pdata 
+004e 67f08a09 store 1 ,core_clkpll_cfg6 
+004f 708a0b04 jam 0x04 ,core_rf_ldo_en1 
+0050 2000003c nop 60 
+0051 708a1600 jam 0 ,core_syn_en 
+0052 708a1706 jam 6 ,core_rx_en0 
+0053 2040611a call read_adc_mode 
+0054 67f08a97 store 1 ,core_gpadc_ctrl 
+0055 7080dc03 jam 0x03 ,core_sum_ctrl 
+0056 2000003c nop 60 
+0057 6ff08053 fetch 1 ,core_sum_en 
+0058 79207e07 set1 7 ,pdata 
+0059 67f08053 store 1 ,core_sum_en 
+005a 200003e8 nop 1000 
+005b 6ff10150 fetch 2 ,core_adc_sum 
+005c 67e144a2 store 2 ,mem_adc_current_value 
+005d 6ff08053 fetch 1 ,core_sum_en 
+005e 793ffe07 set0 7 ,pdata 
+005f 67f08053 store 1 ,core_sum_en 
+0060 708a9700 jam 0 ,core_gpadc_ctrl 
+0061 62508a12 storer regb ,1 ,core_rf_ldo_cfg6 
+0062 20600000 rtn 
 
 p_mouse_adc_read_start:
-0054 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
-0055 247a0000 nrtn blank 
-0056 20400039 call p_enable_adc 
-0057 20203ebb branch mouse_adc_read_start + 3 
+0063 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
+0064 247a0000 nrtn blank 
+0065 20400048 call p_enable_adc 
+0066 20203ebb branch mouse_adc_read_start + 3 
 
 p_app_evt_100ms_loop:
-0058 6fe0830d fetch 1 ,mem_app_evt_timer_count 
-0059 207a0000 rtn blank 
-005a 1fe0ffff increase -1 ,pdata 
-005b 67e0830d store 1 ,mem_app_evt_timer_count 
-005c 204077c5 call ui_button_polling 
-005d 204031e3 call app_lpm_wake_auto_lock_timer 
-005e 204031a4 call app_unsniff_delay_timer 
-005f 204031aa call app_discovery_timer 
-0060 20405cdc call flash_write_spi_sm_timer 
-0061 6fe1446f fetch 2 ,mem_cb_event_timer 
-0062 20407e05 call callback_func 
-0063 20200058 branch p_app_evt_100ms_loop 
+0067 6fe0830d fetch 1 ,mem_app_evt_timer_count 
+0068 207a0000 rtn blank 
+0069 1fe0ffff increase -1 ,pdata 
+006a 67e0830d store 1 ,mem_app_evt_timer_count 
+006b 204077c5 call ui_button_polling 
+006c 204031e3 call app_lpm_wake_auto_lock_timer 
+006d 204031a4 call app_unsniff_delay_timer 
+006e 204031aa call app_discovery_timer 
+006f 20405cdc call flash_write_spi_sm_timer 
+0070 6fe1446f fetch 2 ,mem_cb_event_timer 
+0071 20407e05 call callback_func 
+0072 20200067 branch p_app_evt_100ms_loop 
 
 p_initialize_radio_cont:
-0064 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
-0065 2040126a call initialize_syn_afc_cfg1 
-0066 20401271 call initialize_rf_ldo_cfg1 
-0067 20401277 call initialize_rc_cal 
-0068 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
-0069 708a0305 jam 5 ,core_clkpll_cfg0 
-006a 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
-006b 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
-006c 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
-006d 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
-006e 2020125d branch initialize_radio_cont + 8 
+0073 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
+0074 2040126a call initialize_syn_afc_cfg1 
+0075 20401271 call initialize_rf_ldo_cfg1 
+0076 20401277 call initialize_rc_cal 
+0077 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
+0078 708a0305 jam 5 ,core_clkpll_cfg0 
+0079 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
+007a 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
+007b 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
+007c 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
+007d 2020125d branch initialize_radio_cont + 8 
 
 p_init_param:
-006f 70008000 jam 0 ,mem_lmo_tid2 
-0070 202013b7 branch init_param_next + 1 
+007e 70008000 jam 0 ,mem_lmo_tid2 
+007f 202013b7 branch init_param_next + 1 
 
 p_app_init:
 
 p_mouse_init:
-0071 20406df3 call enable_authrom 
-0072 20403bf0 call mouse_setting_config 
-0073 204041a7 call mouse_init_sunt 
-0074 20758000 rtn wake 
-0075 2040408e call mouse_dpi_config 
-0076 20203bc5 branch mouse_init + 4 
+0080 20406df3 call enable_authrom 
+0081 20403bf0 call mouse_setting_config 
+0082 204041a7 call mouse_init_sunt 
+0083 20758000 rtn wake 
+0084 2040408e call mouse_dpi_config 
+0085 20203bc5 branch mouse_init + 4 
 
 p_mouse_app_enter_hibernate:
-0077 20203e23 branch mouse_app_enter_hibernate + 3 
+0086 20203e23 branch mouse_app_enter_hibernate + 3 
 
 p_mouse_setgpio_hibernate:
-0078 204042e9 call mouse_set_sdio_high 
-0079 20407fdc call clear_wake 
-007a 20404015 call mouse_before_hibernate_wheel_gpio_set 
-007b 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-007c 20406069 call gpio_out_active 
-007d 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-007e 20406042 call gpio_clr_wake 
-007f 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-0080 d840003f arg gpcfg_output_high ,temp 
-0081 20406093 call gpio_config_function_int 
-0082 20203e36 branch mouse_setgpio_hibernate + 3 
+0087 204042e9 call mouse_set_sdio_high 
+0088 20407fdc call clear_wake 
+0089 20404015 call mouse_before_hibernate_wheel_gpio_set 
+008a 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+008b 20406069 call gpio_out_active 
+008c 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+008d 20406042 call gpio_clr_wake 
+008e 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
+008f d840003f arg gpcfg_output_high ,temp 
+0090 20406093 call gpio_config_function_int 
+0091 20203e36 branch mouse_setgpio_hibernate + 3 
 
 p_mouse_lpm_before_common:
-0083 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
-0084 20406050 call gpio_config_input 
-0085 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
-0086 20406050 call gpio_config_input 
-0087 20403f88 call mouse_wheel_check 
-0088 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
-0089 d840003f arg gpcfg_output_high ,temp 
-008a 20406093 call gpio_config_function_int 
-008b 20203e44 branch mouse_lpm_before_common_next 
+0092 6848c913 fetcht 1 ,mem_whee_a_data_gpio 
+0093 20406050 call gpio_config_input 
+0094 6848c914 fetcht 1 ,mem_whee_b_data_gpio 
+0095 20406050 call gpio_config_input 
+0096 20403f88 call mouse_wheel_check 
+0097 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
+0098 d840003f arg gpcfg_output_high ,temp 
+0099 20406093 call gpio_config_function_int 
+009a 20203e44 branch mouse_lpm_before_common_next 
 
 p_mouse_priority_bb_event:
-008c 1a627e00 copy regc ,pdata 
-008d c01e00a0 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-008e c0020099 beq bt_evt_reconn_failed ,p_mouse_bb_event_reconn_failed 
-008f c0098099 beq bt_evt_reconn_page_timeout ,p_mouse_bb_event_reconn_failed 
-0090 c0190092 beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
-0091 20204336 branch mouse_priority_bb_event + 2 
+009b 1a627e00 copy regc ,pdata 
+009c c01e00af beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+009d c00200a8 beq bt_evt_reconn_failed ,p_mouse_bb_event_reconn_failed 
+009e c00980a8 beq bt_evt_reconn_page_timeout ,p_mouse_bb_event_reconn_failed 
+009f c01900a1 beq bt_evt_le_start_enc ,p_mouse_le_ll_start_encryt 
+00a0 20204336 branch mouse_priority_bb_event + 2 
 
 p_mouse_le_ll_start_encryt:
-0092 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-0093 c0008096 beq 1 ,p_mouse_le_ll_reconn_start_encryt 
-0094 704b7614 jam 20 ,mem_le_start_encrypt_timer 
-0095 20204373 branch mouse_le_ll_enable_start_enc_flag 
+00a1 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+00a2 c00080a5 beq 1 ,p_mouse_le_ll_reconn_start_encryt 
+00a3 704b7614 jam 20 ,mem_le_start_encrypt_timer 
+00a4 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_ll_reconn_start_encryt:
-0096 2040436c call mouse_updata_le_param 
-0097 704b7605 jam 5 ,mem_le_start_encrypt_timer 
-0098 20204373 branch mouse_le_ll_enable_start_enc_flag 
+00a5 2040436c call mouse_updata_le_param 
+00a6 704b7605 jam 5 ,mem_le_start_encrypt_timer 
+00a7 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_bb_event_reconn_failed:
-0099 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-009a c07fc2f8 beq 0xff ,mouse_buletooth_fast_conn_end 
-009b 6fe1478c fetch 2 ,mem_ui_state_map 
-009c c3860000 rtnbit1 ui_state_btn_down 
-009d c3830000 rtnbit1 ui_state_bt_discovery 
-009e c3858000 rtnbit1 ui_state_ble_adv 
-009f 20203e20 branch mouse_app_enter_hibernate 
+00a8 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+00a9 c07fc2f8 beq 0xff ,mouse_buletooth_fast_conn_end 
+00aa 6fe1478c fetch 2 ,mem_ui_state_map 
+00ab c3860000 rtnbit1 ui_state_btn_down 
+00ac c3830000 rtnbit1 ui_state_bt_discovery 
+00ad c3858000 rtnbit1 ui_state_ble_adv 
+00ae 20203e20 branch mouse_app_enter_hibernate 
 
 p_mouse_24g_attempt_success:
-00a0 6fe2483c fetch 4 ,mem_24g_addr 
-00a1 67e24891 store 4 ,mem_24g_receiver_addr 
-00a2 67e24993 store 4 ,mem_mouse_24g_addr 
-00a3 204048c6 call mouse_device_poweron_timer_init 
-00a4 2020484e branch mouse_24g_attempt_success 
+00af 6fe2483c fetch 4 ,mem_24g_addr 
+00b0 67e24891 store 4 ,mem_24g_receiver_addr 
+00b1 67e24993 store 4 ,mem_mouse_24g_addr 
+00b2 204048c6 call mouse_device_poweron_timer_init 
+00b3 2020484e branch mouse_24g_attempt_success 
+
+p_mouse_dpi_process:
+00b4 20404072 call mouse_dpi_ghost_check 
+00b5 20740000 rtn user 
+00b6 6fe0c992 fetch 1 ,mem_mouse_dpi 
+00b7 1fe0fe01 increase 1 ,pdata 
+00b8 1fe17e03 and pdata ,0x03 ,pdata 
+00b9 67e0c992 store 1 ,mem_mouse_dpi 
+00ba 20404095 call mouse_seting_dpi 
+00bb 20204643 branch mouse_store_eerpom_dpi 
 
 p_mouse_seting_dpi:
-00a5 2040408f call mouse_setting_dpi_4_level 
-00a6 204000a8 call p_mouse_dpi_led_blink_delay 
-00a7 20204098 branch mouse_seting_sensor_type 
+00bc 2040408f call mouse_setting_dpi_4_level 
+00bd 204000bf call p_mouse_dpi_led_blink_delay 
+00be 20204098 branch mouse_seting_sensor_type 
 
 p_mouse_dpi_led_blink_delay:
-00a8 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00a9 c17f8000 rtneq gpio_disable 
-00aa 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-00ab 247a0000 nrtn blank 
-00ac 6fe14883 fetch 2 ,mem_24g_pair_timeout 
-00ad 247a0000 nrtn blank 
-00ae 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
-00af 247a0000 nrtn blank 
-00b0 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-00b1 247a0000 nrtn blank 
-00b2 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-00b3 203a00c6 branch p_mouse_dpi_led_blink_init ,blank 
-00b4 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
-00b5 20600000 rtn 
+00bf 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+00c0 c17f8000 rtneq gpio_disable 
+00c1 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+00c2 247a0000 nrtn blank 
+00c3 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+00c4 247a0000 nrtn blank 
+00c5 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+00c6 247a0000 nrtn blank 
+00c7 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+00c8 247a0000 nrtn blank 
+00c9 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+00ca 203a00dd branch p_mouse_dpi_led_blink_init ,blank 
+00cb 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
+00cc 20600000 rtn 
 
 p_mouse_bb_event_timer:
-00b6 20403e9b call mouse_adc_read 
-00b7 20404956 call mouse_low_voltage_led_timer 
-00b8 2040232b call g24_pair_timeout_timer 
-00b9 20402556 call g24_reconn_timeout_timer 
-00ba 204047cd call mouse_24g_long_sleep_param_update_timer 
-00bb 204048be call mouse_device_poweron_timer 
-00bc 204000c3 call p_mouse_dpi_led_blink_delay_timer 
-00bd 2040407c call mouse_dpi_key_check_long_press 
-00be 204044cc call mouse_bt_discovery_check 
-00bf 204000e3 call p_mouse_commbination_key_process 
-00c0 204044ff call mouse_check_discovery_timeout_timer 
-00c1 204000db call p_mouse_check_direct_timeout_timer 
-00c2 202044c2 branch mouse_bb_event_timer + 13 
+00cd 20403e9b call mouse_adc_read 
+00ce 20404956 call mouse_low_voltage_led_timer 
+00cf 2040232b call g24_pair_timeout_timer 
+00d0 20402556 call g24_reconn_timeout_timer 
+00d1 204047cd call mouse_24g_long_sleep_param_update_timer 
+00d2 204048be call mouse_device_poweron_timer 
+00d3 204000da call p_mouse_dpi_led_blink_delay_timer 
+00d4 2040407c call mouse_dpi_key_check_long_press 
+00d5 204044cc call mouse_bt_discovery_check 
+00d6 204000fa call p_mouse_commbination_key_process 
+00d7 204044ff call mouse_check_discovery_timeout_timer 
+00d8 204000f2 call p_mouse_check_direct_timeout_timer 
+00d9 202044c2 branch mouse_bb_event_timer + 13 
 
 p_mouse_dpi_led_blink_delay_timer:
-00c3 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-00c4 da4000c6 arg p_mouse_dpi_led_blink_init ,regb 
-00c5 2020318a branch timer_single_step 
+00da da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+00db da4000dd arg p_mouse_dpi_led_blink_init ,regb 
+00dc 2020318a branch timer_single_step 
 
 p_mouse_dpi_led_blink_init:
-00c6 6fe0c927 fetch 1 ,mem_config_sensor_type 
-00c7 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-00c8 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-00c9 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00ca 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-00cb 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-00cc 67e14930 store 2 ,mem_mouse_on_time 
-00cd 67e14932 store 2 ,mem_mouse_off_time 
-00ce da200000 arg 0 ,rega 
-00cf 6848c992 fetcht 1 ,mem_mouse_dpi 
-00d0 18408402 increase 2 ,temp 
-00d1 18467c03 sub temp ,3 ,null 
-00d2 204100d5 call p_mouse_dpi_led_blink_init_level_4 ,positive 
-00d3 244100d9 ncall p_mouse_dpi_led_blink_count_clean ,positive 
-00d4 202048ff branch mouse_dpi_led_blink_init_end 
+00dd 6fe0c927 fetch 1 ,mem_config_sensor_type 
+00de c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
+00df c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
+00e0 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+00e1 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
+00e2 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
+00e3 67e14930 store 2 ,mem_mouse_on_time 
+00e4 67e14932 store 2 ,mem_mouse_off_time 
+00e5 da200000 arg 0 ,rega 
+00e6 6848c992 fetcht 1 ,mem_mouse_dpi 
+00e7 18408402 increase 2 ,temp 
+00e8 18467c03 sub temp ,3 ,null 
+00e9 204100ec call p_mouse_dpi_led_blink_init_level_4 ,positive 
+00ea 244100f0 ncall p_mouse_dpi_led_blink_count_clean ,positive 
+00eb 202048ff branch mouse_dpi_led_blink_init_end 
 
 p_mouse_dpi_led_blink_init_level_4:
-00d5 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00d6 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-00d7 18408401 increase 1 ,temp 
-00d8 20600000 rtn 
+00ec 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00ed c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+00ee 18408401 increase 1 ,temp 
+00ef 20600000 rtn 
 
 p_mouse_dpi_led_blink_count_clean:
-00d9 184085fd increase -3 ,temp 
-00da 20600000 rtn 
+00f0 184085fd increase -3 ,temp 
+00f1 20600000 rtn 
 
 p_mouse_check_direct_timeout_timer:
-00db da604b77 arg mem_mouse_direct_timer ,regc 
-00dc da4000de arg p_mouse_check_direct_timeout ,regb 
-00dd 20204506 branch mouse_check_direct_timeout_timer + 2 
+00f2 da604b77 arg mem_mouse_direct_timer ,regc 
+00f3 da4000f5 arg p_mouse_check_direct_timeout ,regb 
+00f4 20204506 branch mouse_check_direct_timeout_timer + 2 
 
 p_mouse_check_direct_timeout:
-00de 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-00df c07fc2f8 beq 0xff ,mouse_buletooth_fast_conn_end 
-00e0 6fe0cab0 fetch 1 ,mem_reconn_times 
-00e1 243a470e nbranch mouse_polling_device ,blank 
-00e2 20203e20 branch mouse_app_enter_hibernate 
+00f5 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+00f6 c07fc2f8 beq 0xff ,mouse_buletooth_fast_conn_end 
+00f7 6fe0cab0 fetch 1 ,mem_reconn_times 
+00f8 243a470e nbranch mouse_polling_device ,blank 
+00f9 20203e20 branch mouse_app_enter_hibernate 
 
 p_mouse_commbination_key_process:
-00e3 6fe0c938 fetch 1 ,mem_device_flag 
-00e4 c00000e9 beq mode_24g_device ,p_mouse_24g_commbination_key_process 
-00e5 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00e6 c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
-00e7 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
-00e8 202000ec branch p_mouse_commbination_key_start 
+00fa 6fe0c938 fetch 1 ,mem_device_flag 
+00fb c0000100 beq mode_24g_device ,p_mouse_24g_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 20200103 branch p_mouse_commbination_key_start 
 
 p_mouse_24g_commbination_key_process:
-00e9 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00ea c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
-00eb 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
+0100 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0101 c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
+0102 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
 
 p_mouse_commbination_key_start:
-00ec 6048cb9d storet 1 ,mem_mouse_commbination_key 
-00ed 20404115 call mouse_check_key_gpio 
-00ee 1fe17e07 and pdata ,0x07 ,pdata 
-00ef 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
-00f0 98467c00 isub temp ,null 
-00f1 202280f3 branch p_mouse_commbination_key_down ,zero 
-00f2 202044eb branch mouse_commbination_key_up 
+0103 6048cb9d storet 1 ,mem_mouse_commbination_key 
+0104 20404115 call mouse_check_key_gpio 
+0105 1fe17e07 and pdata ,0x07 ,pdata 
+0106 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
+0107 98467c00 isub temp ,null 
+0108 2022810a branch p_mouse_commbination_key_down ,zero 
+0109 202044eb branch mouse_commbination_key_up 
 
 p_mouse_commbination_key_down:
-00f3 204044f6 call mouse_combination_ui_timer 
-00f4 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
-00f5 c1008000 rtneq commbination_key_state_down 
-00f6 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
-00f7 20600000 rtn 
+010a 204044f6 call mouse_combination_ui_timer 
+010b 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
+010c c1008000 rtneq commbination_key_state_down 
+010d 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
+010e 20600000 rtn 
 
 p_mouse_start_discovery:
-00f8 6fe1478c fetch 2 ,mem_ui_state_map 
-00f9 2feffe0b isolate1 ui_state_ble_adv ,pdata 
-00fa 2040c581 call mouse_stop_le_adv ,true 
-00fb 6fe1478c fetch 2 ,mem_ui_state_map 
-00fc 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
-00fd 2040c322 call mouse_cancel_reconnect ,true 
-00fe 20204554 branch mouse_start_discovery + 1 
+010f 6fe1478c fetch 2 ,mem_ui_state_map 
+0110 2feffe0b isolate1 ui_state_ble_adv ,pdata 
+0111 2040c581 call mouse_stop_le_adv ,true 
+0112 6fe1478c fetch 2 ,mem_ui_state_map 
+0113 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
+0114 2040c322 call mouse_cancel_reconnect ,true 
+0115 20204554 branch mouse_start_discovery + 1 
 
 p_ui_timer_check:
-00ff 6fe0cbe2 fetch 1 ,mem_power_on_flag 
-0100 245a7861 ncall ui_timer_init ,blank 
-0101 704be200 jam 0 ,mem_power_on_flag 
-0102 20207851 branch ui_timer_check + 1 
+0116 6fe0cbe2 fetch 1 ,mem_power_on_flag 
+0117 245a7861 ncall ui_timer_init ,blank 
+0118 704be200 jam 0 ,mem_power_on_flag 
+0119 20207851 branch ui_timer_check + 1 
 
 p_le_slave_match:
-0103 6fe0c3dd fetch 1 ,mem_le_md_count 
-0104 1fe0fe01 pincrease 1 
-0105 67e0c3dd store 1 ,mem_le_md_count 
-0106 c006165a beq le_md_max_count ,le_slave_cont 
-0107 2040191b call le_acknowledge 
-0108 2040196a call le_prepare_tx 
-0109 6fe082bd fetch 1 ,mem_le_tx_phy 
-010a 2040168b call le_enable_phy_by_pdata 
-010b 20401838 call le_transmit 
-010c 20201655 branch le_slave_match + 10 
+011a 6fe0c3dd fetch 1 ,mem_le_md_count 
+011b 1fe0fe01 pincrease 1 
+011c 67e0c3dd store 1 ,mem_le_md_count 
+011d c006165a beq le_md_max_count ,le_slave_cont 
+011e 2040191b call le_acknowledge 
+011f 2040196a call le_prepare_tx 
+0120 6fe082bd fetch 1 ,mem_le_tx_phy 
+0121 2040168b call le_enable_phy_by_pdata 
+0122 20401838 call le_transmit 
+0123 20201655 branch le_slave_match + 10 
 
 p_le_parse_l2cap:
-010d efe10006 ifetch 2 ,contr 
-010e c0020110 beq le_l2cap_cid_att ,p_le_parse_att 
-010f 202019e4 branch le_parse_l2cap + 10 
+0124 efe10006 ifetch 2 ,contr 
+0125 c0020127 beq le_l2cap_cid_att ,p_le_parse_att 
+0126 202019e4 branch le_parse_l2cap + 10 
 
 p_le_parse_att:
-0110 efe18006 ifetch 3 ,contr 
-0111 67e1c436 store 3 ,mem_le_att_opcode 
-0112 c0090114 beq attop_write_request ,p_le_parse_att_write_request 
-0113 20201cd3 branch le_parse_att + 2 
+0127 efe18006 ifetch 3 ,contr 
+0128 67e1c436 store 3 ,mem_le_att_opcode 
+0129 c009012b beq attop_write_request ,p_le_parse_att_write_request 
+012a 20201cd3 branch le_parse_att + 2 
 
 p_le_parse_att_write_request:
-0114 18c22200 copy contr ,rega 
-0115 6fe143d4 fetch 2 ,mem_le_l2cap_size 
-0116 1fe0a5fd add pdata ,-3 ,regb 
-0117 20401a25 call le_writeatt_cb 
-0118 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-0119 203a1e73 branch le_send_att_write_response_check_auth ,blank 
-011a 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
-011b c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
-011c 5800001a setarg 0x001a 
-011d 68494437 fetcht 2 ,mem_le_att_handle 
-011e 98467c00 isub temp ,null 
-011f 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
-0120 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
-0121 20201ec9 branch le_send_att_error_response 
+012b 18c22200 copy contr ,rega 
+012c 6fe143d4 fetch 2 ,mem_le_l2cap_size 
+012d 1fe0a5fd add pdata ,-3 ,regb 
+012e 20401a25 call le_writeatt_cb 
+012f 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+0130 203a1e73 branch le_send_att_write_response_check_auth ,blank 
+0131 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
+0132 c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
+0133 5800001a setarg 0x001a 
+0134 68494437 fetcht 2 ,mem_le_att_handle 
+0135 98467c00 isub temp ,null 
+0136 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
+0137 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
+0138 20201ec9 branch le_send_att_error_response 
 
 p_g24_lpm_wait:
-0122 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
-0123 245a26e1 ncall g24_transmit_by_interrupt_enable ,blank 
-0124 202026bc branch g24_lpm_wait + 1 
+0139 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
+013a 245a26e1 ncall g24_transmit_by_interrupt_enable ,blank 
+013b 202026bc branch g24_lpm_wait + 1 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/ZhongXinSheng/ZXS_1319AC_3mode/program/patch.prog	(revision 3584)
+++ /YC1308AC/branch/mouse_project/ZhongXinSheng/ZXS_1319AC_3mode/program/patch.prog	(working copy)
@@ -13,6 +13,7 @@
 	beq patch19_1,p_mouse_setgpio_hibernate
 	beq patch19_2,p_mouse_lpm_before_common
 	beq patch19_4,p_mouse_adc_read_start
+	beq patch19_7,p_mouse_dpi_process
 	beq patch1a_0,p_mouse_seting_dpi
 	beq patch1a_6,p_mouse_priority_bb_event
 	beq patch1b_1,p_mouse_bb_event_timer
@@ -20,6 +21,7 @@
 	branch loop
 
 pf_patch_ext:
+	beq patch25_3,p_efuse_vdd_off
 	beq patch26_3,p_adc_init_data
 	beq patch26_4,p_enable_adc
 	beq patch30_7,p_ui_timer_check		
@@ -28,7 +30,20 @@
 	beq patch38_0,p_le_parse_l2cap
 	beq patch3d_4,p_g24_lpm_wait
 	branch loop
-
+p_efuse_vdd_off:
+	fetch 1,core_rf_ldo_en1
+	set0 5,pdata
+	set0 4,pdata
+	set0 0,pdata
+	store 1,core_rf_ldo_en1
+	nop 24
+	set0 3,pdata
+	store 1,core_rf_ldo_en1
+	nop 200
+	fetch 1,core_rf_ldo_en0
+	set0 1,pdata
+	store 1,core_rf_ldo_en0
+	rtn
 
 p_soft_reset:
 	clear_stack
@@ -248,6 +263,16 @@
 
 
 ///////////////////dpi led adjust////////////////////////////////////////////////////////////////////
+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_mouse_seting_dpi:
 	call mouse_setting_dpi_4_level
 	call p_mouse_dpi_led_blink_delay
