Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/CQ-13_Only2.4G/output/eeprom.dat	(revision 507)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/CQ-13_Only2.4G/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-ea
+fa
 03
 c2
 84
@@ -15,11 +15,11 @@
 c0
 45
 80
-67
+6a
 c0
 4f
 80
-65
+68
 c0
 57
 00
@@ -27,31 +27,31 @@
 c0
 61
 80
-24
+27
 c0
 64
 80
-72
+75
 c0
 65
 00
-82
+85
 c0
 67
 00
-a0
+a3
 c0
 68
 00
-b9
+bd
 c0
 6b
 00
-98
+9b
 c0
 6c
 80
-ca
+ce
 20
 20
 13
@@ -59,7 +59,7 @@
 c0
 10
 80
-f8
+fc
 20
 20
 13
@@ -87,19 +87,31 @@
 20
 40
 00
-18
+1b
 20
 40
 00
-47
+4a
+20
+40
+00
+23
 20
 40
+41
+a7
+20
+75
+80
 00
 20
+40
+40
+8e
 20
 20
 3b
-c2
+c5
 6f
 e0
 cb
@@ -163,7 +175,7 @@
 c0
 00
 00
-2b
+2e
 20
 40
 3d
@@ -199,7 +211,7 @@
 20
 40
 00
-42
+45
 1f
 e1
 7e
@@ -223,7 +235,7 @@
 20
 40
 00
-39
+3c
 20
 34
 48
@@ -263,7 +275,7 @@
 c2
 00
 00
-3d
+40
 20
 60
 00
@@ -311,7 +323,7 @@
 20
 40
 00
-51
+54
 68
 48
 c9
@@ -323,7 +335,7 @@
 20
 40
 00
-61
+64
 20
 20
 3b
@@ -479,7 +491,7 @@
 c0
 7f
 80
-7b
+7e
 68
 48
 c9
@@ -519,7 +531,7 @@
 20
 40
 00
-dc
+e0
 20
 20
 3e
@@ -619,7 +631,7 @@
 c0
 1e
 00
-9b
+9e
 20
 20
 43
@@ -662,6 +674,10 @@
 40
 20
 40
+40
+8e
+20
+40
 3f
 7e
 20
@@ -687,7 +703,7 @@
 24
 34
 00
-ae
+b2
 20
 40
 47
@@ -695,7 +711,7 @@
 20
 40
 00
-b1
+b5
 20
 20
 45
@@ -751,7 +767,7 @@
 20
 40
 00
-bc
+c0
 20
 20
 40
@@ -803,7 +819,7 @@
 20
 3a
 00
-e3
+e7
 67
 e0
 cb
@@ -839,11 +855,11 @@
 20
 40
 00
-e0
+e4
 20
 40
 00
-d3
+d7
 20
 20
 44
@@ -879,7 +895,7 @@
 da
 40
 00
-dc
+e0
 20
 20
 31
@@ -907,7 +923,7 @@
 da
 40
 00
-e3
+e7
 20
 20
 31
@@ -963,11 +979,11 @@
 20
 41
 00
-f2
+f6
 24
 41
 00
-f6
+fa
 20
 20
 48
@@ -1004,8 +1020,8 @@
 20
 5c
 b6
-dc
-91
+be
+2b
 aa
 55
 40
@@ -2167,24 +2183,8 @@
 e8
 41
 01
-a5
-b9
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+53
+55
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-f7
-16
+e1
+c3
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/CQ-13_Only2.4G/output/program.lis	(revision 507)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/CQ-13_Only2.4G/output/program.lis	(working copy)
@@ -2,20 +2,20 @@
               org 0x0000
 0000 c284000d bbit1 8 ,pf_patch_ext 
 0001 c000000f beq patch00_0 ,p_soft_reset 
-0002 c0458067 beq patch11_3 ,p_initialize_radio_cont 
-0003 c04f8065 beq patch13_7 ,p_init_param 
+0002 c045806a beq patch11_3 ,p_initialize_radio_cont 
+0003 c04f8068 beq patch13_7 ,p_init_param 
 0004 c0570013 beq patch15_6 ,p_app_init 
