Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo_Only2.4G/output/eeprom.dat	(revision 412)
+++ /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo_Only2.4G/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-ee
+f6
 02
 c2
 84
@@ -39,15 +39,15 @@
 c0
 68
 00
-8a
+8c
 c0
 6b
 00
-82
+84
 c0
 6c
 80
-9b
+9d
 20
 20
 13
@@ -312,10 +312,10 @@
 40
 60
 93
-df
+6f
 e0
-00
-03
+cb
+e2
 d8
 40
 00
@@ -520,6 +520,14 @@
 e0
 80
 a1
+68
+48
+c9
+20
+20
+40
+60
+42
 20
 20
 3e
@@ -531,7 +539,7 @@
 c0
 1e
 00
-85
+87
 20
 20
 43
@@ -563,7 +571,7 @@
 20
 40
 00
-8d
+8f
 20
 20
 40
@@ -615,7 +623,7 @@
 20
 3a
 00
-a6
+a8
 67
 e0
 cb
@@ -651,7 +659,7 @@
 20
 40
 00
-a3
+a5
 20
 20
 44
@@ -663,7 +671,7 @@
 da
 40
 00
-a6
+a8
 20
 20
 31
@@ -719,11 +727,11 @@
 20
 41
 00
-b5
+b7
 24
 41
 00
-b9
+bb
 20
 20
 48
@@ -752,8 +760,8 @@
 60
 00
 00
-85
-ab
+97
+51
 aa
 55
 40
@@ -838,7 +846,7 @@
 7a
 41
 88
-1f
+16
 ce
 aa
 55
@@ -1914,16 +1922,8 @@
 e8
 41
 01
-ba
-6f
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+a8
+c6
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-5e
-10
+aa
+4e
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo_Only2.4G/output/program.lis	(revision 412)
+++ /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo_Only2.4G/output/program.lis	(working copy)
@@ -8,9 +8,9 @@
 0005 c0618019 beq patch18_3 ,p_mouse_start_work 
 0006 c0648067 beq patch19_1 ,p_mouse_setgpio_hibernate 
 0007 c0650076 beq patch19_2 ,p_mouse_lpm_before_common 
-0008 c068008a beq patch1a_0 ,p_mouse_seting_dpi 
-0009 c06b0082 beq patch1a_6 ,p_mouse_priority_bb_event 
-000a c06c809b beq patch1b_1 ,p_mouse_bb_event_timer 
+0008 c068008c beq patch1a_0 ,p_mouse_seting_dpi 
+0009 c06b0084 beq patch1a_6 ,p_mouse_priority_bb_event 
+000a c06c809d beq patch1b_1 ,p_mouse_bb_event_timer 
 000b 2020137c branch loop 
 
 pf_patch_ext:
@@ -105,7 +105,7 @@
 004a 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
 004b d840003e arg gpcfg_output_low ,temp 
 004c 20406093 call gpio_config_function_int 
-004d dfe00003 arg 3 ,pdata 
+004d 6fe0cbe2 fetch 1 ,mem_mouse_reuse_2ice_gpio 
 004e d840003e arg gpcfg_output_low ,temp 
 004f 20406093 call gpio_config_function_int 
 0050 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
@@ -169,82 +169,84 @@
 007e 6fe080a1 fetch 1 ,mem_gpio_wakeup_low + 2 
 007f 793ffe03 set0 3 ,pdata 
 0080 67e080a1 store 1 ,mem_gpio_wakeup_low + 2 
-0081 20203e44 branch mouse_lpm_before_common_next 
+0081 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+0082 20406042 call gpio_clr_wake 
+0083 20203e44 branch mouse_lpm_before_common_next 
 
 p_mouse_priority_bb_event:
-0082 1a627e00 copy regc ,pdata 
-0083 c01e0085 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-0084 20204336 branch mouse_priority_bb_event + 2 
+0084 1a627e00 copy regc ,pdata 
+0085 c01e0087 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+0086 20204336 branch mouse_priority_bb_event + 2 
 
 p_mouse_24g_attempt_success:
-0085 6fe2483c fetch 4 ,mem_24g_addr 
-0086 67e24891 store 4 ,mem_24g_receiver_addr 
-0087 67e24993 store 4 ,mem_mouse_24g_addr 
-0088 204048c6 call mouse_device_poweron_timer_init 
-0089 2020484e branch mouse_24g_attempt_success 
+0087 6fe2483c fetch 4 ,mem_24g_addr 
+0088 67e24891 store 4 ,mem_24g_receiver_addr 
+0089 67e24993 store 4 ,mem_mouse_24g_addr 
+008a 204048c6 call mouse_device_poweron_timer_init 
+008b 2020484e branch mouse_24g_attempt_success 
 
 p_mouse_seting_dpi:
-008a 2040408f call mouse_setting_dpi_4_level 
-008b 2040008d call p_mouse_dpi_led_blink_delay 
-008c 20204098 branch mouse_seting_sensor_type 
+008c 2040408f call mouse_setting_dpi_4_level 
+008d 2040008f call p_mouse_dpi_led_blink_delay 
+008e 20204098 branch mouse_seting_sensor_type 
 
 p_mouse_dpi_led_blink_delay:
-008d 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-008e c17f8000 rtneq gpio_disable 
-008f 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-0090 247a0000 nrtn blank 
-0091 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+008f 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+0090 c17f8000 rtneq gpio_disable 
+0091 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
 0092 247a0000 nrtn blank 
