Index: format/app_mouse.format
===================================================================
--- /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/format/app_mouse.format	(revision 621)
+++ /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/format/app_mouse.format	(working copy)
@@ -337,6 +337,7 @@
 2 mem_mouse_data_y_value
 2 mem_mouse_data_xy_value
 
+1 mem_config_device_24g_led_gpio_patch
 )
 
 
@@ -618,3 +619,7 @@
 7 MOUSE_DEVICE_NUMBER_FLAG
 )
 
+(
+0x03 ICE_REUSE_GPIO
+)
+
Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/output/eeprom.dat	(revision 621)
+++ /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-06
+1e
 0c
 c2
 84
@@ -59,11 +59,11 @@
 c0
 66
 02
-cf
+d5
 c0
 67
 02
-73
+79
 c0
 68
 01
@@ -83,11 +83,11 @@
 c0
 6d
 02
-30
+36
 c0
 74
 02
-3b
+41
 20
 20
 13
@@ -103,11 +103,11 @@
 c0
 43
 82
-37
+3d
 c0
 50
 82
-4f
+55
 c0
 54
 80
@@ -127,7 +127,7 @@
 c0
 76
 02
-70
+76
 20
 20
 13
@@ -1827,7 +1827,7 @@
 20
 3a
 02
-06
+0c
 67
 e0
 cb
@@ -1947,7 +1947,7 @@
 20
 40
 02
-ea
+f0
 20
 40
 23
@@ -1963,7 +1963,7 @@
 20
 40
 02
-03
+09
 20
 40
 40
@@ -1975,7 +1975,7 @@
 20
 40
 02
-1b
+21
 20
 20
 44
@@ -2007,25 +2007,49 @@
 20
 3a
 01
-f7
-20
-40
-01
-f9
-20
-20
-49
+fb
+6f
+e0
+cc
+14
+c0
+81
+c9
 20
+68
+48
+cc
+14
 20
 40
-01
-f9
+60
+69
+68
+48
+cc
+14
 20
 20
-49
+60
+69
+6f
+e0
+cc
+14
+c0
+81
+c9
 12
 68
 48
+cc
+14
+20
+20
+3f
+56
+68
+48
 c9
 21
 20
@@ -2071,7 +2095,7 @@
 da
 40
 02
-06
+0c
 20
 20
 31
@@ -2127,11 +2151,11 @@
 20
 41
 02
-15
+1b
 24
 41
 02
-19
+1f
 20
 20
 48
@@ -2167,7 +2191,7 @@
 c0
 00
 02
-21
+27
 6f
 e4
 4b
@@ -2183,7 +2207,7 @@
 20
 20
 02
-24
+2a
 6f
 e4
 4b
@@ -2219,7 +2243,7 @@
 20
 22
 82
-2b
+31
 20
 20
 44
@@ -2315,7 +2339,7 @@
 c0
 04
 82
-43
+49
 20
 20
 4d
@@ -2415,7 +2439,7 @@
 c0
 02
 02
-5c
+62
 20
 20
 19
@@ -2431,7 +2455,7 @@
 c0
 09
 02
-60
+66
 20
 20
 1c
@@ -2563,7 +2587,7 @@
 20
 40
 02
-81
+87
 20
 20
 45
@@ -2635,11 +2659,11 @@
 c0
 00
 82
-94
+9a
 20
 40
 02
-95
+9b
 20
 20
 47
@@ -2671,7 +2695,7 @@
 20
 40
 02
-b6
+bc
 67
 e1
 4c
@@ -2691,7 +2715,7 @@
 24
 5a
 02
-b2
+b8
 60
 49
 48
@@ -2727,7 +2751,7 @@
 20
 40
 02
-b6
+bc
 67
 e1
 4c
@@ -2747,7 +2771,7 @@
 24
 5a
 02
-b2
+b8
 60
 49
 48
@@ -2787,11 +2811,11 @@
 20
 3a
 02
-b9
+bf
 20
 20
 02
-be
+c4
 6f
 e0
 cc
@@ -2799,7 +2823,7 @@
 20
 40
 02
-c8
+ce
 67
 e0
 cc
@@ -2823,7 +2847,7 @@
 20
 40
 02
-c8
+ce
 20
 5a
 7e
@@ -2831,11 +2855,11 @@
 20
 40
 02
-c4
+ca
 20
 20
 02
-bc
+c2
 20
 40
 47
@@ -2915,7 +2939,7 @@
 24
 21
 02
-e8
+ee
 6f
 e0
 c4
@@ -2923,7 +2947,7 @@
 c0
 81
 02
-e0
+e6
 68
 49
 48
@@ -3080,8 +3104,8 @@
 60
 00
 00
-2c
-40
+01
+77
 aa
 55
 40
@@ -3252,7 +3276,7 @@
 80
 aa
 55
-17
+09
 00
 0d
 49
@@ -3264,7 +3288,20 @@
 ff
 05
 04
+ff
+aa
+55
+01
+00
+14
+4c
 03
+aa
+55
+0e
+00
+16
+49
 ff
 08
 0b
@@ -4317,47 +4354,10 @@
 aa
 aa
 55
-2b
-7a
-b6
-fb
-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
+e8
+7d
+38
+61
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-1f
-e3
+11
+6f
Index: output/memmap.format
===================================================================
--- /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/output/memmap.format	(revision 621)
+++ /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/output/memmap.format	(working copy)
@@ -2212,6 +2212,7 @@
 0x4c0e mem_mouse_data_x_value
 0x4c10 mem_mouse_data_y_value
 0x4c12 mem_mouse_data_xy_value
