Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/FD-E701_Only2.4G_16M/output/eeprom.dat	(revision 500)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/FD-E701_Only2.4G_16M/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-9a
+92
 05
 c2
 84
@@ -39,19 +39,19 @@
 c0
 67
 00
-8a
+88
 c0
 68
 00
-a4
+a2
 c0
 68
 81
-2e
+2c
 c0
 69
 80
-e2
+e0
 c0
 6b
 00
@@ -59,7 +59,7 @@
 c0
 6c
 80
-b5
+b3
 20
 20
 13
@@ -67,7 +67,7 @@
 c0
 75
 00
-fb
+f9
 20
 20
 13
@@ -423,7 +423,7 @@
 20
 40
 00
-c6
+c4
 20
 20
 3e
@@ -548,14 +548,6 @@
 20
 48
 4e
-68
-48
-c9
-20
-20
-20
-3f
-56
 78
 54
 7c
@@ -574,8 +566,8 @@
 40
 20
 40
-00
-88
+40
+8e
 20
 40
 3f
@@ -603,7 +595,7 @@
 24
 34
 00
-99
+97
 20
 40
 47
@@ -611,7 +603,7 @@
 20
 40
 00
-9c
+9a
 20
 20
 45
@@ -667,7 +659,7 @@
 20
 40
 00
-a7
+a5
 20
 20
 40
@@ -719,7 +711,7 @@
 20
 3a
 00
-cd
+cb
 67
 e0
 cb
@@ -755,7 +747,7 @@
 20
 40
 00
-ca
+c8
 20
 20
 44
@@ -791,7 +783,7 @@
 da
 40
 00
-c6
+c4
 20
 20
 31
@@ -819,7 +811,7 @@
 da
 40
 00
-cd
+cb
 20
 20
 31
@@ -875,11 +867,11 @@
 20
 41
 00
-dc
+da
 24
 41
 00
-e0
+de
 20
 20
 48
@@ -927,7 +919,7 @@
 c0
 18
 00
-ec
+ea
 c0
 18
 c2
@@ -947,7 +939,7 @@
 20
 20
 00
-e5
+e3
 6f
 e0
 c9
@@ -955,7 +947,7 @@
 c0
 2d
 00
-f5
+f3
 c0
 6c
 41
@@ -983,7 +975,7 @@
 20
 20
 00
-e5
+e3
 70
 49
 27
@@ -1019,7 +1011,7 @@
 20
 40
 01
-16
+14
 20
 40
 26
@@ -1043,7 +1035,7 @@
 20
 5a
 01
-08
+06
 6f
 e0
 c8
@@ -1115,7 +1107,7 @@
 20
 20
 00
-fd
+fb
 70
 48
 a6
@@ -1143,11 +1135,11 @@
 24
 2c
 01
-25
+23
 24
 37
 81
-25
+23
 20
 40
 26
@@ -1155,7 +1147,7 @@
 20
 40
 01
-21
+1f
 20
 20
 26
@@ -1167,7 +1159,7 @@
 24
 5a
 00
-e4
+e2
 70
 4b
 e1
@@ -1211,7 +1203,7 @@
 20
 20
 01
-17
+15
 6f
 e0
 cb
@@ -1227,23 +1219,23 @@
 20
 40
 01
-39
+37
 20
 40
 01
-3e
+3c
 20
 40
 01
-43
+41
 20
 40
 01
-48
+46
 20
 40
 01
-55
+53
 20
 40
 41
@@ -1263,7 +1255,7 @@
 20
 40
 01
-62
+60
 20
 40
 41
@@ -1283,7 +1275,7 @@
 20
 40
 01
-62
+60
 20
 40
 41
@@ -1303,7 +1295,7 @@
 20
 40
 01
-62
+60
 20
 40
 41
@@ -1347,7 +1339,7 @@
 c0
 7f
 81
-51
+4f
 20
 20
 41
@@ -1359,7 +1351,7 @@
 20
 40
 01
-64
+62
 68
 48
 c9
@@ -1399,7 +1391,7 @@
 c0
 7f
 81
-5e
+5c
 20
 20
 41
@@ -1411,7 +1403,7 @@
 20
 40
 01
-64
+62
 68
 48
 c9
@@ -1436,8 +1428,8 @@
 20
 60
 93
-99
-fd
+1d
+30
 aa
 55
 40
@@ -2623,8 +2615,8 @@
 e8
 41
 01
-89
-e0
+09
+8a
 ff
 ff
 ff
@@ -8188,5 +8180,13 @@
 ff
 ff
 ff