-0093 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+0093 6fe14883 fetch 2 ,mem_24g_pair_timeout 
 0094 247a0000 nrtn blank 
-0095 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+0095 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
 0096 247a0000 nrtn blank 
-0097 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-0098 203a00a6 branch p_mouse_dpi_led_blink_init ,blank 
-0099 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
-009a 20600000 rtn 
+0097 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+0098 247a0000 nrtn blank 
+0099 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+009a 203a00a8 branch p_mouse_dpi_led_blink_init ,blank 
+009b 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
+009c 20600000 rtn 
 
 p_mouse_bb_event_timer:
-009b 20403e9b call mouse_adc_read 
-009c 20404956 call mouse_low_voltage_led_timer 
-009d 2040232b call g24_pair_timeout_timer 
-009e 20402556 call g24_reconn_timeout_timer 
-009f 204047cd call mouse_24g_long_sleep_param_update_timer 
-00a0 204048be call mouse_device_poweron_timer 
-00a1 204000a3 call p_mouse_dpi_led_blink_delay_timer 
-00a2 202044bd branch mouse_bb_event_timer + 8 
+009d 20403e9b call mouse_adc_read 
+009e 20404956 call mouse_low_voltage_led_timer 
+009f 2040232b call g24_pair_timeout_timer 
+00a0 20402556 call g24_reconn_timeout_timer 
+00a1 204047cd call mouse_24g_long_sleep_param_update_timer 
+00a2 204048be call mouse_device_poweron_timer 
+00a3 204000a5 call p_mouse_dpi_led_blink_delay_timer 
+00a4 202044bd branch mouse_bb_event_timer + 8 
 
 p_mouse_dpi_led_blink_delay_timer:
-00a3 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-00a4 da4000a6 arg p_mouse_dpi_led_blink_init ,regb 
-00a5 2020318a branch timer_single_step 
+00a5 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+00a6 da4000a8 arg p_mouse_dpi_led_blink_init ,regb 
+00a7 2020318a branch timer_single_step 
 
 p_mouse_dpi_led_blink_init:
-00a6 6fe0c927 fetch 1 ,mem_config_sensor_type 
-00a7 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-00a8 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-00a9 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00aa 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-00ab 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-00ac 67e14930 store 2 ,mem_mouse_on_time 
-00ad 67e14932 store 2 ,mem_mouse_off_time 
-00ae da200000 arg 0 ,rega 
-00af 6848c992 fetcht 1 ,mem_mouse_dpi 
-00b0 18408402 increase 2 ,temp 
-00b1 18467c03 sub temp ,3 ,null 
-00b2 204100b5 call p_mouse_dpi_led_blink_init_level_4 ,positive 
-00b3 244100b9 ncall p_mouse_dpi_led_blink_count_clean ,positive 
-00b4 202048ff branch mouse_dpi_led_blink_init_end 
+00a8 6fe0c927 fetch 1 ,mem_config_sensor_type 
+00a9 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
+00aa c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
+00ab 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+00ac 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
+00ad 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
+00ae 67e14930 store 2 ,mem_mouse_on_time 
+00af 67e14932 store 2 ,mem_mouse_off_time 
+00b0 da200000 arg 0 ,rega 
+00b1 6848c992 fetcht 1 ,mem_mouse_dpi 
+00b2 18408402 increase 2 ,temp 
+00b3 18467c03 sub temp ,3 ,null 
+00b4 204100b7 call p_mouse_dpi_led_blink_init_level_4 ,positive 
+00b5 244100bb ncall p_mouse_dpi_led_blink_count_clean ,positive 
+00b6 202048ff branch mouse_dpi_led_blink_init_end 
 
 p_mouse_dpi_led_blink_init_level_4:
-00b5 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00b6 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-00b7 18408401 increase 1 ,temp 
-00b8 20600000 rtn 
+00b7 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00b8 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+00b9 18408401 increase 1 ,temp 
+00ba 20600000 rtn 
 
 p_mouse_dpi_led_blink_count_clean:
-00b9 184085fd increase -3 ,temp 
-00ba 20600000 rtn 
+00bb 184085fd increase -3 ,temp 
+00bc 20600000 rtn 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo_Only2.4G/program/patch.prog	(revision 412)
+++ /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo_Only2.4G/program/patch.prog	(working copy)
@@ -108,7 +108,7 @@
 	fetch 1,mem_select_sensor_angle_gpio
 	arg gpcfg_output_low,temp
  	call gpio_config_function_int
- 	arg 3,pdata
+ 	fetch 1,mem_mouse_reuse_2ice_gpio
 	arg gpcfg_output_low,temp
  	call gpio_config_function_int
 
@@ -175,6 +175,9 @@
 	set0 3,pdata
 	store 1,mem_gpio_wakeup_low+2
 
+	fetcht 1,mem_mouse_sensor_sdio_gpio	//clear sdio wakeup
+	call gpio_clr_wake
+
 	branch mouse_lpm_before_common_next
 
 p_mouse_priority_bb_event:
Index: sched/mouse.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo_Only2.4G/sched/mouse.dat	(revision 412)
+++ /YC1308AC/branch/mouse_project/YJX_Project/Only2.4G/MingAo_Only2.4G/sched/mouse.dat	(working copy)
@@ -1,6 +1,6 @@
 mem_device_option:08	#08 mouse
 
-mem_lpm_config:88 1f ce	#4khz
+mem_lpm_config:88 16 ce	#4khz
 mem_fcomp_div:18
 
 mem_rf_init_data:ff