-0005 c0618024 beq patch18_3 ,p_mouse_start_work 
-0006 c0648072 beq patch19_1 ,p_mouse_setgpio_hibernate 
-0007 c0650082 beq patch19_2 ,p_mouse_lpm_before_common 
-0008 c06700a0 beq patch19_6 ,p_mouse_motion 
-0009 c06800b9 beq patch1a_0 ,p_mouse_seting_dpi 
-000a c06b0098 beq patch1a_6 ,p_mouse_priority_bb_event 
-000b c06c80ca beq patch1b_1 ,p_mouse_bb_event_timer 
+0005 c0618027 beq patch18_3 ,p_mouse_start_work 
+0006 c0648075 beq patch19_1 ,p_mouse_setgpio_hibernate 
+0007 c0650085 beq patch19_2 ,p_mouse_lpm_before_common 
+0008 c06700a3 beq patch19_6 ,p_mouse_motion 
+0009 c06800bd beq patch1a_0 ,p_mouse_seting_dpi 
+000a c06b009b beq patch1a_6 ,p_mouse_priority_bb_event 
+000b c06c80ce beq patch1b_1 ,p_mouse_bb_event_timer 
 000c 2020137c branch loop 
 
 pf_patch_ext:
-000d c01080f8 beq patch24_1 ,p_spid_init 
+000d c01080fc beq patch24_1 ,p_spid_init 
 000e 2020137c branch loop 
 
 p_soft_reset:
@@ -28,302 +28,306 @@
 
 p_mouse_init:
 0013 20406df3 call enable_authrom 
-0014 20400018 call p_mouse_wheel_set_wakeup 
-0015 20400047 call p_mouse_setting_config 
-0016 20400020 call p_lpm_write_ice_disable 
-0017 20203bc2 branch mouse_init + 1 
+0014 2040001b call p_mouse_wheel_set_wakeup 
+0015 2040004a call p_mouse_setting_config 
+0016 20400023 call p_lpm_write_ice_disable 
+0017 204041a7 call mouse_init_sunt 
+0018 20758000 rtn wake 
+0019 2040408e call mouse_dpi_config 
+001a 20203bc5 branch mouse_init + 4 
 
 p_mouse_wheel_set_wakeup:
-0018 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-0019 207a0000 rtn blank 
-001a 6fe0c913 fetch 1 ,mem_whee_a_data_gpio 
-001b d8400040 arg gpcfg_pullup ,temp 
-001c 20406093 call gpio_config_function_int 
-001d 6fe0c914 fetch 1 ,mem_whee_b_data_gpio 
+001b 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+001c 207a0000 rtn blank 
+001d 6fe0c913 fetch 1 ,mem_whee_a_data_gpio 
 001e d8400040 arg gpcfg_pullup ,temp 
-001f 20206093 branch gpio_config_function_int 
+001f 20406093 call gpio_config_function_int 
+0020 6fe0c914 fetch 1 ,mem_whee_b_data_gpio 
+0021 d8400040 arg gpcfg_pullup ,temp 
+0022 20206093 branch gpio_config_function_int 
 
 p_lpm_write_ice_disable:
-0020 6ff10120 fetch 2 ,core_ucode_flag 
-0021 793ffe0e set0 lpmreg_ice_mode_bit ,pdata 
-0022 67f2004c store 4 ,core_lpm_reg 
-0023 20205caf branch lpm_write2_ctrl_option 
+0023 6ff10120 fetch 2 ,core_ucode_flag 
+0024 793ffe0e set0 lpmreg_ice_mode_bit ,pdata 
+0025 67f2004c store 4 ,core_lpm_reg 
+0026 20205caf branch lpm_write2_ctrl_option 
 
 p_mouse_start_work:
-0024 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0025 c297c80a bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
-0026 6fe0c938 fetch 1 ,mem_device_flag 
-0027 c000002b beq mode_24g_device ,p_mouse_24g_start_mode 
-0028 20403d65 call mouse_wakeup_from_power_check 
-0029 243442eb nbranch mouse_buletooth_fast_conn_init ,user 
-002a 20203d59 branch mouse_start_reconnect_device 
+0027 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0028 c297c80a bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
+0029 6fe0c938 fetch 1 ,mem_device_flag 
+002a c000002e beq mode_24g_device ,p_mouse_24g_start_mode 
+002b 20403d65 call mouse_wakeup_from_power_check 
+002c 243442eb nbranch mouse_buletooth_fast_conn_init ,user 
+002d 20203d59 branch mouse_start_reconnect_device 
 
 p_mouse_24g_start_mode:
-002b 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-002c c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
-002d 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-002e c298480c bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
-002f c318c80c bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
-0030 20400042 call p_mouse_key_check_once 
-0031 1fe17e07 and pdata ,0x07 ,pdata 
-0032 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
-0033 98467c00 isub temp ,null 
-0034 2022c827 branch mouse_24g_start_pair_mode ,zero 
-0035 2020480c branch mouse_24g_reconn_general_dongle 
+002e 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+002f c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
+0030 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0031 c298480c bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
+0032 c318c80c bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
+0033 20400045 call p_mouse_key_check_once 
+0034 1fe17e07 and pdata ,0x07 ,pdata 
+0035 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
+0036 98467c00 isub temp ,null 
+0037 2022c827 branch mouse_24g_start_pair_mode ,zero 
+0038 2020480c branch mouse_24g_reconn_general_dongle 
 
 p_mouse_24g_reconn_dongle_start:
-0036 20400039 call p_g24_factory_check 
-0037 20344812 branch mouse_24g_start_auto_pair_next ,user 
-0038 20204806 branch mouse_24g_reconn_dongle_start 
+0039 2040003c call p_g24_factory_check 
+003a 20344812 branch mouse_24g_start_auto_pair_next ,user 
+003b 20204806 branch mouse_24g_reconn_dongle_start 
 
 p_g24_factory_check:
-0039 df200002 arg 2 ,loopcnt 
-003a d8c04993 arg mem_mouse_24g_addr ,contr 
+003c df200002 arg 2 ,loopcnt 
+003d d8c04993 arg mem_mouse_24g_addr ,contr 
 
 p_pdata_0xff_check:
-003b 20407e54 call enable_user 
-003c 5800ffff setarg 0xffff 
+003e 20407e54 call enable_user 
+003f 5800ffff setarg 0xffff 
 
 p_pdata_0xff_check_loop:
-003d e8410006 ifetcht 2 ,contr 
-003e 98467c00 isub temp ,null 
-003f 2442fe56 ncall disable_user ,zero 
-0040 c200003d loop p_pdata_0xff_check_loop 
-0041 20600000 rtn 
+0040 e8410006 ifetcht 2 ,contr 
+0041 98467c00 isub temp ,null 
+0042 2442fe56 ncall disable_user ,zero 
+0043 c2000040 loop p_pdata_0xff_check_loop 
+0044 20600000 rtn 
 
 p_mouse_key_check_once:
-0042 20404121 call mouse_check_key_gpio_once 
-0043 20404115 call mouse_check_key_gpio 
-0044 d8400000 arg 0 ,temp 
-0045 6049cb8e storet 3 ,mem_mouse_lkey_press_status 
-0046 20600000 rtn 
+0045 20404121 call mouse_check_key_gpio_once 
+0046 20404115 call mouse_check_key_gpio 
+0047 d8400000 arg 0 ,temp 
+0048 6049cb8e storet 3 ,mem_mouse_lkey_press_status 
+0049 20600000 rtn 
 
 p_mouse_setting_config:
-0047 20758000 rtn wake 
-0048 20402607 call g24_transmit_init 
-0049 204022ff call g24_chmap_param_init 
-004a 20403f1e call mouse_gpio_init 
-004b 20403d13 call mouse_param_init 
-004c 20400051 call p_mouse_sensor_set_angle 
-004d 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-004e 20406050 call gpio_config_input 
-004f 20400061 call p_ice_gpio_set_float 
-0050 20203bf5 branch mouse_setting_config_next 
+004a 20758000 rtn wake 
+004b 20402607 call g24_transmit_init 
+004c 204022ff call g24_chmap_param_init 
+004d 20403f1e call mouse_gpio_init 
+004e 20403d13 call mouse_param_init 
+004f 20400054 call p_mouse_sensor_set_angle 
+0050 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+0051 20406050 call gpio_config_input 
+0052 20400064 call p_ice_gpio_set_float 
+0053 20203bf5 branch mouse_setting_config_next 
 
 p_mouse_sensor_set_angle:
-0051 6fe0c924 fetch 1 ,mem_sensor_angle_default 
-0052 67e0c928 store 1 ,mem_config_sensor_angle 
-0053 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-0054 c17f8000 rtneq gpio_disable 
-0055 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-0056 d840003e arg gpcfg_output_low ,temp 
-0057 20406093 call gpio_config_function_int 
-0058 6fe0cbe2 fetch 1 ,mem_mouse_reuse_2ice_gpio 
+0054 6fe0c924 fetch 1 ,mem_sensor_angle_default 
+0055 67e0c928 store 1 ,mem_config_sensor_angle 
+0056 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
+0057 c17f8000 rtneq gpio_disable 
+0058 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
 0059 d840003e arg gpcfg_output_low ,temp 
 005a 20406093 call gpio_config_function_int 
-005b 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-005c 20403f56 call mouse_gpio_config_input_pu 
-005d 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-005e 20406059 call gpio_get_bit 
-005f 2440c2aa ncall mouse_sensor_switch_angle ,true 
-0060 20203f54 branch mouse_gpio_config_input_pd 
+005b 6fe0cbe2 fetch 1 ,mem_mouse_reuse_2ice_gpio 
+005c d840003e arg gpcfg_output_low ,temp 
+005d 20406093 call gpio_config_function_int 
+005e 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+005f 20403f56 call mouse_gpio_config_input_pu 
+0060 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+0061 20406059 call gpio_get_bit 
+0062 2440c2aa ncall mouse_sensor_switch_angle ,true 
+0063 20203f54 branch mouse_gpio_config_input_pd 
 
 p_ice_gpio_set_float:
-0061 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
-0062 2040607f call gpio_set_high_impedance 
-0063 6848cbe2 fetcht 1 ,mem_mouse_reuse_2ice_gpio 
-0064 2020607f branch gpio_set_high_impedance 
+0064 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
+0065 2040607f call gpio_set_high_impedance 
+0066 6848cbe2 fetcht 1 ,mem_mouse_reuse_2ice_gpio 
+0067 2020607f branch gpio_set_high_impedance 
 
 p_init_param:
-0065 70008000 jam 0 ,mem_lmo_tid2 
-0066 202013b7 branch init_param_next + 1 
+0068 70008000 jam 0 ,mem_lmo_tid2 
+0069 202013b7 branch init_param_next + 1 
 
 p_initialize_radio_cont:
-0067 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
-0068 2040126a call initialize_syn_afc_cfg1 
-0069 20401271 call initialize_rf_ldo_cfg1 
-006a 20401277 call initialize_rc_cal 
-006b 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
-006c 708a0305 jam 5 ,core_clkpll_cfg0 
-006d 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
-006e 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
-006f 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
-0070 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
-0071 2020125d branch initialize_radio_cont + 8 
+006a 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
+006b 2040126a call initialize_syn_afc_cfg1 
+006c 20401271 call initialize_rf_ldo_cfg1 
+006d 20401277 call initialize_rc_cal 
+006e 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
+006f 708a0305 jam 5 ,core_clkpll_cfg0 
+0070 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
+0071 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
+0072 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
+0073 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
+0074 2020125d branch initialize_radio_cont + 8 
 
 p_mouse_setgpio_hibernate:
-0072 204042e9 call mouse_set_sdio_high 
-0073 20407fdc call clear_wake 
-0074 20404015 call mouse_before_hibernate_wheel_gpio_set 
-0075 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-0076 c07f807b beq gpio_disable ,p_mouse_setgpio_hibernate_skip_public_gpio 
-0077 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-0078 20406069 call gpio_out_active 
-0079 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-007a 20406042 call gpio_clr_wake 
+0075 204042e9 call mouse_set_sdio_high 
+0076 20407fdc call clear_wake 
+0077 20404015 call mouse_before_hibernate_wheel_gpio_set 
+0078 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+0079 c07f807e beq gpio_disable ,p_mouse_setgpio_hibernate_skip_public_gpio 
+007a 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+007b 20406069 call gpio_out_active 
+007c 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+007d 20406042 call gpio_clr_wake 
 
 p_mouse_setgpio_hibernate_skip_public_gpio:
-007b 6848cbe2 fetcht 1 ,mem_mouse_reuse_2ice_gpio 
-007c 20403f56 call mouse_gpio_config_input_pu 
-007d 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-007e d840003f arg gpcfg_output_high ,temp 
-007f 20406093 call gpio_config_function_int 
-0080 204000dc call p_mouse_logo_led_on_timeout 
-0081 20203e36 branch mouse_setgpio_hibernate + 3 
+007e 6848cbe2 fetcht 1 ,mem_mouse_reuse_2ice_gpio 
+007f 20403f56 call mouse_gpio_config_input_pu 
+0080 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
+0081 d840003f arg gpcfg_output_high ,temp 
+0082 20406093 call gpio_config_function_int 
+0083 204000e0 call p_mouse_logo_led_on_timeout 
+0084 20203e36 branch mouse_setgpio_hibernate + 3 
 
 p_mouse_lpm_before_common:
-0082 20403f88 call mouse_wheel_check 
-0083 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
-0084 d840003f arg gpcfg_output_high ,temp 
-0085 20406093 call gpio_config_function_int 
-0086 6fe080a1 fetch 1 ,mem_gpio_wakeup_low + 2 
-0087 793ffe03 set0 3 ,pdata 
-0088 67e080a1 store 1 ,mem_gpio_wakeup_low + 2 
-0089 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-008a 20406042 call gpio_clr_wake 
-008b 20405b04 call twspi_disable 
-008c 6848c918 fetcht 1 ,mem_lbutton_gpio 
-008d 20406036 call gpio_set_wake 
-008e 6848c919 fetcht 1 ,mem_rbutton_gpio 
-008f 20406036 call gpio_set_wake 
-0090 6848c91a fetcht 1 ,mem_mbutton_gpio 
-0091 20406036 call gpio_set_wake 
-0092 6848c90d fetcht 1 ,mem_bk_button_gpio 
-0093 20406036 call gpio_set_wake 
-0094 6848c90e fetcht 1 ,mem_fw_button_gpio 
-0095 20406036 call gpio_set_wake 
-0096 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-0097 20206036 branch gpio_set_wake 
+0085 20403f88 call mouse_wheel_check 
+0086 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
+0087 d840003f arg gpcfg_output_high ,temp 
+0088 20406093 call gpio_config_function_int 
+0089 6fe080a1 fetch 1 ,mem_gpio_wakeup_low + 2 
+008a 793ffe03 set0 3 ,pdata 
+008b 67e080a1 store 1 ,mem_gpio_wakeup_low + 2 
+008c 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+008d 20406042 call gpio_clr_wake 
+008e 20405b04 call twspi_disable 
+008f 6848c918 fetcht 1 ,mem_lbutton_gpio 
+0090 20406036 call gpio_set_wake 
+0091 6848c919 fetcht 1 ,mem_rbutton_gpio 
+0092 20406036 call gpio_set_wake 
+0093 6848c91a fetcht 1 ,mem_mbutton_gpio 
+0094 20406036 call gpio_set_wake 
+0095 6848c90d fetcht 1 ,mem_bk_button_gpio 
+0096 20406036 call gpio_set_wake 
+0097 6848c90e fetcht 1 ,mem_fw_button_gpio 
+0098 20406036 call gpio_set_wake 
+0099 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+009a 20206036 branch gpio_set_wake 
 
 p_mouse_priority_bb_event:
-0098 1a627e00 copy regc ,pdata 
-0099 c01e009b beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-009a 20204336 branch mouse_priority_bb_event + 2 
+009b 1a627e00 copy regc ,pdata 
+009c c01e009e beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+009d 20204336 branch mouse_priority_bb_event + 2 
 
 p_mouse_24g_attempt_success:
-009b 6fe2483c fetch 4 ,mem_24g_addr 
-009c 67e24891 store 4 ,mem_24g_receiver_addr 
-009d 67e24993 store 4 ,mem_mouse_24g_addr 
-009e 204048c6 call mouse_device_poweron_timer_init 
-009f 2020484e branch mouse_24g_attempt_success 
+009e 6fe2483c fetch 4 ,mem_24g_addr 
+009f 67e24891 store 4 ,mem_24g_receiver_addr 
+00a0 67e24993 store 4 ,mem_mouse_24g_addr 
+00a1 204048c6 call mouse_device_poweron_timer_init 
+00a2 2020484e branch mouse_24g_attempt_success 
 
 p_mouse_motion:
-00a0 78547c00 disable user 
-00a1 58000000 setarg 0 
-00a2 67e348d1 store 6 ,mem_mouse_x 
-00a3 20404240 call mouse_check_sensor_data 
-00a4 20403f7e call mouse_zwheel 
-00a5 20403f83 call mouse_t_zwheel 
-00a6 204040dc call mouse_key 
-00a7 6fe0c8d0 fetch 1 ,mem_mouse_key 
-00a8 1fe17e1f and_into 0x1f ,pdata 
-00a9 67e0c8d0 store 1 ,mem_mouse_key 
-00aa 243400ae nbranch p_mouse_motion_nodata ,user 
-00ab 2040471a call mouse_drawing_optima 
-00ac 204000b1 call p_mouse_logo_led_on_check 
-00ad 20204544 branch mouse_no_data_timer_init 
+00a3 78547c00 disable user 
+00a4 58000000 setarg 0 
+00a5 67e348d1 store 6 ,mem_mouse_x 
+00a6 20404240 call mouse_check_sensor_data 
+00a7 2040408e call mouse_dpi_config 
+00a8 20403f7e call mouse_zwheel 
+00a9 20403f83 call mouse_t_zwheel 
+00aa 204040dc call mouse_key 
+00ab 6fe0c8d0 fetch 1 ,mem_mouse_key 
+00ac 1fe17e1f and_into 0x1f ,pdata 
+00ad 67e0c8d0 store 1 ,mem_mouse_key 
+00ae 243400b2 nbranch p_mouse_motion_nodata ,user 
+00af 2040471a call mouse_drawing_optima 
+00b0 204000b5 call p_mouse_logo_led_on_check 
+00b1 20204544 branch mouse_no_data_timer_init 
 
 p_mouse_motion_nodata:
-00ae 20404728 call mouse_drawing_optima_init 
-00af 704be400 jam 0 ,mem_mouse_logo_led_on_check_count 
-00b0 20600000 rtn 
+00b2 20404728 call mouse_drawing_optima_init 
+00b3 704be400 jam 0 ,mem_mouse_logo_led_on_check_count 
+00b4 20600000 rtn 
 
 p_mouse_logo_led_on_check:
-00b1 6fe0cbe4 fetch 1 ,mem_mouse_logo_led_on_check_count 
-00b2 1fe0fe01 increase 1 ,pdata 
-00b3 67e0cbe4 store 1 ,mem_mouse_logo_led_on_check_count 
-00b4 1fe67c08 sub pdata ,low_voltage_led_count ,null 
-00b5 20610000 rtn positive 
+00b5 6fe0cbe4 fetch 1 ,mem_mouse_logo_led_on_check_count 
+00b6 1fe0fe01 increase 1 ,pdata 
+00b7 67e0cbe4 store 1 ,mem_mouse_logo_led_on_check_count 
+00b8 1fe67c08 sub pdata ,low_voltage_led_count ,null 
+00b9 20610000 rtn positive 
 
 p_mouse_logo_led_on:
-00b6 58000258 setarg 0x0258 
-00b7 67e14be5 store 2 ,mem_mouse_logo_led_on_timer 
-00b8 20600000 rtn 
+00ba 58000258 setarg 0x0258 
+00bb 67e14be5 store 2 ,mem_mouse_logo_led_on_timer 
+00bc 20600000 rtn 
 
 p_mouse_seting_dpi:
-00b9 2040408f call mouse_setting_dpi_4_level 
-00ba 204000bc call p_mouse_dpi_led_blink_delay 
-00bb 20204098 branch mouse_seting_sensor_type 
+00bd 2040408f call mouse_setting_dpi_4_level 
+00be 204000c0 call p_mouse_dpi_led_blink_delay 
+00bf 20204098 branch mouse_seting_sensor_type 
 
 p_mouse_dpi_led_blink_delay:
-00bc 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00bd c17f8000 rtneq gpio_disable 
-00be 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-00bf 247a0000 nrtn blank 
-00c0 6fe14883 fetch 2 ,mem_24g_pair_timeout 
-00c1 247a0000 nrtn blank 
-00c2 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+00c0 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+00c1 c17f8000 rtneq gpio_disable 
+00c2 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
 00c3 247a0000 nrtn blank 
-00c4 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+00c4 6fe14883 fetch 2 ,mem_24g_pair_timeout 
 00c5 247a0000 nrtn blank 
-00c6 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-00c7 203a00e3 branch p_mouse_dpi_led_blink_init ,blank 
-00c8 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
-00c9 20600000 rtn 
+00c6 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+00c7 247a0000 nrtn blank 
+00c8 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+00c9 247a0000 nrtn blank 
+00ca 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+00cb 203a00e7 branch p_mouse_dpi_led_blink_init ,blank 
+00cc 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
+00cd 20600000 rtn 
 
 p_mouse_bb_event_timer:
-00ca 20403e9b call mouse_adc_read 
-00cb 20404956 call mouse_low_voltage_led_timer 
-00cc 2040232b call g24_pair_timeout_timer 
-00cd 20402556 call g24_reconn_timeout_timer 
-00ce 204047cd call mouse_24g_long_sleep_param_update_timer 
-00cf 204048be call mouse_device_poweron_timer 
-00d0 204000e0 call p_mouse_dpi_led_blink_delay_timer 
-00d1 204000d3 call p_mouse_logo_led_on_timer 
-00d2 202044bd branch mouse_bb_event_timer + 8 
+00ce 20403e9b call mouse_adc_read 
+00cf 20404956 call mouse_low_voltage_led_timer 
+00d0 2040232b call g24_pair_timeout_timer 
+00d1 20402556 call g24_reconn_timeout_timer 
+00d2 204047cd call mouse_24g_long_sleep_param_update_timer 
+00d3 204048be call mouse_device_poweron_timer 
+00d4 204000e4 call p_mouse_dpi_led_blink_delay_timer 
+00d5 204000d7 call p_mouse_logo_led_on_timer 
+00d6 202044bd branch mouse_bb_event_timer + 8 
 
 p_mouse_logo_led_on_timer:
-00d3 6fe0cbe3 fetch 1 ,mem_mouse_logo_led_gpio 
-00d4 c17f8000 rtneq gpio_disable 
-00d5 6fe14be5 fetch 2 ,mem_mouse_logo_led_on_timer 
-00d6 207a0000 rtn blank 
-00d7 6848cbe3 fetcht 1 ,mem_mouse_logo_led_gpio 
-00d8 20406069 call gpio_out_active 
-00d9 da604be5 arg mem_mouse_logo_led_on_timer ,regc 
-00da da4000dc arg p_mouse_logo_led_on_timeout ,regb 
-00db 20203191 branch timer_single_step_2b 
+00d7 6fe0cbe3 fetch 1 ,mem_mouse_logo_led_gpio 
+00d8 c17f8000 rtneq gpio_disable 
+00d9 6fe14be5 fetch 2 ,mem_mouse_logo_led_on_timer 
+00da 207a0000 rtn blank 
+00db 6848cbe3 fetcht 1 ,mem_mouse_logo_led_gpio 
+00dc 20406069 call gpio_out_active 
+00dd da604be5 arg mem_mouse_logo_led_on_timer ,regc 
+00de da4000e0 arg p_mouse_logo_led_on_timeout ,regb 
+00df 20203191 branch timer_single_step_2b 
 
 p_mouse_logo_led_on_timeout:
-00dc 58000000 setarg 0 
-00dd 67e14be5 store 2 ,mem_mouse_logo_led_on_timer 
-00de 6848cbe3 fetcht 1 ,mem_mouse_logo_led_gpio 
-00df 20206065 branch gpio_out_inactive 
+00e0 58000000 setarg 0 
+00e1 67e14be5 store 2 ,mem_mouse_logo_led_on_timer 
+00e2 6848cbe3 fetcht 1 ,mem_mouse_logo_led_gpio 
+00e3 20206065 branch gpio_out_inactive 
 
 p_mouse_dpi_led_blink_delay_timer:
-00e0 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-00e1 da4000e3 arg p_mouse_dpi_led_blink_init ,regb 
-00e2 2020318a branch timer_single_step 
+00e4 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+00e5 da4000e7 arg p_mouse_dpi_led_blink_init ,regb 
+00e6 2020318a branch timer_single_step 
 
 p_mouse_dpi_led_blink_init:
-00e3 6fe0c927 fetch 1 ,mem_config_sensor_type 
-00e4 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-00e5 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-00e6 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00e7 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-00e8 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-00e9 67e14930 store 2 ,mem_mouse_on_time 
-00ea 67e14932 store 2 ,mem_mouse_off_time 
-00eb da200000 arg 0 ,rega 
-00ec 6848c992 fetcht 1 ,mem_mouse_dpi 
-00ed 18408402 increase 2 ,temp 
-00ee 18467c03 sub temp ,3 ,null 
-00ef 204100f2 call p_mouse_dpi_led_blink_init_level_4 ,positive 
-00f0 244100f6 ncall p_mouse_dpi_led_blink_count_clean ,positive 
-00f1 202048ff branch mouse_dpi_led_blink_init_end 
+00e7 6fe0c927 fetch 1 ,mem_config_sensor_type 
+00e8 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
+00e9 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
+00ea 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+00eb 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
+00ec 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
+00ed 67e14930 store 2 ,mem_mouse_on_time 
+00ee 67e14932 store 2 ,mem_mouse_off_time 
+00ef da200000 arg 0 ,rega 
+00f0 6848c992 fetcht 1 ,mem_mouse_dpi 
+00f1 18408402 increase 2 ,temp 
+00f2 18467c03 sub temp ,3 ,null 
+00f3 204100f6 call p_mouse_dpi_led_blink_init_level_4 ,positive 
+00f4 244100fa ncall p_mouse_dpi_led_blink_count_clean ,positive 
+00f5 202048ff branch mouse_dpi_led_blink_init_end 
 
 p_mouse_dpi_led_blink_init_level_4:
-00f2 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00f3 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-00f4 18408401 increase 1 ,temp 
-00f5 20600000 rtn 
+00f6 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00f7 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+00f8 18408401 increase 1 ,temp 
+00f9 20600000 rtn 
 
 p_mouse_dpi_led_blink_count_clean:
-00f6 184085fd increase -3 ,temp 
-00f7 20600000 rtn 
+00fa 184085fd increase -3 ,temp 
+00fb 20600000 rtn 
 
 p_spid_init:
-00f8 70448476 jam 0x76 ,mem_spi_init_clk 
-00f9 20205cb6 branch spid_init_common 
+00fc 70448476 jam 0x76 ,mem_spi_init_clk 
+00fd 20205cb6 branch spid_init_common 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/CQ-13_Only2.4G/program/patch.prog	(revision 507)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/CQ-13_Only2.4G/program/patch.prog	(working copy)
@@ -30,7 +30,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
@@ -225,6 +228,7 @@
 	setarg 0
 	store 6,mem_mouse_x
 	call mouse_check_sensor_data
+	call mouse_dpi_config
 	call mouse_zwheel
 	call mouse_t_zwheel
 	call mouse_key
