Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/output/eeprom.dat	(revision 512)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-5e
+6a
 04
 c2
 84
@@ -15,15 +15,15 @@
 c0
 45
 01
-11
+14
 c0
 45
 80
-63
+66
 c0
 4f
 80
-61
+64
 c0
 57
 00
@@ -31,31 +31,31 @@
 c0
 61
 80
-25
+28
 c0
 64
 80
-76
+79
 c0
 65
 00
-86
+89
 c0
 67
 00
-b6
+b9
 c0
 68
 00
-d0
+d3
 c0
 6b
 00
-9c
+9f
 c0
 6c
 80
-e1
+e4
 20
 20
 13
@@ -63,7 +63,7 @@
 c0
 10
 81
-0f
+12
 20
 20
 13
@@ -91,19 +91,31 @@
 20
 40
 00
-19
+1c
 20
 40
 00
-43
+46
 20
 40
 00
-21
+24
+20
+40
+41
+a7
+20
+75
+80
+00
+20
+40
+40
+8e
 20
 20
 3b
-c2
+c5
 6f
 e0
 cb
@@ -159,7 +171,7 @@
 c0
 00
 00
-2a
+2d
 20
 40
 3d
@@ -195,7 +207,7 @@
 20
 40
 00
-3e
+41
 1f
 e1
 7e
@@ -247,7 +259,7 @@
 c2
 00
 00
-39
+3c
 20
 60
 00
@@ -295,7 +307,7 @@
 20
 40
 00
-4d
+50
 68
 48
 c9
@@ -307,7 +319,7 @@
 20
 40
 00
-5d
+60
 20
 20
 3b
@@ -447,7 +459,7 @@
 c0
 84
 00
-70
+73
 70
 8a
 08
@@ -471,7 +483,7 @@
 20
 40
 01
-14
+17
 20
 20
 12
@@ -495,7 +507,7 @@
 c0
 7f
 80
-7f
+82
 68
 48
 c9
@@ -535,7 +547,7 @@
 20
 40
 00
-f3
+f6
 20
 20
 3e
@@ -635,11 +647,11 @@
 c0
 1d
 00
-a0
+a3
 c0
 1e
 00
-ae
+b1
 20
 20
 43
@@ -659,7 +671,7 @@
 c0
 01
 00
-a7
+aa
 c0
 02
 48
@@ -679,7 +691,7 @@
 c2
 97
 80
-ab
+ae
 c2
 98
 48
@@ -691,7 +703,7 @@
 20
 40
 00
-35
+38
 20
 34
 48
@@ -715,7 +727,7 @@
 20
 22
 80
-b4
+b7
 67
 e2
 48
@@ -779,7 +791,7 @@
 24
 34
 00
-c5
+c8
 20
 40
 47
@@ -787,7 +799,7 @@
 20
 40
 00
-c8
+cb
 20
 20
 45
@@ -843,7 +855,7 @@
 20
 40
 00
-d3
+d6
 20
 20
 40
@@ -895,7 +907,7 @@
 20
 3a
 00
-fa
+fd
 67
 e0
 cb
@@ -931,11 +943,11 @@
 20
 40
 00
-f7
+fa
 20
 40
 00
-ea
+ed
 20
 20
 44
@@ -971,7 +983,7 @@
 da
 40
 00
-f3
+f6
 20
 20
 31
@@ -999,7 +1011,7 @@
 da
 40
 00
-fa
+fd
 20
 20
 31
@@ -1055,11 +1067,11 @@
 20
 41
 01
-09
+0c
 24
 41
 01
-0d
+10
 20
 20
 48
@@ -1103,7 +1115,7 @@
 c0
 4f
 81
-14
+17
 20
 20
 12
@@ -1120,8 +1132,8 @@
 20
 12
 2a
-14
-a5
+b3
+99
 aa
 55
 40
@@ -2284,19 +2296,7 @@
 41
 01
 3d
-13
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+33
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-ab
-5e
+90
+12
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/output/program.lis	(revision 512)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/output/program.lis	(working copy)
@@ -2,21 +2,21 @@
               org 0x0000
 0000 c284000e bbit1 8 ,pf_patch_ext 
 0001 c0000010 beq patch00_0 ,p_soft_reset 
-0002 c0450111 beq patch11_2 ,p_txon 
-0003 c0458063 beq patch11_3 ,p_initialize_radio_cont 
-0004 c04f8061 beq patch13_7 ,p_init_param 
+0002 c0450114 beq patch11_2 ,p_txon 
+0003 c0458066 beq patch11_3 ,p_initialize_radio_cont 
+0004 c04f8064 beq patch13_7 ,p_init_param 
 0005 c0570014 beq patch15_6 ,p_app_init 