+0x4c14 mem_config_device_24g_led_gpio_patch
 0x48d0 mem_remote_car_hard_soft_switch
 0x48d1 mem_remote_car_queue_each_size
 0x48d2 mem_remote_car_queue_length
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/output/program.lis	(revision 621)
+++ /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/output/program.lis	(working copy)
@@ -13,26 +13,26 @@
 000a c063816d beq patch18_7 ,p_mouse_app_enter_hibernate 
 000b c0648171 beq patch19_1 ,p_mouse_setgpio_hibernate 
 000c c065017c beq patch19_2 ,p_mouse_lpm_before_common 
-000d c06602cf beq patch19_4 ,p_mouse_adc_read_start 
-000e c0670273 beq patch19_6 ,p_mouse_motion 
+000d c06602d5 beq patch19_4 ,p_mouse_adc_read_start 
+000e c0670279 beq patch19_6 ,p_mouse_motion 
 000f c06801b9 beq patch1a_0 ,p_mouse_seting_dpi 
 0010 c06981ca beq patch1a_3 ,p_mouse_init_sunt 
 0011 c06b018d beq patch1a_6 ,p_mouse_priority_bb_event 
 0012 c06c81e3 beq patch1b_1 ,p_mouse_bb_event_timer 
-0013 c06d0230 beq patch1b_2 ,p_mouse_start_discovery 
-0014 c074023b beq patch1d_0 ,p_hid_rx_process 
+0013 c06d0236 beq patch1b_2 ,p_mouse_start_discovery 
+0014 c0740241 beq patch1d_0 ,p_hid_rx_process 
 0015 2020137c branch loop 
 
 pf_patch_ext:
 0016 c0198051 beq patch26_3 ,p_adc_init_data 
 0017 c01a0056 beq patch26_4 ,p_enable_adc 
-0018 c0438237 beq patch30_7 ,p_ui_timer_check 
-0019 c050824f beq patch34_1 ,p_le_slave_match 
+0018 c043823d beq patch30_7 ,p_ui_timer_check 
+0019 c0508255 beq patch34_1 ,p_le_slave_match 
 001a c054808a beq patch35_1 ,p_le_enable 
 001b c0710109 beq patch3c_2 ,p_g24_pair_dispatch 
 001c c0748110 beq patch3d_1 ,p_g24_reconn_dispatch 
 001d c075012a beq patch3d_2 ,p_g24_transmit_no_interrupt 
-001e c0760270 beq patch3d_4 ,p_g24_lpm_wait 
+001e c0760276 beq patch3d_4 ,p_g24_lpm_wait 
 001f 2020137c branch loop 
 
 p_soft_reset:
@@ -561,7 +561,7 @@
 01c4 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
 01c5 247a0000 nrtn blank 
 01c6 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-01c7 203a0206 branch p_mouse_dpi_led_blink_init ,blank 
+01c7 203a020c branch p_mouse_dpi_led_blink_init ,blank 
 01c8 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
 01c9 20600000 rtn 
 
@@ -603,14 +603,14 @@
 p_mouse_bb_event_timer:
 01e3 204001ee call p_mouse_device_poweron_timer 
 01e4 20403e9b call mouse_adc_read 
-01e5 204002ea call p_mouse_low_voltage_led_timer 
+01e5 204002f0 call p_mouse_low_voltage_led_timer 
 01e6 2040232b call g24_pair_timeout_timer 
 01e7 20402556 call g24_reconn_timeout_timer 
 01e8 204047cd call mouse_24g_long_sleep_param_update_timer 
-01e9 20400203 call p_mouse_dpi_led_blink_delay_timer 
+01e9 20400209 call p_mouse_dpi_led_blink_delay_timer 
 01ea 2040407c call mouse_dpi_key_check_long_press 
 01eb 204044cc call mouse_bt_discovery_check 
-01ec 2040021b call p_mouse_commbination_key_process 
+01ec 20400221 call p_mouse_commbination_key_process 
 01ed 202044c0 branch mouse_bb_event_timer + 11 
 
 p_mouse_device_poweron_timer:
@@ -620,343 +620,351 @@
 01f1 207a0000 rtn blank 
 01f2 1fe0ffff increase -1 ,pdata 
 01f3 67e0cba7 store 1 ,mem_mouse_device_poweron_timer_count 
-01f4 203a01f7 branch p_mouse_device_led_off ,blank 
+01f4 203a01fb branch p_mouse_device_led_off ,blank 
 
 p_mouse_device_led_on:
-01f5 204001f9 call p_mouse_led_config_ouput 
-01f6 20204920 branch mouse_device_led_on 
+01f5 6fe0cc14 fetch 1 ,mem_config_device_24g_led_gpio_patch 
+01f6 c081c920 bne ice_reuse_gpio ,mouse_device_led_on 
+01f7 6848cc14 fetcht 1 ,mem_config_device_24g_led_gpio_patch 
+01f8 20406069 call gpio_config_output 
+01f9 6848cc14 fetcht 1 ,mem_config_device_24g_led_gpio_patch 
+01fa 20206069 branch gpio_out_active 
 
 p_mouse_device_led_off:
-01f7 204001f9 call p_mouse_led_config_ouput 
-01f8 20204912 branch mouse_device_led_off 
+01fb 6fe0cc14 fetch 1 ,mem_config_device_24g_led_gpio_patch 
+01fc c081c912 bne ice_reuse_gpio ,mouse_device_led_off 
+
+p_mouse_reuse_ice_gpio_config_input:
+01fd 6848cc14 fetcht 1 ,mem_config_device_24g_led_gpio_patch 
+01fe 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_led_config_ouput:
-01f9 6848c921 fetcht 1 ,mem_config_low_voltage_alarm_gpio 
-01fa 20406069 call gpio_config_output 
-01fb 6848c915 fetcht 1 ,mem_config_device_24g_led_gpio 
-01fc 20406069 call gpio_config_output 
-01fd 6848c916 fetcht 1 ,mem_config_device_bt1_led_gpio 
-01fe 20406069 call gpio_config_output 
-01ff 6848c922 fetcht 1 ,mem_config_device_bt2_led_gpio 
+01ff 6848c921 fetcht 1 ,mem_config_low_voltage_alarm_gpio 
 0200 20406069 call gpio_config_output 