-31
-0e
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+95
+66
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/FD-E701_Only2.4G_16M/output/program.lis	(revision 500)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/FD-E701_Only2.4G_16M/output/program.lis	(working copy)
@@ -8,16 +8,16 @@
 0005 c0618024 beq patch18_3 ,p_mouse_start_work 
 0006 c064805a beq patch19_1 ,p_mouse_setgpio_hibernate 
 0007 c065006a beq patch19_2 ,p_mouse_lpm_before_common 
-0008 c067008a beq patch19_6 ,p_mouse_motion 
-0009 c06800a4 beq patch1a_0 ,p_mouse_seting_dpi 
-000a c068812e beq patch1a_1 ,p_mouse_check_key_gpio 
-000b c06980e2 beq patch1a_3 ,p_mouse_init_sunt 
+0008 c0670088 beq patch19_6 ,p_mouse_motion 
+0009 c06800a2 beq patch1a_0 ,p_mouse_seting_dpi 
+000a c068812c beq patch1a_1 ,p_mouse_check_key_gpio 
+000b c06980e0 beq patch1a_3 ,p_mouse_init_sunt 
 000c c06b0080 beq patch1a_6 ,p_mouse_priority_bb_event 
-000d c06c80b5 beq patch1b_1 ,p_mouse_bb_event_timer 
+000d c06c80b3 beq patch1b_1 ,p_mouse_bb_event_timer 
 000e 2020137c branch loop 
 
 pf_patch_ext:
-000f c07500fb beq patch3d_2 ,p_g24_transmit_dispatch 
+000f c07500f9 beq patch3d_2 ,p_g24_transmit_dispatch 
 0010 2020137c branch loop 
 
 p_soft_reset:
@@ -138,7 +138,7 @@
 0065 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
 0066 d840003f arg gpcfg_output_high ,temp 
 0067 20406093 call gpio_config_function_int 
-0068 204000c6 call p_mouse_logo_led_on_timeout 
+0068 204000c4 call p_mouse_logo_led_on_timeout 
 0069 20203e36 branch mouse_setgpio_hibernate + 3 
 
 p_mouse_lpm_before_common:
@@ -177,301 +177,297 @@
 0086 204048c6 call mouse_device_poweron_timer_init 
 0087 2020484e branch mouse_24g_attempt_success 
 
-p_mouse_spi_sdio_gpio_inputup:
-0088 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-0089 20203f56 branch mouse_gpio_config_input_pu 
-
 p_mouse_motion:
-008a 78547c00 disable user 
-008b 58000000 setarg 0 
-008c 67e348d1 store 6 ,mem_mouse_x 
-008d 20404240 call mouse_check_sensor_data 
-008e 20400088 call p_mouse_spi_sdio_gpio_inputup 
-008f 20403f7e call mouse_zwheel 
-0090 20403f83 call mouse_t_zwheel 
-0091 204040dc call mouse_key 
-0092 6fe0c8d0 fetch 1 ,mem_mouse_key 
-0093 1fe17e1f and_into 0x1f ,pdata 
-0094 67e0c8d0 store 1 ,mem_mouse_key 
-0095 24340099 nbranch p_mouse_motion_nodata ,user 
-0096 2040471a call mouse_drawing_optima 
-0097 2040009c call p_mouse_logo_led_on_check 
-0098 20204544 branch mouse_no_data_timer_init 
+0088 78547c00 disable user 
+0089 58000000 setarg 0 
+008a 67e348d1 store 6 ,mem_mouse_x 
+008b 20404240 call mouse_check_sensor_data 
+008c 2040408e call mouse_dpi_config 
+008d 20403f7e call mouse_zwheel 
+008e 20403f83 call mouse_t_zwheel 
+008f 204040dc call mouse_key 
+0090 6fe0c8d0 fetch 1 ,mem_mouse_key 
+0091 1fe17e1f and_into 0x1f ,pdata 
+0092 67e0c8d0 store 1 ,mem_mouse_key 
+0093 24340097 nbranch p_mouse_motion_nodata ,user 
+0094 2040471a call mouse_drawing_optima 
+0095 2040009a call p_mouse_logo_led_on_check 
+0096 20204544 branch mouse_no_data_timer_init 
 
 p_mouse_motion_nodata:
-0099 20404728 call mouse_drawing_optima_init 
-009a 704be400 jam 0 ,mem_mouse_logo_led_on_check_count 
-009b 20600000 rtn 
+0097 20404728 call mouse_drawing_optima_init 
+0098 704be400 jam 0 ,mem_mouse_logo_led_on_check_count 
+0099 20600000 rtn 
 
 p_mouse_logo_led_on_check:
-009c 6fe0cbe4 fetch 1 ,mem_mouse_logo_led_on_check_count 
-009d 1fe0fe01 increase 1 ,pdata 
-009e 67e0cbe4 store 1 ,mem_mouse_logo_led_on_check_count 
-009f 1fe67c08 sub pdata ,low_voltage_led_count ,null 
-00a0 20610000 rtn positive 
+009a 6fe0cbe4 fetch 1 ,mem_mouse_logo_led_on_check_count 
+009b 1fe0fe01 increase 1 ,pdata 
+009c 67e0cbe4 store 1 ,mem_mouse_logo_led_on_check_count 
+009d 1fe67c08 sub pdata ,low_voltage_led_count ,null 
+009e 20610000 rtn positive 
 
 p_mouse_logo_led_on:
-00a1 58000258 setarg 0x0258 
-00a2 67e14be5 store 2 ,mem_mouse_logo_led_on_timer 
-00a3 20600000 rtn 
+009f 58000258 setarg 0x0258 
+00a0 67e14be5 store 2 ,mem_mouse_logo_led_on_timer 
+00a1 20600000 rtn 
 
 p_mouse_seting_dpi:
-00a4 2040408f call mouse_setting_dpi_4_level 
-00a5 204000a7 call p_mouse_dpi_led_blink_delay 
-00a6 20204098 branch mouse_seting_sensor_type 
+00a2 2040408f call mouse_setting_dpi_4_level 
+00a3 204000a5 call p_mouse_dpi_led_blink_delay 
+00a4 20204098 branch mouse_seting_sensor_type 
 
 p_mouse_dpi_led_blink_delay:
-00a7 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00a8 c17f8000 rtneq gpio_disable 
-00a9 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+00a5 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+00a6 c17f8000 rtneq gpio_disable 
+00a7 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+00a8 247a0000 nrtn blank 
+00a9 6fe14883 fetch 2 ,mem_24g_pair_timeout 
 00aa 247a0000 nrtn blank 
-00ab 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+00ab 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
 00ac 247a0000 nrtn blank 
-00ad 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+00ad 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
 00ae 247a0000 nrtn blank 
-00af 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-00b0 247a0000 nrtn blank 
-00b1 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-00b2 203a00cd branch p_mouse_dpi_led_blink_init ,blank 
-00b3 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
-00b4 20600000 rtn 
+00af 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+00b0 203a00cb branch p_mouse_dpi_led_blink_init ,blank 
+00b1 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
+00b2 20600000 rtn 
 
 p_mouse_bb_event_timer:
-00b5 20403e9b call mouse_adc_read 
-00b6 20404956 call mouse_low_voltage_led_timer 
-00b7 2040232b call g24_pair_timeout_timer 
-00b8 20402556 call g24_reconn_timeout_timer 
-00b9 204047cd call mouse_24g_long_sleep_param_update_timer 
-00ba 204048be call mouse_device_poweron_timer 
-00bb 204000ca call p_mouse_dpi_led_blink_delay_timer 
-00bc 202044bd branch mouse_bb_event_timer + 8 
+00b3 20403e9b call mouse_adc_read 
+00b4 20404956 call mouse_low_voltage_led_timer 
+00b5 2040232b call g24_pair_timeout_timer 
+00b6 20402556 call g24_reconn_timeout_timer 
+00b7 204047cd call mouse_24g_long_sleep_param_update_timer 
+00b8 204048be call mouse_device_poweron_timer 
+00b9 204000c8 call p_mouse_dpi_led_blink_delay_timer 
+00ba 202044bd branch mouse_bb_event_timer + 8 
 
 p_mouse_logo_led_on_timer:
-00bd 6fe0cbe3 fetch 1 ,mem_mouse_logo_led_gpio 
-00be c17f8000 rtneq gpio_disable 
-00bf 6fe14be5 fetch 2 ,mem_mouse_logo_led_on_timer 
-00c0 207a0000 rtn blank 
-00c1 6848cbe3 fetcht 1 ,mem_mouse_logo_led_gpio 
-00c2 20406069 call gpio_out_active 
-00c3 da604be5 arg mem_mouse_logo_led_on_timer ,regc 
-00c4 da4000c6 arg p_mouse_logo_led_on_timeout ,regb 
-00c5 20203191 branch timer_single_step_2b 
+00bb 6fe0cbe3 fetch 1 ,mem_mouse_logo_led_gpio 
+00bc c17f8000 rtneq gpio_disable 
+00bd 6fe14be5 fetch 2 ,mem_mouse_logo_led_on_timer 
+00be 207a0000 rtn blank 
+00bf 6848cbe3 fetcht 1 ,mem_mouse_logo_led_gpio 
+00c0 20406069 call gpio_out_active 
+00c1 da604be5 arg mem_mouse_logo_led_on_timer ,regc 
+00c2 da4000c4 arg p_mouse_logo_led_on_timeout ,regb 
+00c3 20203191 branch timer_single_step_2b 
 
 p_mouse_logo_led_on_timeout:
-00c6 58000000 setarg 0 
-00c7 67e14be5 store 2 ,mem_mouse_logo_led_on_timer 
-00c8 6848cbe3 fetcht 1 ,mem_mouse_logo_led_gpio 
-00c9 20206065 branch gpio_out_inactive 
+00c4 58000000 setarg 0 
+00c5 67e14be5 store 2 ,mem_mouse_logo_led_on_timer 
+00c6 6848cbe3 fetcht 1 ,mem_mouse_logo_led_gpio 
+00c7 20206065 branch gpio_out_inactive 
 
 p_mouse_dpi_led_blink_delay_timer:
-00ca da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-00cb da4000cd arg p_mouse_dpi_led_blink_init ,regb 
-00cc 2020318a branch timer_single_step 
+00c8 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+00c9 da4000cb arg p_mouse_dpi_led_blink_init ,regb 
+00ca 2020318a branch timer_single_step 
 
 p_mouse_dpi_led_blink_init:
-00cd 6fe0c927 fetch 1 ,mem_config_sensor_type 
-00ce c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-00cf c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-00d0 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00d1 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-00d2 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-00d3 67e14930 store 2 ,mem_mouse_on_time 
-00d4 67e14932 store 2 ,mem_mouse_off_time 
-00d5 da200000 arg 0 ,rega 
-00d6 6848c992 fetcht 1 ,mem_mouse_dpi 
-00d7 18408402 increase 2 ,temp 
-00d8 18467c03 sub temp ,3 ,null 
-00d9 204100dc call p_mouse_dpi_led_blink_init_level_4 ,positive 
-00da 244100e0 ncall p_mouse_dpi_led_blink_count_clean ,positive 
-00db 202048ff branch mouse_dpi_led_blink_init_end 
+00cb 6fe0c927 fetch 1 ,mem_config_sensor_type 
+00cc c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
+00cd c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
+00ce 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+00cf 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
+00d0 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
+00d1 67e14930 store 2 ,mem_mouse_on_time 
+00d2 67e14932 store 2 ,mem_mouse_off_time 
+00d3 da200000 arg 0 ,rega 
+00d4 6848c992 fetcht 1 ,mem_mouse_dpi 
+00d5 18408402 increase 2 ,temp 
+00d6 18467c03 sub temp ,3 ,null 
+00d7 204100da call p_mouse_dpi_led_blink_init_level_4 ,positive 
+00d8 244100de ncall p_mouse_dpi_led_blink_count_clean ,positive 
+00d9 202048ff branch mouse_dpi_led_blink_init_end 
 
 p_mouse_dpi_led_blink_init_level_4:
-00dc 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00dd c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-00de 18408401 increase 1 ,temp 
-00df 20600000 rtn 
+00da 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00db c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+00dc 18408401 increase 1 ,temp 
+00dd 20600000 rtn 
 
 p_mouse_dpi_led_blink_count_clean:
-00e0 184085fd increase -3 ,temp 
-00e1 20600000 rtn 
+00de 184085fd increase -3 ,temp 
+00df 20600000 rtn 
 
 p_mouse_init_sunt:
-00e2 20403f65 call mouse_sensor_spi_init 
-00e3 20758000 rtn wake 
+00e0 20403f65 call mouse_sensor_spi_init 
+00e1 20758000 rtn wake 
 
 p_mouse_init_sensor_wakeup:
-00e4 20404236 call mouse_sensor_poweron 
+00e2 20404236 call mouse_sensor_poweron 
 
 p_mouse_init_sensor:
-00e5 204041b5 call mouse_read_sensor_id 
-00e6 c01800ec beq p32xx_id1 ,p_mouse_init_p32xx_id2_judge 
-00e7 c018c217 beq p3065_id1 ,mouse_init_p3065 
-00e8 c02c4220 beq pka8g2_id1 ,mouse_ka8g2_id2_judge 
-00e9 204041b2 call mouse_twspi_reset 
-00ea 20001af4 nop 6900 
-00eb 202000e5 branch p_mouse_init_sensor 
+00e3 204041b5 call mouse_read_sensor_id 
+00e4 c01800ea beq p32xx_id1 ,p_mouse_init_p32xx_id2_judge 
+00e5 c018c217 beq p3065_id1 ,mouse_init_p3065 
+00e6 c02c4220 beq pka8g2_id1 ,mouse_ka8g2_id2_judge 
+00e7 204041b2 call mouse_twspi_reset 
+00e8 20001af4 nop 6900 
+00e9 202000e3 branch p_mouse_init_sensor 
 
 p_mouse_init_p32xx_id2_judge:
-00ec 6fe0c9c2 fetch 1 ,mem_sensor_id2 
-00ed c02d00f5 beq p_mx8650 ,p_mouse_mx8650_init_param 
-00ee c06c41cb beq p8009_id2 ,mouse_8009_init_param 
-00ef c068c1da beq p3205_tj3t_id2 ,mouse_3205_3t_init_param 
-00f0 c06941e3 beq p3204_tj3l_id2 ,mouse_3204_3l_init_param 
-00f1 c00141ea beq p3212_id2 ,mouse_3212_init_param 
-00f2 c02a41ed beq pka8_id2 ,mouse_ka8_init_param_check 
-00f3 c0284214 beq p6520a_id2 ,mouse_p6520_init_param 
-00f4 202000e5 branch p_mouse_init_sensor 
+00ea 6fe0c9c2 fetch 1 ,mem_sensor_id2 
+00eb c02d00f3 beq p_mx8650 ,p_mouse_mx8650_init_param 
+00ec c06c41cb beq p8009_id2 ,mouse_8009_init_param 
+00ed c068c1da beq p3205_tj3t_id2 ,mouse_3205_3t_init_param 
+00ee c06941e3 beq p3204_tj3l_id2 ,mouse_3204_3l_init_param 
+00ef c00141ea beq p3212_id2 ,mouse_3212_init_param 
+00f0 c02a41ed beq pka8_id2 ,mouse_ka8_init_param_check 
+00f1 c0284214 beq p6520a_id2 ,mouse_p6520_init_param 
+00f2 202000e3 branch p_mouse_init_sensor 
 
 p_mouse_mx8650_init_param:
-00f5 70492705 jam mx8650 ,mem_config_sensor_type 
-00f6 20404232 call mouse_sensor_reset 
-00f7 20407d12 call delay_10ms 
-00f8 da604be7 arg mem_sensor_8650_init_new ,regc 
-00f9 2040422b call mouse_sensor_wr_seq 
-00fa 2020408e branch mouse_dpi_config 
+00f3 70492705 jam mx8650 ,mem_config_sensor_type 
+00f4 20404232 call mouse_sensor_reset 
+00f5 20407d12 call delay_10ms 
+00f6 da604be7 arg mem_sensor_8650_init_new ,regc 
+00f7 2040422b call mouse_sensor_wr_seq 
+00f8 2020408e branch mouse_dpi_config 
 
 p_g24_transmit_dispatch:
-00fb 20402631 call g24_txdata_prep 
-00fc 243426a1 nbranch g24_nodata_transmit ,user 
+00f9 20402631 call g24_txdata_prep 
+00fa 243426a1 nbranch g24_nodata_transmit ,user 
 
 p_g24_transmit_start:
-00fd 20400116 call p_g24_transmit_process 
-00fe 204026ee call power_ctrl_start 
-00ff 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-0100 243a262c nbranch g24_short_sleep ,blank 
-0101 20202628 branch g24_transmit_start_next 
+00fb 20400114 call p_g24_transmit_process 
+00fc 204026ee call power_ctrl_start 
+00fd 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+00fe 243a262c nbranch g24_short_sleep ,blank 
+00ff 20202628 branch g24_transmit_start_next 
 
 p_g24_nodata_transmit:
-0102 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
-0103 205a0108 call p_g24_send_abort_packet ,blank 
-0104 6fe0c8bd fetch 1 ,mem_24g_transmit_by_interrupt 
-0105 c1008000 rtneq g24_tx_timer_int_enable 
-0106 2040269f call g24_search_receiver 
-0107 202026b5 branch g24_long_sleep 
+0100 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
+0101 205a0106 call p_g24_send_abort_packet ,blank 
+0102 6fe0c8bd fetch 1 ,mem_24g_transmit_by_interrupt 
+0103 c1008000 rtneq g24_tx_timer_int_enable 
+0104 2040269f call g24_search_receiver 
+0105 202026b5 branch g24_long_sleep 
 
 p_g24_send_abort_packet:
-0108 70483601 jam type_ms ,mem_24g_data_type 
-0109 7048a701 jam 1 ,mem_24g_abort_pac 
-010a 20402642 call g24_transmit_rf_ctrl_clear 
-010b 67e0c7c6 store 1 ,mem_24g_txbuf 
-010c 58000000 setarg 0 
-010d 67e3c7c7 store 7 ,mem_24g_txbuf + 1 
-010e 6fe248a9 fetch 4 ,mem_24g_device_addr 
-010f 67e247ce store 4 ,mem_24g_txbuf + 8 
-0110 7048350c jam 12 ,mem_24g_datalen 
-0111 6fe0c836 fetch 1 ,mem_24g_data_type 
-0112 79207e03 set1 bit_abort ,pdata 
-0113 67e0c836 store 1 ,mem_24g_data_type 
-0114 20402291 call g24_transmit_prep 
-0115 202000fd branch p_g24_transmit_start 
+0106 70483601 jam type_ms ,mem_24g_data_type 
+0107 7048a701 jam 1 ,mem_24g_abort_pac 
+0108 20402642 call g24_transmit_rf_ctrl_clear 
+0109 67e0c7c6 store 1 ,mem_24g_txbuf 
+010a 58000000 setarg 0 
+010b 67e3c7c7 store 7 ,mem_24g_txbuf + 1 
+010c 6fe248a9 fetch 4 ,mem_24g_device_addr 
+010d 67e247ce store 4 ,mem_24g_txbuf + 8 
+010e 7048350c jam 12 ,mem_24g_datalen 
+010f 6fe0c836 fetch 1 ,mem_24g_data_type 
+0110 79207e03 set1 bit_abort ,pdata 
+0111 67e0c836 store 1 ,mem_24g_data_type 
+0112 20402291 call g24_transmit_prep 
+0113 202000fb branch p_g24_transmit_start 
 
 p_g24_transmit_process:
-0116 7048a600 jam 0 ,mem_24g_retry 
+0114 7048a600 jam 0 ,mem_24g_retry 
 
 p_g24_transmit_loop:
-0117 6961015f fetchr timeup ,2 ,mem_param_rx_setup 
-0118 34730200 until clkn_rt ,meet 
-0119 2040265b call g24_transmit_receive_ack 
-011a 6fe0c82c fetch 1 ,mem_24g_no_ack 
-011b c000a651 beq no_ack_24g ,g24_transmit_no_ack 
-011c 242c0125 nbranch p_g24_retransmit ,sync 
-011d 24378125 nbranch p_g24_retransmit ,user3 
-011e 20402672 call g24_ackpayload_parse 
-011f 20400121 call p_mouse_wakeup_24g 
-0120 20202651 branch g24_transmit_no_ack 
+0115 6961015f fetchr timeup ,2 ,mem_param_rx_setup 
+0116 34730200 until clkn_rt ,meet 
+0117 2040265b call g24_transmit_receive_ack 
+0118 6fe0c82c fetch 1 ,mem_24g_no_ack 
+0119 c000a651 beq no_ack_24g ,g24_transmit_no_ack 
+011a 242c0123 nbranch p_g24_retransmit ,sync 
+011b 24378123 nbranch p_g24_retransmit ,user3 
+011c 20402672 call g24_ackpayload_parse 
+011d 2040011f call p_mouse_wakeup_24g 
+011e 20202651 branch g24_transmit_no_ack 
 
 p_mouse_wakeup_24g:
-0121 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-0122 245a00e4 ncall p_mouse_init_sensor_wakeup ,blank 
-0123 704be100 jam 0 ,mem_sensor_shutdown_flag 
-0124 20600000 rtn 
+011f 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+0120 245a00e2 ncall p_mouse_init_sensor_wakeup ,blank 
+0121 704be100 jam 0 ,mem_sensor_shutdown_flag 
+0122 20600000 rtn 
 
 p_g24_retransmit:
-0125 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
-0126 247a0000 nrtn blank 
-0127 6fe148a3 fetch 2 ,mem_24g_txfail_cnt 
-0128 1fe0fe01 increase 1 ,pdata 
-0129 67e148a3 store 2 ,mem_24g_txfail_cnt 
-012a 6fe0c8a4 fetch 1 ,mem_24g_txfail_cnt + 1 
-012b c2822679 bbit1 4 ,g24_tx_attempt_fail 
-012c 2040267e call g24_transmit_hop_process 
-012d 20200117 branch p_g24_transmit_loop 
+0123 6fe0c8a7 fetch 1 ,mem_24g_abort_pac 
+0124 247a0000 nrtn blank 
+0125 6fe148a3 fetch 2 ,mem_24g_txfail_cnt 
+0126 1fe0fe01 increase 1 ,pdata 
+0127 67e148a3 store 2 ,mem_24g_txfail_cnt 
+0128 6fe0c8a4 fetch 1 ,mem_24g_txfail_cnt + 1 
+0129 c2822679 bbit1 4 ,g24_tx_attempt_fail 
+012a 2040267e call g24_transmit_hop_process 
+012b 20200115 branch p_g24_transmit_loop 
 
 p_mouse_check_key_gpio:
-012e 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-012f 245a4121 ncall mouse_check_key_gpio_once ,blank 
-0130 da200000 arg 0 ,rega 
-0131 20400139 call p_mouse_check_lkey_gpio 
-0132 2040013e call p_mouse_check_rkey_gpio 
-0133 20400143 call p_mouse_check_mkey_gpio 
-0134 20400148 call p_mouse_check_bkkey_gpio 
-0135 20400155 call p_mouse_check_fwkey_gpio 
-0136 2040416a call mouse_check_customerkey_gpio 
-0137 1a227e00 copy rega ,pdata 
-0138 20600000 rtn 
+012c 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+012d 245a4121 ncall mouse_check_key_gpio_once ,blank 
+012e da200000 arg 0 ,rega 
+012f 20400137 call p_mouse_check_lkey_gpio 
+0130 2040013c call p_mouse_check_rkey_gpio 
+0131 20400141 call p_mouse_check_mkey_gpio 
+0132 20400146 call p_mouse_check_bkkey_gpio 
+0133 20400153 call p_mouse_check_fwkey_gpio 
+0134 2040416a call mouse_check_customerkey_gpio 
+0135 1a227e00 copy rega ,pdata 
+0136 20600000 rtn 
 
 p_mouse_check_lkey_gpio:
-0139 6fe0c918 fetch 1 ,mem_lbutton_gpio 
-013a 20400162 call p_mouse_gpio_config_output_high 
-013b 20404124 call mouse_check_lkey_gpio 
-013c 6848c918 fetcht 1 ,mem_lbutton_gpio 
-013d 20203f56 branch mouse_gpio_config_input_pu 
+0137 6fe0c918 fetch 1 ,mem_lbutton_gpio 
+0138 20400160 call p_mouse_gpio_config_output_high 
+0139 20404124 call mouse_check_lkey_gpio 
+013a 6848c918 fetcht 1 ,mem_lbutton_gpio 
+013b 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_rkey_gpio:
-013e 6fe0c919 fetch 1 ,mem_rbutton_gpio 
-013f 20400162 call p_mouse_gpio_config_output_high 
-0140 2040412a call mouse_check_rkey_gpio 
-0141 6848c919 fetcht 1 ,mem_rbutton_gpio 
-0142 20203f56 branch mouse_gpio_config_input_pu 
+013c 6fe0c919 fetch 1 ,mem_rbutton_gpio 
+013d 20400160 call p_mouse_gpio_config_output_high 
+013e 2040412a call mouse_check_rkey_gpio 
+013f 6848c919 fetcht 1 ,mem_rbutton_gpio 
+0140 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_mkey_gpio:
-0143 6fe0c91a fetch 1 ,mem_mbutton_gpio 
-0144 20400162 call p_mouse_gpio_config_output_high 
-0145 20404130 call mouse_check_mkey_gpio 
-0146 6848c91a fetcht 1 ,mem_mbutton_gpio 
-0147 20203f56 branch mouse_gpio_config_input_pu 
+0141 6fe0c91a fetch 1 ,mem_mbutton_gpio 
+0142 20400160 call p_mouse_gpio_config_output_high 
+0143 20404130 call mouse_check_mkey_gpio 
+0144 6848c91a fetcht 1 ,mem_mbutton_gpio 
+0145 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_check_bkkey_gpio:
-0148 6fe0c90d fetch 1 ,mem_bk_button_gpio 
-0149 c17f8000 rtneq gpio_disable 
-014a 704b9603 jam mouse_bk_key ,mem_mouse_key_temp 
-014b 6fe0cb91 fetch 1 ,mem_mouse_bkkey_press_status 
-014c 1fe22600 copy pdata ,regc 
-014d 6848c90d fetcht 1 ,mem_bk_button_gpio 
-014e 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-014f c07f8151 beq gpio_disable ,p_mouse_3io6key_bk_check 
-0150 2020413e branch mouse_check_bkkey_gpio_next 
+0146 6fe0c90d fetch 1 ,mem_bk_button_gpio 
+0147 c17f8000 rtneq gpio_disable 
+0148 704b9603 jam mouse_bk_key ,mem_mouse_key_temp 
+0149 6fe0cb91 fetch 1 ,mem_mouse_bkkey_press_status 
+014a 1fe22600 copy pdata ,regc 
+014b 6848c90d fetcht 1 ,mem_bk_button_gpio 
+014c 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+014d c07f814f beq gpio_disable ,p_mouse_3io6key_bk_check 
+014e 2020413e branch mouse_check_bkkey_gpio_next 
 
 p_mouse_3io6key_bk_check:
-0151 6fe0c90d fetch 1 ,mem_bk_button_gpio 
-0152 20400164 call p_mouse_gpio_config_output_low 
-0153 6848c90d fetcht 1 ,mem_bk_button_gpio 
-0154 2020414b branch mouse_3io6key_bk_check 
+014f 6fe0c90d fetch 1 ,mem_bk_button_gpio 
+0150 20400162 call p_mouse_gpio_config_output_low 
+0151 6848c90d fetcht 1 ,mem_bk_button_gpio 
+0152 2020414b branch mouse_3io6key_bk_check 
 
 p_mouse_check_fwkey_gpio:
-0155 6fe0c90e fetch 1 ,mem_fw_button_gpio 
-0156 c17f8000 rtneq gpio_disable 
-0157 704b9604 jam mouse_fw_key ,mem_mouse_key_temp 
-0158 6fe0cb92 fetch 1 ,mem_mouse_fwkey_press_status 
-0159 1fe22600 copy pdata ,regc 
-015a 6848c90e fetcht 1 ,mem_fw_button_gpio 
-015b 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-015c c07f815e beq gpio_disable ,p_mouse_3io6key_fw_check 
-015d 20204157 branch mouse_check_fwkey_gpio_next 
+0153 6fe0c90e fetch 1 ,mem_fw_button_gpio 
+0154 c17f8000 rtneq gpio_disable 
+0155 704b9604 jam mouse_fw_key ,mem_mouse_key_temp 
+0156 6fe0cb92 fetch 1 ,mem_mouse_fwkey_press_status 
+0157 1fe22600 copy pdata ,regc 
+0158 6848c90e fetcht 1 ,mem_fw_button_gpio 
+0159 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+015a c07f815c beq gpio_disable ,p_mouse_3io6key_fw_check 
+015b 20204157 branch mouse_check_fwkey_gpio_next 
 
 p_mouse_3io6key_fw_check:
-015e 6fe0c90e fetch 1 ,mem_fw_button_gpio 
-015f 20400164 call p_mouse_gpio_config_output_low 
-0160 6848c90e fetcht 1 ,mem_fw_button_gpio 
-0161 20204164 branch mouse_3io6key_fw_check 
+015c 6fe0c90e fetch 1 ,mem_fw_button_gpio 
+015d 20400162 call p_mouse_gpio_config_output_low 
+015e 6848c90e fetcht 1 ,mem_fw_button_gpio 
+015f 20204164 branch mouse_3io6key_fw_check 
 
 p_mouse_gpio_config_output_high:
-0162 d840003f arg gpcfg_output_high ,temp 
-0163 20206093 branch gpio_config_function_int 
+0160 d840003f arg gpcfg_output_high ,temp 
+0161 20206093 branch gpio_config_function_int 
 
 p_mouse_gpio_config_output_low:
-0164 d840003e arg gpcfg_output_low ,temp 
-0165 20206093 branch gpio_config_function_int 
+0162 d840003e arg gpcfg_output_low ,temp 
+0163 20206093 branch gpio_config_function_int 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/FD-E701_Only2.4G_16M/program/patch.prog	(revision 500)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/FD-E701_Only2.4G_16M/program/patch.prog	(working copy)
@@ -226,16 +226,12 @@
 	call mouse_device_poweron_timer_init
 	branch mouse_24g_attempt_success
 
-p_mouse_spi_sdio_gpio_inputup:
-	fetcht 1,mem_mouse_sensor_sdio_gpio
-	branch mouse_gpio_config_input_pu
-
 p_mouse_motion:
 	disable user
 	setarg 0
 	store 6,mem_mouse_x
 	call mouse_check_sensor_data
-	call p_mouse_spi_sdio_gpio_inputup
+	call mouse_dpi_config
 	call mouse_zwheel
 	call mouse_t_zwheel
 	call mouse_key