-0006 c0618025 beq patch18_3 ,p_mouse_start_work 
-0007 c0648076 beq patch19_1 ,p_mouse_setgpio_hibernate 
-0008 c0650086 beq patch19_2 ,p_mouse_lpm_before_common 
-0009 c06700b6 beq patch19_6 ,p_mouse_motion 
-000a c06800d0 beq patch1a_0 ,p_mouse_seting_dpi 
-000b c06b009c beq patch1a_6 ,p_mouse_priority_bb_event 
-000c c06c80e1 beq patch1b_1 ,p_mouse_bb_event_timer 
+0006 c0618028 beq patch18_3 ,p_mouse_start_work 
+0007 c0648079 beq patch19_1 ,p_mouse_setgpio_hibernate 
+0008 c0650089 beq patch19_2 ,p_mouse_lpm_before_common 
+0009 c06700b9 beq patch19_6 ,p_mouse_motion 
+000a c06800d3 beq patch1a_0 ,p_mouse_seting_dpi 
+000b c06b009f beq patch1a_6 ,p_mouse_priority_bb_event 
+000c c06c80e4 beq patch1b_1 ,p_mouse_bb_event_timer 
 000d 2020137c branch loop 
 
 pf_patch_ext:
-000e c010810f beq patch24_1 ,p_spid_init 
+000e c0108112 beq patch24_1 ,p_spid_init 
 000f 2020137c branch loop 
 
 p_soft_reset:
@@ -29,344 +29,347 @@
 
 p_mouse_init:
 0014 20406df3 call enable_authrom 
-0015 20400019 call p_mouse_wheel_set_wakeup 
-0016 20400043 call p_mouse_setting_config 
-0017 20400021 call p_lpm_write_ice_disable 
-0018 20203bc2 branch mouse_init + 1 
+0015 2040001c call p_mouse_wheel_set_wakeup 
+0016 20400046 call p_mouse_setting_config 
+0017 20400024 call p_lpm_write_ice_disable 
+0018 204041a7 call mouse_init_sunt 
+0019 20758000 rtn wake 
+001a 2040408e call mouse_dpi_config 
+001b 20203bc5 branch mouse_init + 4 
 
 p_mouse_wheel_set_wakeup:
-0019 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-001a 207a0000 rtn blank 
-001b 6fe0c913 fetch 1 ,mem_whee_a_data_gpio 
-001c d8400040 arg gpcfg_pullup ,temp 
-001d 20406093 call gpio_config_function_int 
-001e 6fe0c914 fetch 1 ,mem_whee_b_data_gpio 
+001c 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+001d 207a0000 rtn blank 
+001e 6fe0c913 fetch 1 ,mem_whee_a_data_gpio 
 001f d8400040 arg gpcfg_pullup ,temp 
-0020 20206093 branch gpio_config_function_int 
+0020 20406093 call gpio_config_function_int 
+0021 6fe0c914 fetch 1 ,mem_whee_b_data_gpio 
+0022 d8400040 arg gpcfg_pullup ,temp 
+0023 20206093 branch gpio_config_function_int 
 
 p_lpm_write_ice_disable:
-0021 6ff10120 fetch 2 ,core_ucode_flag 
-0022 793ffe0e set0 lpmreg_ice_mode_bit ,pdata 
-0023 67f2004c store 4 ,core_lpm_reg 
-0024 20205caf branch lpm_write2_ctrl_option 
+0024 6ff10120 fetch 2 ,core_ucode_flag 
+0025 793ffe0e set0 lpmreg_ice_mode_bit ,pdata 
+0026 67f2004c store 4 ,core_lpm_reg 
+0027 20205caf branch lpm_write2_ctrl_option 
 
 p_mouse_start_work:
-0025 6fe0c938 fetch 1 ,mem_device_flag 
-0026 c000002a beq mode_24g_device ,p_mouse_24g_start_mode 
-0027 20403d65 call mouse_wakeup_from_power_check 
-0028 243442eb nbranch mouse_buletooth_fast_conn_init ,user 
-0029 20203d59 branch mouse_start_reconnect_device 
+0028 6fe0c938 fetch 1 ,mem_device_flag 
+0029 c000002d beq mode_24g_device ,p_mouse_24g_start_mode 
+002a 20403d65 call mouse_wakeup_from_power_check 
+002b 243442eb nbranch mouse_buletooth_fast_conn_init ,user 
+002c 20203d59 branch mouse_start_reconnect_device 
 
 p_mouse_24g_start_mode:
-002a 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-002b c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
-002c 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-002d c298480c bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
-002e c318c80c bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
-002f 2040003e call p_mouse_key_check_once 
-0030 1fe17e07 and pdata ,0x07 ,pdata 
-0031 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
-0032 98467c00 isub temp ,null 
-0033 2022c827 branch mouse_24g_start_pair_mode ,zero 
-0034 2020480c branch mouse_24g_reconn_general_dongle 
+002d 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+002e c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
+002f 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0030 c298480c bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
+0031 c318c80c bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
+0032 20400041 call p_mouse_key_check_once 
+0033 1fe17e07 and pdata ,0x07 ,pdata 
+0034 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
+0035 98467c00 isub temp ,null 
+0036 2022c827 branch mouse_24g_start_pair_mode ,zero 
+0037 2020480c branch mouse_24g_reconn_general_dongle 
 
 p_g24_factory_check:
-0035 df200002 arg 2 ,loopcnt 
-0036 d8c04993 arg mem_mouse_24g_addr ,contr 
+0038 df200002 arg 2 ,loopcnt 
+0039 d8c04993 arg mem_mouse_24g_addr ,contr 
 
 p_pdata_0xff_check:
-0037 20407e54 call enable_user 
-0038 5800ffff setarg 0xffff 
+003a 20407e54 call enable_user 
+003b 5800ffff setarg 0xffff 
 
 p_pdata_0xff_check_loop:
-0039 e8410006 ifetcht 2 ,contr 
-003a 98467c00 isub temp ,null 
-003b 2442fe56 ncall disable_user ,zero 
-003c c2000039 loop p_pdata_0xff_check_loop 
-003d 20600000 rtn 
+003c e8410006 ifetcht 2 ,contr 
+003d 98467c00 isub temp ,null 
+003e 2442fe56 ncall disable_user ,zero 
+003f c200003c loop p_pdata_0xff_check_loop 
+0040 20600000 rtn 
 
 p_mouse_key_check_once:
-003e 20404121 call mouse_check_key_gpio_once 
-003f 20404115 call mouse_check_key_gpio 
-0040 d8400000 arg 0 ,temp 
-0041 6049cb8e storet 3 ,mem_mouse_lkey_press_status 
-0042 20600000 rtn 
+0041 20404121 call mouse_check_key_gpio_once 
+0042 20404115 call mouse_check_key_gpio 
+0043 d8400000 arg 0 ,temp 
+0044 6049cb8e storet 3 ,mem_mouse_lkey_press_status 
+0045 20600000 rtn 
 
 p_mouse_setting_config:
-0043 20758000 rtn wake 
-0044 20402607 call g24_transmit_init 
-0045 204022ff call g24_chmap_param_init 
-0046 20403f1e call mouse_gpio_init 
-0047 20403d13 call mouse_param_init 
-0048 2040004d call p_mouse_sensor_set_angle 
-0049 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-004a 20406050 call gpio_config_input 
-004b 2040005d call p_ice_gpio_set_float 
-004c 20203bf5 branch mouse_setting_config_next 
+0046 20758000 rtn wake 
+0047 20402607 call g24_transmit_init 
+0048 204022ff call g24_chmap_param_init 
+0049 20403f1e call mouse_gpio_init 
+004a 20403d13 call mouse_param_init 
+004b 20400050 call p_mouse_sensor_set_angle 
+004c 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+004d 20406050 call gpio_config_input 
+004e 20400060 call p_ice_gpio_set_float 
+004f 20203bf5 branch mouse_setting_config_next 
 
 p_mouse_sensor_set_angle:
-004d 6fe0c924 fetch 1 ,mem_sensor_angle_default 
-004e 67e0c928 store 1 ,mem_config_sensor_angle 
-004f 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-0050 c17f8000 rtneq gpio_disable 
-0051 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-0052 d840003e arg gpcfg_output_low ,temp 
-0053 20406093 call gpio_config_function_int 
-0054 6fe0cbe2 fetch 1 ,mem_mouse_reuse_2ice_gpio 
+0050 6fe0c924 fetch 1 ,mem_sensor_angle_default 
+0051 67e0c928 store 1 ,mem_config_sensor_angle 
+0052 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
+0053 c17f8000 rtneq gpio_disable 
+0054 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
 0055 d840003e arg gpcfg_output_low ,temp 
 0056 20406093 call gpio_config_function_int 
-0057 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-0058 20403f56 call mouse_gpio_config_input_pu 
-0059 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-005a 20406059 call gpio_get_bit 
-005b 2440c2aa ncall mouse_sensor_switch_angle ,true 
-005c 20203f54 branch mouse_gpio_config_input_pd 
+0057 6fe0cbe2 fetch 1 ,mem_mouse_reuse_2ice_gpio 
+0058 d840003e arg gpcfg_output_low ,temp 
+0059 20406093 call gpio_config_function_int 
+005a 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+005b 20403f56 call mouse_gpio_config_input_pu 
+005c 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+005d 20406059 call gpio_get_bit 
+005e 2440c2aa ncall mouse_sensor_switch_angle ,true 
+005f 20203f54 branch mouse_gpio_config_input_pd 
 
 p_ice_gpio_set_float:
-005d 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
-005e 2040607f call gpio_set_high_impedance 
-005f 6848cbe2 fetcht 1 ,mem_mouse_reuse_2ice_gpio 
-0060 2020607f branch gpio_set_high_impedance 
+0060 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
+0061 2040607f call gpio_set_high_impedance 
+0062 6848cbe2 fetcht 1 ,mem_mouse_reuse_2ice_gpio 
+0063 2020607f branch gpio_set_high_impedance 
 
 p_init_param:
-0061 70008000 jam 0 ,mem_lmo_tid2 
-0062 202013b7 branch init_param_next + 1 
+0064 70008000 jam 0 ,mem_lmo_tid2 
+0065 202013b7 branch init_param_next + 1 
 
 p_initialize_radio_cont:
-0063 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
-0064 2040126a call initialize_syn_afc_cfg1 
-0065 20401271 call initialize_rf_ldo_cfg1 
-0066 20401277 call initialize_rc_cal 
-0067 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
-0068 708a0305 jam 5 ,core_clkpll_cfg0 
-0069 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
-006a 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
-006b 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
-006c 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
-006d 6fe0c0c5 fetch 1 ,mem_fcomp_div 
-006e c0840070 bne xtal_16m ,p_initialize_radio_cont_next 
-006f 708a0834 jam 0x34 ,core_clkpll_cfg5 
+0066 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
+0067 2040126a call initialize_syn_afc_cfg1 
+0068 20401271 call initialize_rf_ldo_cfg1 
+0069 20401277 call initialize_rc_cal 
+006a 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
+006b 708a0305 jam 5 ,core_clkpll_cfg0 
+006c 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
+006d 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
+006e 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
+006f 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
+0070 6fe0c0c5 fetch 1 ,mem_fcomp_div 
+0071 c0840073 bne xtal_16m ,p_initialize_radio_cont_next 
+0072 708a0834 jam 0x34 ,core_clkpll_cfg5 
 
 p_initialize_radio_cont_next:
-0070 708a01ff jam 0xff ,core_clkpll_ctrl1 
-0071 20000064 nop 100 
-0072 708a020e jam 0x0e ,core_clkpll_ctrl2 
-0073 708a0003 jam 0x03 ,core_clkpll_ctrl0 
-0074 20400114 call p_set_tx_power_pair 
-0075 20201265 branch initialize_radio_cont_next2 
+0073 708a01ff jam 0xff ,core_clkpll_ctrl1 
+0074 20000064 nop 100 
+0075 708a020e jam 0x0e ,core_clkpll_ctrl2 
+0076 708a0003 jam 0x03 ,core_clkpll_ctrl0 
+0077 20400117 call p_set_tx_power_pair 
+0078 20201265 branch initialize_radio_cont_next2 
 
 p_mouse_setgpio_hibernate:
-0076 204042e9 call mouse_set_sdio_high 
-0077 20407fdc call clear_wake 
-0078 20404015 call mouse_before_hibernate_wheel_gpio_set 
-0079 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-007a c07f807f beq gpio_disable ,p_mouse_setgpio_hibernate_skip_public_gpio 
-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 
+0079 204042e9 call mouse_set_sdio_high 
+007a 20407fdc call clear_wake 
+007b 20404015 call mouse_before_hibernate_wheel_gpio_set 
+007c 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+007d c07f8082 beq gpio_disable ,p_mouse_setgpio_hibernate_skip_public_gpio 
+007e 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+007f 20406069 call gpio_out_active 
+0080 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+0081 20406042 call gpio_clr_wake 
 
 p_mouse_setgpio_hibernate_skip_public_gpio:
-007f 6848cbe2 fetcht 1 ,mem_mouse_reuse_2ice_gpio 
-0080 20403f56 call mouse_gpio_config_input_pu 
-0081 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-0082 d840003f arg gpcfg_output_high ,temp 
-0083 20406093 call gpio_config_function_int 
-0084 204000f3 call p_mouse_logo_led_on_timeout 
-0085 20203e36 branch mouse_setgpio_hibernate + 3 
+0082 6848cbe2 fetcht 1 ,mem_mouse_reuse_2ice_gpio 
+0083 20403f56 call mouse_gpio_config_input_pu 
+0084 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
+0085 d840003f arg gpcfg_output_high ,temp 
+0086 20406093 call gpio_config_function_int 
+0087 204000f6 call p_mouse_logo_led_on_timeout 
+0088 20203e36 branch mouse_setgpio_hibernate + 3 
 
 p_mouse_lpm_before_common:
-0086 20403f88 call mouse_wheel_check 
-0087 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
-0088 d840003f arg gpcfg_output_high ,temp 
-0089 20406093 call gpio_config_function_int 
-008a 6fe080a1 fetch 1 ,mem_gpio_wakeup_low + 2 
-008b 793ffe03 set0 3 ,pdata 
-008c 67e080a1 store 1 ,mem_gpio_wakeup_low + 2 
-008d 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-008e 20406042 call gpio_clr_wake 
-008f 20405b04 call twspi_disable 
-0090 6848c918 fetcht 1 ,mem_lbutton_gpio 
-0091 20406036 call gpio_set_wake 
-0092 6848c919 fetcht 1 ,mem_rbutton_gpio 
-0093 20406036 call gpio_set_wake 
-0094 6848c91a fetcht 1 ,mem_mbutton_gpio 
-0095 20406036 call gpio_set_wake 
-0096 6848c90d fetcht 1 ,mem_bk_button_gpio 
-0097 20406036 call gpio_set_wake 
-0098 6848c90e fetcht 1 ,mem_fw_button_gpio 
-0099 20406036 call gpio_set_wake 
-009a 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-009b 20206036 branch gpio_set_wake 
+0089 20403f88 call mouse_wheel_check 
+008a 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
+008b d840003f arg gpcfg_output_high ,temp 
+008c 20406093 call gpio_config_function_int 
+008d 6fe080a1 fetch 1 ,mem_gpio_wakeup_low + 2 
+008e 793ffe03 set0 3 ,pdata 
+008f 67e080a1 store 1 ,mem_gpio_wakeup_low + 2 
+0090 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+0091 20406042 call gpio_clr_wake 
+0092 20405b04 call twspi_disable 
+0093 6848c918 fetcht 1 ,mem_lbutton_gpio 
+0094 20406036 call gpio_set_wake 
+0095 6848c919 fetcht 1 ,mem_rbutton_gpio 
+0096 20406036 call gpio_set_wake 
+0097 6848c91a fetcht 1 ,mem_mbutton_gpio 
+0098 20406036 call gpio_set_wake 
+0099 6848c90d fetcht 1 ,mem_bk_button_gpio 
+009a 20406036 call gpio_set_wake 
+009b 6848c90e fetcht 1 ,mem_fw_button_gpio 
+009c 20406036 call gpio_set_wake 
+009d 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+009e 20206036 branch gpio_set_wake 
 
 p_mouse_priority_bb_event:
-009c 1a627e00 copy regc ,pdata 
-009d c01d00a0 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
-009e c01e00ae beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-009f 20204336 branch mouse_priority_bb_event + 2 
+009f 1a627e00 copy regc ,pdata 
+00a0 c01d00a3 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
+00a1 c01e00b1 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+00a2 20204336 branch mouse_priority_bb_event + 2 
 
 p_mouse_24g_attempt_fail:
-00a0 6fe0c8a5 fetch 1 ,mem_24g_attempt_fail_flag 
-00a1 243a47e1 nbranch mouse_24g_hibernate_set ,blank 
+00a3 6fe0c8a5 fetch 1 ,mem_24g_attempt_fail_flag 
+00a4 243a47e1 nbranch mouse_24g_hibernate_set ,blank 
 
 p_mouse_24g_attempt_fail_next:
-00a2 6fe0c88b fetch 1 ,mem_24g_reconn_type 
-00a3 c00100a7 beq fast_conn_and_3_0_addr ,p_mouse_24g_fast_conn_attempt_fail 
-00a4 c0024844 beq pair_and_3_0_addr ,mouse_24g_auto_pair_attempt_fail 
-00a5 c001c849 beq receiver_and_3_0_addr ,mouse_reconn_dongle_attempt_fail 
-00a6 20204839 branch mouse_24g_attempt_fail_enter_hibernate 
+00a5 6fe0c88b fetch 1 ,mem_24g_reconn_type 
+00a6 c00100aa beq fast_conn_and_3_0_addr ,p_mouse_24g_fast_conn_attempt_fail 
+00a7 c0024844 beq pair_and_3_0_addr ,mouse_24g_auto_pair_attempt_fail 
+00a8 c001c849 beq receiver_and_3_0_addr ,mouse_reconn_dongle_attempt_fail 
+00a9 20204839 branch mouse_24g_attempt_fail_enter_hibernate 
 
 p_mouse_24g_fast_conn_attempt_fail:
-00a7 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00a8 c29780ab bbit1 mouse_enable_24g_first_auto_pairing ,p_mouse_24g_start_auto_pair 
-00a9 c2984811 bbit1 mouse_enable_auto_24g_paring ,mouse_24g_start_auto_pair 
-00aa 20204806 branch mouse_24g_reconn_dongle_start 
+00aa 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00ab c29780ae bbit1 mouse_enable_24g_first_auto_pairing ,p_mouse_24g_start_auto_pair 
+00ac c2984811 bbit1 mouse_enable_auto_24g_paring ,mouse_24g_start_auto_pair 
+00ad 20204806 branch mouse_24g_reconn_dongle_start 
 
 p_mouse_24g_start_auto_pair:
-00ab 20400035 call p_g24_factory_check 
-00ac 20344812 branch mouse_24g_start_auto_pair_next ,user 
-00ad 20204806 branch mouse_24g_reconn_dongle_start 
+00ae 20400038 call p_g24_factory_check 
+00af 20344812 branch mouse_24g_start_auto_pair_next ,user 
+00b0 20204806 branch mouse_24g_reconn_dongle_start 
 
 p_mouse_24g_attempt_success:
-00ae 6fe2483c fetch 4 ,mem_24g_addr 
-00af 684a488d fetcht 4 ,mem_24g_fast_conn_addr 
-00b0 98467c00 isub temp ,null 
-00b1 202280b4 branch p_mouse_24g_attempt_success_skip_store_addr ,zero 
-00b2 67e24891 store 4 ,mem_24g_receiver_addr 
-00b3 67e24993 store 4 ,mem_mouse_24g_addr 
+00b1 6fe2483c fetch 4 ,mem_24g_addr 
+00b2 684a488d fetcht 4 ,mem_24g_fast_conn_addr 
+00b3 98467c00 isub temp ,null 
+00b4 202280b7 branch p_mouse_24g_attempt_success_skip_store_addr ,zero 
+00b5 67e24891 store 4 ,mem_24g_receiver_addr 
+00b6 67e24993 store 4 ,mem_mouse_24g_addr 
 
 p_mouse_24g_attempt_success_skip_store_addr:
-00b4 204048c6 call mouse_device_poweron_timer_init 
-00b5 2020484e branch mouse_24g_attempt_success 
+00b7 204048c6 call mouse_device_poweron_timer_init 
+00b8 2020484e branch mouse_24g_attempt_success 
 
 p_mouse_motion:
-00b6 78547c00 disable user 
-00b7 58000000 setarg 0 
-00b8 67e348d1 store 6 ,mem_mouse_x 
-00b9 20404240 call mouse_check_sensor_data 
-00ba 2040408e call mouse_dpi_config 
-00bb 20403f7e call mouse_zwheel 
-00bc 20403f83 call mouse_t_zwheel 
-00bd 204040dc call mouse_key 
-00be 6fe0c8d0 fetch 1 ,mem_mouse_key 
-00bf 1fe17e1f and_into 0x1f ,pdata 
-00c0 67e0c8d0 store 1 ,mem_mouse_key 
-00c1 243400c5 nbranch p_mouse_motion_nodata ,user 
-00c2 2040471a call mouse_drawing_optima 
-00c3 204000c8 call p_mouse_logo_led_on_check 
-00c4 20204544 branch mouse_no_data_timer_init 
+00b9 78547c00 disable user 
+00ba 58000000 setarg 0 
+00bb 67e348d1 store 6 ,mem_mouse_x 
+00bc 20404240 call mouse_check_sensor_data 
+00bd 2040408e call mouse_dpi_config 
+00be 20403f7e call mouse_zwheel 
+00bf 20403f83 call mouse_t_zwheel 
+00c0 204040dc call mouse_key 
+00c1 6fe0c8d0 fetch 1 ,mem_mouse_key 
+00c2 1fe17e1f and_into 0x1f ,pdata 
+00c3 67e0c8d0 store 1 ,mem_mouse_key 
+00c4 243400c8 nbranch p_mouse_motion_nodata ,user 
+00c5 2040471a call mouse_drawing_optima 
+00c6 204000cb call p_mouse_logo_led_on_check 
+00c7 20204544 branch mouse_no_data_timer_init 
 
 p_mouse_motion_nodata:
-00c5 20404728 call mouse_drawing_optima_init 
-00c6 704be400 jam 0 ,mem_mouse_logo_led_on_check_count 
-00c7 20600000 rtn 
+00c8 20404728 call mouse_drawing_optima_init 
+00c9 704be400 jam 0 ,mem_mouse_logo_led_on_check_count 
+00ca 20600000 rtn 
 
 p_mouse_logo_led_on_check:
-00c8 6fe0cbe4 fetch 1 ,mem_mouse_logo_led_on_check_count 
-00c9 1fe0fe01 increase 1 ,pdata 
-00ca 67e0cbe4 store 1 ,mem_mouse_logo_led_on_check_count 
-00cb 1fe67c08 sub pdata ,low_voltage_led_count ,null 
-00cc 20610000 rtn positive 
+00cb 6fe0cbe4 fetch 1 ,mem_mouse_logo_led_on_check_count 
+00cc 1fe0fe01 increase 1 ,pdata 
+00cd 67e0cbe4 store 1 ,mem_mouse_logo_led_on_check_count 
+00ce 1fe67c08 sub pdata ,low_voltage_led_count ,null 
+00cf 20610000 rtn positive 
 
 p_mouse_logo_led_on:
-00cd 58000258 setarg 0x0258 
-00ce 67e14be5 store 2 ,mem_mouse_logo_led_on_timer 
-00cf 20600000 rtn 
+00d0 58000258 setarg 0x0258 
+00d1 67e14be5 store 2 ,mem_mouse_logo_led_on_timer 
+00d2 20600000 rtn 
 
 p_mouse_seting_dpi:
-00d0 2040408f call mouse_setting_dpi_4_level 
-00d1 204000d3 call p_mouse_dpi_led_blink_delay 
-00d2 20204098 branch mouse_seting_sensor_type 
+00d3 2040408f call mouse_setting_dpi_4_level 
+00d4 204000d6 call p_mouse_dpi_led_blink_delay 
+00d5 20204098 branch mouse_seting_sensor_type 
 
 p_mouse_dpi_led_blink_delay:
-00d3 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00d4 c17f8000 rtneq gpio_disable 
-00d5 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-00d6 247a0000 nrtn blank 
-00d7 6fe14883 fetch 2 ,mem_24g_pair_timeout 
-00d8 247a0000 nrtn blank 
-00d9 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
-00da 247a0000 nrtn blank 
-00db 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-00dc 247a0000 nrtn blank 
-00dd 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-00de 203a00fa branch p_mouse_dpi_led_blink_init ,blank 
-00df 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
-00e0 20600000 rtn 
+00d6 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+00d7 c17f8000 rtneq gpio_disable 
+00d8 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+00d9 247a0000 nrtn blank 
+00da 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+00db 247a0000 nrtn blank 
+00dc 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+00dd 247a0000 nrtn blank 
+00de 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+00df 247a0000 nrtn blank 
+00e0 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+00e1 203a00fd branch p_mouse_dpi_led_blink_init ,blank 
+00e2 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
+00e3 20600000 rtn 
 
 p_mouse_bb_event_timer:
-00e1 20403e9b call mouse_adc_read 
-00e2 20404956 call mouse_low_voltage_led_timer 
-00e3 2040232b call g24_pair_timeout_timer 
-00e4 20402556 call g24_reconn_timeout_timer 
-00e5 204047cd call mouse_24g_long_sleep_param_update_timer 
-00e6 204048be call mouse_device_poweron_timer 
-00e7 204000f7 call p_mouse_dpi_led_blink_delay_timer 
-00e8 204000ea call p_mouse_logo_led_on_timer 
-00e9 202044bd branch mouse_bb_event_timer + 8 
+00e4 20403e9b call mouse_adc_read 
+00e5 20404956 call mouse_low_voltage_led_timer 
+00e6 2040232b call g24_pair_timeout_timer 
+00e7 20402556 call g24_reconn_timeout_timer 
+00e8 204047cd call mouse_24g_long_sleep_param_update_timer 
+00e9 204048be call mouse_device_poweron_timer 
+00ea 204000fa call p_mouse_dpi_led_blink_delay_timer 
+00eb 204000ed call p_mouse_logo_led_on_timer 
+00ec 202044bd branch mouse_bb_event_timer + 8 
 
 p_mouse_logo_led_on_timer:
-00ea 6fe0cbe3 fetch 1 ,mem_mouse_logo_led_gpio 
-00eb c17f8000 rtneq gpio_disable 
-00ec 6fe14be5 fetch 2 ,mem_mouse_logo_led_on_timer 
-00ed 207a0000 rtn blank 
-00ee 6848cbe3 fetcht 1 ,mem_mouse_logo_led_gpio 
-00ef 20406069 call gpio_out_active 
-00f0 da604be5 arg mem_mouse_logo_led_on_timer ,regc 
-00f1 da4000f3 arg p_mouse_logo_led_on_timeout ,regb 
-00f2 20203191 branch timer_single_step_2b 
+00ed 6fe0cbe3 fetch 1 ,mem_mouse_logo_led_gpio 
+00ee c17f8000 rtneq gpio_disable 
+00ef 6fe14be5 fetch 2 ,mem_mouse_logo_led_on_timer 
+00f0 207a0000 rtn blank 
+00f1 6848cbe3 fetcht 1 ,mem_mouse_logo_led_gpio 
+00f2 20406069 call gpio_out_active 
+00f3 da604be5 arg mem_mouse_logo_led_on_timer ,regc 
+00f4 da4000f6 arg p_mouse_logo_led_on_timeout ,regb 
+00f5 20203191 branch timer_single_step_2b 
 
 p_mouse_logo_led_on_timeout:
-00f3 58000000 setarg 0 
-00f4 67e14be5 store 2 ,mem_mouse_logo_led_on_timer 
-00f5 6848cbe3 fetcht 1 ,mem_mouse_logo_led_gpio 
-00f6 20206065 branch gpio_out_inactive 
+00f6 58000000 setarg 0 
+00f7 67e14be5 store 2 ,mem_mouse_logo_led_on_timer 
+00f8 6848cbe3 fetcht 1 ,mem_mouse_logo_led_gpio 
+00f9 20206065 branch gpio_out_inactive 
 
 p_mouse_dpi_led_blink_delay_timer:
-00f7 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-00f8 da4000fa arg p_mouse_dpi_led_blink_init ,regb 
-00f9 2020318a branch timer_single_step 
+00fa da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+00fb da4000fd arg p_mouse_dpi_led_blink_init ,regb 
+00fc 2020318a branch timer_single_step 
 
 p_mouse_dpi_led_blink_init:
-00fa 6fe0c927 fetch 1 ,mem_config_sensor_type 
-00fb c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-00fc c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-00fd 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00fe 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-00ff 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-0100 67e14930 store 2 ,mem_mouse_on_time 
-0101 67e14932 store 2 ,mem_mouse_off_time 
-0102 da200000 arg 0 ,rega 
-0103 6848c992 fetcht 1 ,mem_mouse_dpi 
-0104 18408402 increase 2 ,temp 
-0105 18467c03 sub temp ,3 ,null 
-0106 20410109 call p_mouse_dpi_led_blink_init_level_4 ,positive 
-0107 2441010d ncall p_mouse_dpi_led_blink_count_clean ,positive 
-0108 202048ff branch mouse_dpi_led_blink_init_end 
+00fd 6fe0c927 fetch 1 ,mem_config_sensor_type 
+00fe c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
+00ff c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
+0100 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+0101 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
+0102 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
+0103 67e14930 store 2 ,mem_mouse_on_time 
+0104 67e14932 store 2 ,mem_mouse_off_time 
+0105 da200000 arg 0 ,rega 
+0106 6848c992 fetcht 1 ,mem_mouse_dpi 
+0107 18408402 increase 2 ,temp 
+0108 18467c03 sub temp ,3 ,null 
+0109 2041010c call p_mouse_dpi_led_blink_init_level_4 ,positive 
+010a 24410110 ncall p_mouse_dpi_led_blink_count_clean ,positive 
+010b 202048ff branch mouse_dpi_led_blink_init_end 
 
 p_mouse_dpi_led_blink_init_level_4:
-0109 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-010a c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-010b 18408401 increase 1 ,temp 
-010c 20600000 rtn 
+010c 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+010d c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+010e 18408401 increase 1 ,temp 
+010f 20600000 rtn 
 
 p_mouse_dpi_led_blink_count_clean:
-010d 184085fd increase -3 ,temp 
-010e 20600000 rtn 
+0110 184085fd increase -3 ,temp 
+0111 20600000 rtn 
 
 p_spid_init:
-010f 70448476 jam 0x76 ,mem_spi_init_clk 
-0110 20205cb6 branch spid_init_common 
+0112 70448476 jam 0x76 ,mem_spi_init_clk 
+0113 20205cb6 branch spid_init_common 
 
 p_txon:
-0111 6fe0c1e8 fetch 1 ,mem_tx_power 
-0112 c04f8114 beq tx_power_pair ,p_set_tx_power_pair 
-0113 2020121f branch txon_next 
+0114 6fe0c1e8 fetch 1 ,mem_tx_power 
+0115 c04f8117 beq tx_power_pair ,p_set_tx_power_pair 
+0116 2020121f branch txon_next 
 
 p_set_tx_power_pair:
-0114 708a3905 jam 0x05 ,core_tx_pwr_ctrl0 
-0115 708a3a00 jam 0x00 ,core_tx_pwr_ctrl1 
-0116 2020122a branch set_rf_ldo_cfg89 
+0117 708a3905 jam 0x05 ,core_tx_pwr_ctrl0 
+0118 708a3a00 jam 0x00 ,core_tx_pwr_ctrl1 
+0119 2020122a branch set_rf_ldo_cfg89 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/program/patch.prog	(revision 512)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/program/patch.prog	(working copy)
@@ -31,7 +31,10 @@
 	call p_mouse_wheel_set_wakeup
 	call p_mouse_setting_config
 	call p_lpm_write_ice_disable
-	branch mouse_init+1
+	call mouse_init_sunt
+	rtn wake
+	call mouse_dpi_config
+	branch mouse_init+4
 
 p_mouse_wheel_set_wakeup:
 	fetch 1,mem_sensor_shutdown_flag