-0201 6848c923 fetcht 1 ,mem_dpi_led_gpio 
-0202 20206069 branch gpio_config_output 
+0201 6848c915 fetcht 1 ,mem_config_device_24g_led_gpio 
+0202 20406069 call gpio_config_output 
+0203 6848c916 fetcht 1 ,mem_config_device_bt1_led_gpio 
+0204 20406069 call gpio_config_output 
+0205 6848c922 fetcht 1 ,mem_config_device_bt2_led_gpio 
+0206 20406069 call gpio_config_output 
+0207 6848c923 fetcht 1 ,mem_dpi_led_gpio 
+0208 20206069 branch gpio_config_output 
 
 p_mouse_dpi_led_blink_delay_timer:
-0203 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-0204 da400206 arg p_mouse_dpi_led_blink_init ,regb 
-0205 2020318a branch timer_single_step 
+0209 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+020a da40020c arg p_mouse_dpi_led_blink_init ,regb 
+020b 2020318a branch timer_single_step 
 
 p_mouse_dpi_led_blink_init:
-0206 6fe0c927 fetch 1 ,mem_config_sensor_type 
-0207 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-0208 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-0209 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-020a 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-020b 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-020c 67e14930 store 2 ,mem_mouse_on_time 
-020d 67e14932 store 2 ,mem_mouse_off_time 
-020e da200000 arg 0 ,rega 
-020f 6848c992 fetcht 1 ,mem_mouse_dpi 
-0210 18408402 increase 2 ,temp 
-0211 18467c03 sub temp ,3 ,null 
-0212 20410215 call p_mouse_dpi_led_blink_init_level_4 ,positive 
-0213 24410219 ncall p_mouse_dpi_led_blink_count_clean ,positive 
-0214 202048ff branch mouse_dpi_led_blink_init_end 
+020c 6fe0c927 fetch 1 ,mem_config_sensor_type 
+020d c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
+020e c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
+020f 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+0210 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
+0211 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
+0212 67e14930 store 2 ,mem_mouse_on_time 
+0213 67e14932 store 2 ,mem_mouse_off_time 
+0214 da200000 arg 0 ,rega 
+0215 6848c992 fetcht 1 ,mem_mouse_dpi 
+0216 18408402 increase 2 ,temp 
+0217 18467c03 sub temp ,3 ,null 
+0218 2041021b call p_mouse_dpi_led_blink_init_level_4 ,positive 
+0219 2441021f ncall p_mouse_dpi_led_blink_count_clean ,positive 
+021a 202048ff branch mouse_dpi_led_blink_init_end 
 
 p_mouse_dpi_led_blink_init_level_4:
-0215 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0216 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-0217 18408401 increase 1 ,temp 
-0218 20600000 rtn 
+021b 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+021c c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+021d 18408401 increase 1 ,temp 
+021e 20600000 rtn 
 
 p_mouse_dpi_led_blink_count_clean:
-0219 184085fd increase -3 ,temp 
-021a 20600000 rtn 
+021f 184085fd increase -3 ,temp 
+0220 20600000 rtn 
 
 p_mouse_commbination_key_process:
-021b 6fe0c938 fetch 1 ,mem_device_flag 
-021c c0000221 beq mode_24g_device ,p_mouse_24g_commbination_key_process 
-021d 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-021e c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
-021f 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
-0220 20200224 branch p_mouse_commbination_key_start 
+0221 6fe0c938 fetch 1 ,mem_device_flag 
+0222 c0000227 beq mode_24g_device ,p_mouse_24g_commbination_key_process 
+0223 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0224 c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
+0225 6848cbca fetcht 1 ,mem_mouse_commbination_key_bt 
+0226 2020022a branch p_mouse_commbination_key_start 
 
 p_mouse_24g_commbination_key_process:
-0221 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0222 c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
-0223 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
+0227 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0228 c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
+0229 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
 
 p_mouse_commbination_key_start:
-0224 6048cb9d storet 1 ,mem_mouse_commbination_key 
-0225 20404115 call mouse_check_key_gpio 
-0226 1fe17e07 and pdata ,0x07 ,pdata 
-0227 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
-0228 98467c00 isub temp ,null 
-0229 2022822b branch p_mouse_commbination_key_down ,zero 
-022a 202044eb branch mouse_commbination_key_up 
+022a 6048cb9d storet 1 ,mem_mouse_commbination_key 
+022b 20404115 call mouse_check_key_gpio 
+022c 1fe17e07 and pdata ,0x07 ,pdata 
+022d 6848cb9d fetcht 1 ,mem_mouse_commbination_key 
+022e 98467c00 isub temp ,null 
+022f 20228231 branch p_mouse_commbination_key_down ,zero 
+0230 202044eb branch mouse_commbination_key_up 
 
 p_mouse_commbination_key_down:
-022b 204044f6 call mouse_combination_ui_timer 
-022c 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
-022d c1008000 rtneq commbination_key_state_down 
-022e 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
-022f 20600000 rtn 
+0231 204044f6 call mouse_combination_ui_timer 
+0232 6fe0cb9f fetch 1 ,mem_commbination_key_statue 
+0233 c1008000 rtneq commbination_key_state_down 
+0234 704b9f01 jam commbination_key_state_down ,mem_commbination_key_statue 
+0235 20600000 rtn 
 
 p_mouse_start_discovery:
-0230 6fe1478c fetch 2 ,mem_ui_state_map 
-0231 2feffe0b isolate1 ui_state_ble_adv ,pdata 
-0232 2040c581 call mouse_stop_le_adv ,true 
-0233 6fe1478c fetch 2 ,mem_ui_state_map 
-0234 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
-0235 2040c322 call mouse_cancel_reconnect ,true 
-0236 20204554 branch mouse_start_discovery + 1 
+0236 6fe1478c fetch 2 ,mem_ui_state_map 
+0237 2feffe0b isolate1 ui_state_ble_adv ,pdata 
+0238 2040c581 call mouse_stop_le_adv ,true 
+0239 6fe1478c fetch 2 ,mem_ui_state_map 
+023a 2feffe07 isolate1 ui_state_bt_reconnect ,pdata 
+023b 2040c322 call mouse_cancel_reconnect ,true 
+023c 20204554 branch mouse_start_discovery + 1 
 
 p_ui_timer_check:
-0237 6fe0cbe2 fetch 1 ,mem_power_on_flag 
-0238 245a7861 ncall ui_timer_init ,blank 
-0239 704be200 jam 0 ,mem_power_on_flag 
-023a 20207851 branch ui_timer_check + 1 
+023d 6fe0cbe2 fetch 1 ,mem_power_on_flag 
+023e 245a7861 ncall ui_timer_init ,blank 
+023f 704be200 jam 0 ,mem_power_on_flag 
+0240 20207851 branch ui_timer_check + 1 
 
 p_hid_rx_process:
-023b 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
-023c 1fe20c00 copy pdata ,contr 
-023d efe08006 ifetch 1 ,contr 
-023e 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
-023f 1fe1040f and pdata ,0x0f ,temp 
-0240 1ff1fe00 rshift4 pdata ,pdata 
-0241 c0048243 beq hid_type_set_idle ,p_hid_rx_process_handshake 
-0242 20204d93 branch hid_rx_process + 7 
+0241 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+0242 1fe20c00 copy pdata ,contr 
+0243 efe08006 ifetch 1 ,contr 
+0244 67e0c5f5 store 1 ,mem_l2cap_rcv_hidtype 
+0245 1fe1040f and pdata ,0x0f ,temp 
+0246 1ff1fe00 rshift4 pdata ,pdata 
+0247 c0048249 beq hid_type_set_idle ,p_hid_rx_process_handshake 
+0248 20204d93 branch hid_rx_process + 7 
 
 p_hid_rx_process_handshake:
-0243 da200001 arg 1 ,rega 
-0244 20404dc0 call hid_malloc_tx_buff 
-0245 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
-0246 e7e10005 istore 2 ,contw 
-0247 58000000 setarg 0 
-0248 e7e08005 istore 1 ,contw 
-0249 70095001 jam 1 ,mem_ui_data_txbuff_length 
-024a 6fe0c4e2 fetch 1 ,mem_hid_control_state 
-024b 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
-024c 67e0c4e2 store 1 ,mem_hid_control_state 
-024d 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
-024e 20207871 branch ui_ipc_send_event 
+0249 da200001 arg 1 ,rega 
+024a 20404dc0 call hid_malloc_tx_buff 
+024b 6fe144dc fetch 2 ,mem_hid_ctrl_remote_cid 
+024c e7e10005 istore 2 ,contw 
+024d 58000000 setarg 0 
+024e e7e08005 istore 1 ,contw 
+024f 70095001 jam 1 ,mem_ui_data_txbuff_length 
+0250 6fe0c4e2 fetch 1 ,mem_hid_control_state 
+0251 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
+0252 67e0c4e2 store 1 ,mem_hid_control_state 
+0253 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
+0254 20207871 branch ui_ipc_send_event 
 
 p_le_slave_match:
-024f 6fe0c3dd fetch 1 ,mem_le_md_count 
-0250 1fe0fe01 pincrease 1 
-0251 67e0c3dd store 1 ,mem_le_md_count 
-0252 c006165a beq le_md_max_count ,le_slave_cont 
-0253 2040191b call le_acknowledge 
-0254 2040196a call le_prepare_tx 
-0255 6fe082bd fetch 1 ,mem_le_tx_phy 
-0256 2040168b call le_enable_phy_by_pdata 
-0257 20401838 call le_transmit 
-0258 20201655 branch le_slave_match + 10 
+0255 6fe0c3dd fetch 1 ,mem_le_md_count 
+0256 1fe0fe01 pincrease 1 
+0257 67e0c3dd store 1 ,mem_le_md_count 
+0258 c006165a beq le_md_max_count ,le_slave_cont 
+0259 2040191b call le_acknowledge 
+025a 2040196a call le_prepare_tx 
+025b 6fe082bd fetch 1 ,mem_le_tx_phy 
+025c 2040168b call le_enable_phy_by_pdata 
+025d 20401838 call le_transmit 
+025e 20201655 branch le_slave_match + 10 
 
 p_le_parse_l2cap:
-0259 efe10006 ifetch 2 ,contr 
-025a c002025c beq le_l2cap_cid_att ,p_le_parse_att 
-025b 202019e4 branch le_parse_l2cap + 10 
+025f efe10006 ifetch 2 ,contr 
+0260 c0020262 beq le_l2cap_cid_att ,p_le_parse_att 
+0261 202019e4 branch le_parse_l2cap + 10 
 
 p_le_parse_att:
-025c efe18006 ifetch 3 ,contr 
-025d 67e1c436 store 3 ,mem_le_att_opcode 
-025e c0090260 beq attop_write_request ,p_le_parse_att_write_request 
-025f 20201cd3 branch le_parse_att + 2 
+0262 efe18006 ifetch 3 ,contr 
+0263 67e1c436 store 3 ,mem_le_att_opcode 
+0264 c0090266 beq attop_write_request ,p_le_parse_att_write_request 
+0265 20201cd3 branch le_parse_att + 2 
 
 p_le_parse_att_write_request:
-0260 18c22200 copy contr ,rega 
-0261 6fe143d4 fetch 2 ,mem_le_l2cap_size 
-0262 1fe0a5fd add pdata ,-3 ,regb 
-0263 20401a25 call le_writeatt_cb 
-0264 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
-0265 c07f9e73 beq 0xff ,le_send_att_write_response_check_auth 
-0266 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
-0267 203a1e73 branch le_send_att_write_response_check_auth ,blank 
-0268 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
-0269 c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
-026a 5800001a setarg 0x001a 
-026b 68494437 fetcht 2 ,mem_le_att_handle 
-026c 98467c00 isub temp ,null 
-026d 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
-026e 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
-026f 20201ec9 branch le_send_att_error_response 
+0266 18c22200 copy contr ,rega 
+0267 6fe143d4 fetch 2 ,mem_le_l2cap_size 
+0268 1fe0a5fd add pdata ,-3 ,regb 
+0269 20401a25 call le_writeatt_cb 
+026a 6fe0cac1 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+026b c07f9e73 beq 0xff ,le_send_att_write_response_check_auth 
+026c 6fe0cac7 fetch 1 ,mem_mouse_le_reconnect_flag 
+026d 203a1e73 branch le_send_att_write_response_check_auth ,blank 
+026e 6fe0cb75 fetch 1 ,mem_le_connect_status_flag 
+026f c2809e73 bbit1 ll_start_enc_flag ,le_send_att_write_response_check_auth 
+0270 5800001a setarg 0x001a 
+0271 68494437 fetcht 2 ,mem_le_att_handle 
+0272 98467c00 isub temp ,null 
+0273 24229e73 nbranch le_send_att_write_response_check_auth ,zero 
+0274 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
+0275 20201ec9 branch le_send_att_error_response 
 
 p_g24_lpm_wait:
-0270 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
-0271 245a26e1 ncall g24_transmit_by_interrupt_enable ,blank 
-0272 202026bc branch g24_lpm_wait + 1 
+0276 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
+0277 245a26e1 ncall g24_transmit_by_interrupt_enable ,blank 
+0278 202026bc branch g24_lpm_wait + 1 
 
 p_mouse_motion:
-0273 78547c00 disable user 
-0274 58000000 setarg 0 
-0275 67e348d1 store 6 ,mem_mouse_x 
-0276 20404240 call mouse_check_sensor_data 
-0277 2040408e call mouse_dpi_config 
-0278 20403f7e call mouse_zwheel 
-0279 20403f83 call mouse_t_zwheel 
-027a 204040dc call mouse_key 
-027b 6fe0c8d0 fetch 1 ,mem_mouse_key 
-027c 1fe17e1f and_into 0x1f ,pdata 
-027d 67e0c8d0 store 1 ,mem_mouse_key 
-027e 24344728 nbranch mouse_drawing_optima_init ,user 
-027f 20400281 call p_mouse_drawing_optima 
-0280 20204544 branch mouse_no_data_timer_init 
+0279 78547c00 disable user 
+027a 58000000 setarg 0 
+027b 67e348d1 store 6 ,mem_mouse_x 
+027c 20404240 call mouse_check_sensor_data 
+027d 2040408e call mouse_dpi_config 
+027e 20403f7e call mouse_zwheel 
+027f 20403f83 call mouse_t_zwheel 
+0280 204040dc call mouse_key 
+0281 6fe0c8d0 fetch 1 ,mem_mouse_key 
+0282 1fe17e1f and_into 0x1f ,pdata 
+0283 67e0c8d0 store 1 ,mem_mouse_key 
+0284 24344728 nbranch mouse_drawing_optima_init ,user 
+0285 20400287 call p_mouse_drawing_optima 
+0286 20204544 branch mouse_no_data_timer_init 
 
 p_mouse_drawing_optima:
-0281 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0282 c41c0000 rtnbit0 mouse_enable_smoother 
-0283 6fe0c927 fetch 1 ,mem_config_sensor_type 
-0284 c1018000 rtneq p3212 
-0285 c1000000 rtneq p3205 
-0286 6fe248d1 fetch 4 ,mem_mouse_x 
-0287 207a0000 rtn blank 
-0288 204047bd call mouse_data_abs_check 
-0289 58000003 setarg 0x03 
-028a 204047b3 call mouse_pdata_greater_than_check 
-028b 205a47af call mouse_disable_asm ,blank 
-028c 245a47b1 ncall mouse_enable_asm ,blank 
-028d 58000002 setarg 0x02 
-028e 204047b8 call mouse_data_less_than_check 
-028f 205a47af call mouse_disable_asm ,blank 
-0290 6fe0c9c9 fetch 1 ,mem_mouse_asm_flag 
-0291 c0008294 beq 1 ,p_mouse_drawing_optima_modify 
-0292 20400295 call p_mouse_drawing_optima_modify + 1 
-0293 20204728 branch mouse_drawing_optima_init 
+0287 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0288 c41c0000 rtnbit0 mouse_enable_smoother 
+0289 6fe0c927 fetch 1 ,mem_config_sensor_type 
+028a c1018000 rtneq p3212 
+028b c1000000 rtneq p3205 
+028c 6fe248d1 fetch 4 ,mem_mouse_x 
+028d 207a0000 rtn blank 
+028e 204047bd call mouse_data_abs_check 
+028f 58000003 setarg 0x03 
+0290 204047b3 call mouse_pdata_greater_than_check 
+0291 205a47af call mouse_disable_asm ,blank 
+0292 245a47b1 ncall mouse_enable_asm ,blank 
+0293 58000002 setarg 0x02 
+0294 204047b8 call mouse_data_less_than_check 
+0295 205a47af call mouse_disable_asm ,blank 
+0296 6fe0c9c9 fetch 1 ,mem_mouse_asm_flag 
+0297 c000829a beq 1 ,p_mouse_drawing_optima_modify 
+0298 2040029b call p_mouse_drawing_optima_modify + 1 
+0299 20204728 branch mouse_drawing_optima_init 
 
 p_mouse_drawing_optima_modify:
-0294 2040472d call mouse_drawing_optima_modify 
-0295 6fe148d1 fetch 2 ,mem_mouse_x 
-0296 68494c0e fetcht 2 ,mem_mouse_data_x_value 
-0297 98408400 iadd temp ,temp 
-0298 60494c0e storet 2 ,mem_mouse_data_x_value 
-0299 60494c12 storet 2 ,mem_mouse_data_xy_value 
-029a 204002b6 call p_mouse_xy_data_judge 
-029b 67e14c12 store 2 ,mem_mouse_data_xy_value 
+029a 2040472d call mouse_drawing_optima_modify 
+029b 6fe148d1 fetch 2 ,mem_mouse_x 
 029c 68494c0e fetcht 2 ,mem_mouse_data_x_value 
-029d 98467e00 isub temp ,pdata 
-029e 684948d1 fetcht 2 ,mem_mouse_x 
-029f 245a02b2 ncall p_mouse_xy_data_judge_compensate ,blank 
-02a0 604948d1 storet 2 ,mem_mouse_x 
-02a1 6fe14c12 fetch 2 ,mem_mouse_data_xy_value 
-02a2 67e14c0e store 2 ,mem_mouse_data_x_value 
-02a3 6fe148d3 fetch 2 ,mem_mouse_y 
-02a4 68494c10 fetcht 2 ,mem_mouse_data_y_value 
-02a5 98408400 iadd temp ,temp 
-02a6 60494c10 storet 2 ,mem_mouse_data_y_value 
-02a7 60494c12 storet 2 ,mem_mouse_data_xy_value 
-02a8 204002b6 call p_mouse_xy_data_judge 
-02a9 67e14c12 store 2 ,mem_mouse_data_xy_value 
+029d 98408400 iadd temp ,temp 
+029e 60494c0e storet 2 ,mem_mouse_data_x_value 
+029f 60494c12 storet 2 ,mem_mouse_data_xy_value 
+02a0 204002bc call p_mouse_xy_data_judge 
+02a1 67e14c12 store 2 ,mem_mouse_data_xy_value 
+02a2 68494c0e fetcht 2 ,mem_mouse_data_x_value 
+02a3 98467e00 isub temp ,pdata 
+02a4 684948d1 fetcht 2 ,mem_mouse_x 
+02a5 245a02b8 ncall p_mouse_xy_data_judge_compensate ,blank 
+02a6 604948d1 storet 2 ,mem_mouse_x 
+02a7 6fe14c12 fetch 2 ,mem_mouse_data_xy_value 
+02a8 67e14c0e store 2 ,mem_mouse_data_x_value 
+02a9 6fe148d3 fetch 2 ,mem_mouse_y 
 02aa 68494c10 fetcht 2 ,mem_mouse_data_y_value 
-02ab 98467e00 isub temp ,pdata 
-02ac 684948d3 fetcht 2 ,mem_mouse_y 
-02ad 245a02b2 ncall p_mouse_xy_data_judge_compensate ,blank 
-02ae 604948d3 storet 2 ,mem_mouse_y 
-02af 6fe14c12 fetch 2 ,mem_mouse_data_xy_value 
-02b0 67e14c10 store 2 ,mem_mouse_data_y_value 
-02b1 20600000 rtn 
+02ab 98408400 iadd temp ,temp 
+02ac 60494c10 storet 2 ,mem_mouse_data_y_value 
+02ad 60494c12 storet 2 ,mem_mouse_data_xy_value 
+02ae 204002bc call p_mouse_xy_data_judge 
+02af 67e14c12 store 2 ,mem_mouse_data_xy_value 
+02b0 68494c10 fetcht 2 ,mem_mouse_data_y_value 
+02b1 98467e00 isub temp ,pdata 
+02b2 684948d3 fetcht 2 ,mem_mouse_y 
+02b3 245a02b8 ncall p_mouse_xy_data_judge_compensate ,blank 
+02b4 604948d3 storet 2 ,mem_mouse_y 
+02b5 6fe14c12 fetch 2 ,mem_mouse_data_xy_value 
+02b6 67e14c10 store 2 ,mem_mouse_data_y_value 
+02b7 20600000 rtn 
 
 p_mouse_xy_data_judge_compensate:
-02b2 98408400 iadd temp ,temp 
-02b3 58000000 setarg 0x00 
-02b4 67e14c12 store 2 ,mem_mouse_data_xy_value 
-02b5 20600000 rtn 
+02b8 98408400 iadd temp ,temp 
+02b9 58000000 setarg 0x00 
+02ba 67e14c12 store 2 ,mem_mouse_data_xy_value 
+02bb 20600000 rtn 
 
 p_mouse_xy_data_judge:
-02b6 6fe0cc13 fetch 1 ,mem_mouse_data_xy_value + 1 
-02b7 203a02b9 branch p_mouse_current_xy_pdata_offset ,blank 
-02b8 202002be branch p_mouse_current_xy_ndata_offset 
+02bc 6fe0cc13 fetch 1 ,mem_mouse_data_xy_value + 1 
+02bd 203a02bf branch p_mouse_current_xy_pdata_offset ,blank 
+02be 202002c4 branch p_mouse_current_xy_ndata_offset 
 
 p_mouse_current_xy_pdata_offset:
-02b9 6fe0cc12 fetch 1 ,mem_mouse_data_xy_value 
-02ba 204002c8 call p_mouse_current_xy_get_1_25_times 
-02bb 67e0cc12 store 1 ,mem_mouse_data_xy_value 
+02bf 6fe0cc12 fetch 1 ,mem_mouse_data_xy_value 
+02c0 204002ce call p_mouse_current_xy_get_1_25_times 
+02c1 67e0cc12 store 1 ,mem_mouse_data_xy_value 
 
 p_mouse_xy_data_offset_new:
-02bc 6fe14c12 fetch 2 ,mem_mouse_data_xy_value 
-02bd 20600000 rtn 
+02c2 6fe14c12 fetch 2 ,mem_mouse_data_xy_value 
+02c3 20600000 rtn 
 
 p_mouse_current_xy_ndata_offset:
-02be 6fe0cc12 fetch 1 ,mem_mouse_data_xy_value 
-02bf 204047ab call mouse_pdata_invert 
-02c0 204002c8 call p_mouse_current_xy_get_1_25_times 
-02c1 205a7e5e call disable_blank ,blank 
-02c2 204002c4 call p_mouse_pdata_get_new_value 
-02c3 202002bc branch p_mouse_xy_data_offset_new 
+02c4 6fe0cc12 fetch 1 ,mem_mouse_data_xy_value 
+02c5 204047ab call mouse_pdata_invert 
+02c6 204002ce call p_mouse_current_xy_get_1_25_times 
+02c7 205a7e5e call disable_blank ,blank 
+02c8 204002ca call p_mouse_pdata_get_new_value 
+02c9 202002c2 branch p_mouse_xy_data_offset_new 
 
 p_mouse_pdata_get_new_value:
-02c4 204047ac call mouse_rega_in_out 
-02c5 1fe67e00 sub pdata ,0 ,pdata 
-02c6 67e0cc12 store 1 ,mem_mouse_data_xy_value 
-02c7 20600000 rtn 
+02ca 204047ac call mouse_rega_in_out 
+02cb 1fe67e00 sub pdata ,0 ,pdata 
+02cc 67e0cc12 store 1 ,mem_mouse_data_xy_value 
+02cd 20600000 rtn 
 
 p_mouse_current_xy_get_1_25_times:
-02c8 1fe67c03 sub pdata ,3 ,null 
-02c9 20610000 rtn positive 
-02ca 1feffe05 mul32 pdata ,5 ,pdata 
-02cb 1fe6fc04 div pdata ,4 
-02cc 20407def call wait_div_end 
-02cd 1807fe00 quotient pdata 
-02ce 20600000 rtn 
+02ce 1fe67c03 sub pdata ,3 ,null 
+02cf 20610000 rtn positive 
+02d0 1feffe05 mul32 pdata ,5 ,pdata 
+02d1 1fe6fc04 div pdata ,4 
+02d2 20407def call wait_div_end 
+02d3 1807fe00 quotient pdata 
+02d4 20600000 rtn 
 
 p_mouse_adc_read_start:
-02cf 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
-02d0 247a0000 nrtn blank 
-02d1 20400056 call p_enable_adc 
-02d2 7048f600 jam 0 ,mem_adc_read_timer 
-02d3 20406125 call vdd_calculate_by_mode 
-02d4 67e148e9 store 2 ,mem_mouse_vdd_now_vol 
-02d5 d8400012 arg 0x0012 ,temp 
-02d6 98467c00 isub temp ,null 
-02d7 242102e8 nbranch p_mouse_adc_gpio_connect_gnd ,positive 
-02d8 6fe0c4a0 fetch 1 ,mem_adc_config_flag 
-02d9 c08102e0 bne adc_config_gpio ,p_mouse_adc_data_process 
-02da 684948e9 fetcht 2 ,mem_mouse_vdd_now_vol 
-02db 184ffe08 mul32 temp ,8 ,pdata 
-02dc 1fe6fc0a div pdata ,10 
-02dd 20407dec call get_div_result 
-02de 9840fe00 iadd temp ,pdata 
-02df 67e148e9 store 2 ,mem_mouse_vdd_now_vol 
+02d5 6fe0cbaa fetch 1 ,mem_24g_device_led_status 
+02d6 247a0000 nrtn blank 
+02d7 20400056 call p_enable_adc 
+02d8 7048f600 jam 0 ,mem_adc_read_timer 
+02d9 20406125 call vdd_calculate_by_mode 
+02da 67e148e9 store 2 ,mem_mouse_vdd_now_vol 
+02db d8400012 arg 0x0012 ,temp 
+02dc 98467c00 isub temp ,null 
+02dd 242102ee nbranch p_mouse_adc_gpio_connect_gnd ,positive 
+02de 6fe0c4a0 fetch 1 ,mem_adc_config_flag 
+02df c08102e6 bne adc_config_gpio ,p_mouse_adc_data_process 
+02e0 684948e9 fetcht 2 ,mem_mouse_vdd_now_vol 
+02e1 184ffe08 mul32 temp ,8 ,pdata 
+02e2 1fe6fc0a div pdata ,10 
+02e3 20407dec call get_div_result 
+02e4 9840fe00 iadd temp ,pdata 
+02e5 67e148e9 store 2 ,mem_mouse_vdd_now_vol 
 
 p_mouse_adc_data_process:
-02e0 da2048e3 arg mem_mouse_vdd_calculate_set ,rega 
-02e1 20403ed8 call mouse_adc_bat_percent_lowpower_out 
-02e2 6fe0c4a4 fetch 1 ,mem_adc_power_flag 
-02e3 c2813f1a bbit1 2 ,mouse_adc_button_press 
-02e4 c280bf1c bbit1 1 ,mouse_power_down 
-02e5 c3003ed0 bbit0 0 ,mouse_adc_no_low_voltage 
-02e6 7048fa01 jam 1 ,mem_mouse_adc_last_low_voltage_flag 
-02e7 20203ece branch mouse_adc_low_voltage 
+02e6 da2048e3 arg mem_mouse_vdd_calculate_set ,rega 
+02e7 20403ed8 call mouse_adc_bat_percent_lowpower_out 
+02e8 6fe0c4a4 fetch 1 ,mem_adc_power_flag 
+02e9 c2813f1a bbit1 2 ,mouse_adc_button_press 
+02ea c280bf1c bbit1 1 ,mouse_power_down 
+02eb c3003ed0 bbit0 0 ,mouse_adc_no_low_voltage 
+02ec 7048fa01 jam 1 ,mem_mouse_adc_last_low_voltage_flag 
+02ed 20203ece branch mouse_adc_low_voltage 
 
 p_mouse_adc_gpio_connect_gnd:
-02e8 6848c8fc fetcht 1 ,mem_adc_channel_gpio 
-02e9 20403f54 call mouse_gpio_config_input_pd 
+02ee 6848c8fc fetcht 1 ,mem_adc_channel_gpio 
+02ef 20403f54 call mouse_gpio_config_input_pd 
 
 p_mouse_low_voltage_led_timer:
-02ea 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-02eb 247a0000 nrtn blank 
-02ec 6fe14883 fetch 2 ,mem_24g_pair_timeout 
-02ed 247a0000 nrtn blank 
-02ee 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
-02ef 247a0000 nrtn blank 
-02f0 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+02f0 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
 02f1 247a0000 nrtn blank 
-02f2 20404904 call mouse_check_dpi_blink 
-02f3 20740000 rtn user 
-02f4 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-02f5 c4108000 rtnbit0 mouse_enable_low_voltage_led 
-02f6 c4020000 rtnbit0 mouse_low_voltage_flag 
-02f7 c291c97c bbit1 mouse_enable_low_voltage_led_blink_n_second ,mouse_low_voltage_led_blink_new_data 
-02f8 6fe0c8f8 fetch 1 ,mem_adc_low_volatage_led_timer_count 
-02f9 1fe0fe01 increase 1 ,pdata 
-02fa 67e0c8f8 store 1 ,mem_adc_low_volatage_led_timer_count 
-02fb 1fe67c08 sub pdata ,8 ,null 
-02fc 2441496e ncall mouse_adc_low_volatage_led_timer_count_clean ,positive 
-02fd c001c970 beq 3 ,mouse_low_voltage_led_on 
-02fe c002c976 beq 5 ,mouse_low_voltage_led_off 
-02ff c003c970 beq 7 ,mouse_low_voltage_led_on 
-0300 20600000 rtn 
+02f2 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+02f3 247a0000 nrtn blank 
+02f4 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+02f5 247a0000 nrtn blank 
+02f6 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+02f7 247a0000 nrtn blank 
+02f8 20404904 call mouse_check_dpi_blink 
+02f9 20740000 rtn user 
+02fa 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+02fb c4108000 rtnbit0 mouse_enable_low_voltage_led 
+02fc c4020000 rtnbit0 mouse_low_voltage_flag 
+02fd c291c97c bbit1 mouse_enable_low_voltage_led_blink_n_second ,mouse_low_voltage_led_blink_new_data 
+02fe 6fe0c8f8 fetch 1 ,mem_adc_low_volatage_led_timer_count 
+02ff 1fe0fe01 increase 1 ,pdata 
+0300 67e0c8f8 store 1 ,mem_adc_low_volatage_led_timer_count 
+0301 1fe67c08 sub pdata ,8 ,null 
+0302 2441496e ncall mouse_adc_low_volatage_led_timer_count_clean ,positive 
+0303 c001c970 beq 3 ,mouse_low_voltage_led_on 
+0304 c002c976 beq 5 ,mouse_low_voltage_led_off 
+0305 c003c970 beq 7 ,mouse_low_voltage_led_on 
+0306 20600000 rtn 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/program/patch.prog	(revision 621)
+++ /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/program/patch.prog	(working copy)
@@ -702,12 +702,19 @@
 	store 1,mem_mouse_device_poweron_timer_count
 	branch p_mouse_device_led_off,blank
 p_mouse_device_led_on:
-	call p_mouse_led_config_ouput
-	branch mouse_device_led_on
+	fetch 1,mem_config_device_24g_led_gpio_patch
+	bne ICE_REUSE_GPIO,mouse_device_led_on
+	fetcht 1,mem_config_device_24g_led_gpio_patch
+	call gpio_config_output
+	fetcht 1,mem_config_device_24g_led_gpio_patch
+	branch gpio_out_active
 
 p_mouse_device_led_off:
-	call p_mouse_led_config_ouput
-	branch mouse_device_led_off
+	fetch 1,mem_config_device_24g_led_gpio_patch
+	bne ICE_REUSE_GPIO,mouse_device_led_off
+p_mouse_reuse_ice_gpio_config_input:	//ice gpio config led
+	fetcht 1,mem_config_device_24g_led_gpio_patch
+	branch mouse_gpio_config_input_pu
 
 p_mouse_led_config_ouput:
 	fetcht 1,mem_config_low_voltage_alarm_gpio
Index: sched/mouse.dat
===================================================================
--- /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/sched/mouse.dat	(revision 621)
+++ /YC1308AC/branch/mouse_project/FD_Project/Only24g_AutoPair_16M/sched/mouse.dat	(working copy)
@@ -113,7 +113,8 @@
 mem_customer_key_gpio:ff
 mem_whee_a_data_gpio:05
 mem_whee_b_data_gpio:04
-mem_config_device_24g_led_gpio:03
+mem_config_device_24g_led_gpio:ff
+mem_config_device_24g_led_gpio_patch:03
 mem_config_device_bt1_led_gpio:ff
 mem_select_sensor_angle_gpio:08
 
