Index: format/rom.format
===================================================================
--- /YC1308AC/branch/mouse_project/HaiQi_Project/SlideSwitch_2mode_2ch_T225/format/rom.format	(revision 4514)
+++ /YC1308AC/branch/mouse_project/HaiQi_Project/SlideSwitch_2mode_2ch_T225/format/rom.format	(working copy)
@@ -9672,38 +9672,9 @@
 1 mem_mouse_logo_led_gpio
 2 mem_mouse_logo_led_on_time_init
 
-//ota area start
-1 mem_g24_ota_config_type     //rr
-2 mem_g24_ota_storage_size   //byte
-2 mem_g24_ota_config_addr
-
-1 mem_g24_ota_rtn_state
-1 mem_g24_ota_mode
-1 mem_g24_ota_sm
-1 mem_g24_ota_prepare_send_len
-31 mem_g24_ota_txbuf
-2 mem_g24_ota_rx_alllen
-2 mem_g24_ota_rx_sum
-1 mem_g24_ota_rx_data_count
-1 mem_g24_ota_reset_timer
-//ota area end
-
 1 mem_le_name_patch_len
 19 mem_le_name_patch
 
-1 mem_fire_key_status
-4 mem_fire_key_delay
-1 mem_fire_key_flag
-1 mem_firebutton_gpio
-1 mem_mouse_firebutton_connect_vin_flag
-1 mem_mouse_another_dpi_connect_vin_flag
-
-1 mem_dpi_another_button_gpio
-1 mem_dpi_another_press_status
-1 mem_dpi_another_button_state
-1 mem_dpi_another_button_down_enable
-1 mem_mouse_key_temp_patch
-
 // 1io2led multi begin
 1 mem_mouse_led_new_interface_config
 //mediacy
@@ -9737,26 +9708,15 @@
 1 mem_mouse_dpi_gpio
 // 1io2led multi end
 
-16 mem_mouse_rssi_signal_buf_patch
-16 mem_mouse_rssi_signal_buf_temp
-
 1 mem_mouse_le_send_conn_param_update
 1 mem_mouse_le_send_conn_param_update_timer
 
-//rssi log start
-1 mem_24g_paccnt
-1 mem_rssi_mouse
-4 mem_clkn_bt_patch
-2 mem_txpower_print
-//rssi log end
-
-//tx power
-1 mem_normal_tx_power
-
 1 mem_mouse_le_pnp_len
 7 mem_mouse_le_pnp_info
 714 mem_mouse_ui_uuid_table
-40 mem_temp_test
+
+//tx power
+1 mem_normal_tx_power
 
 64 mem_le_tx_buffer0_omemalloc_new
 64 mem_le_tx_buffer1_omemalloc_new
Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/HaiQi_Project/SlideSwitch_2mode_2ch_T225/output/eeprom.dat	(revision 4514)
+++ /YC1308AC/branch/mouse_project/HaiQi_Project/SlideSwitch_2mode_2ch_T225/output/eeprom.dat	(working copy)
@@ -234,8 +234,8 @@
 00
 6f
 e0
-d0
-81
+cf
+f5
 20
 7a
 00
@@ -298,8 +298,8 @@
 43
 6f
 e0
-d0
-81
+cf
+f5
 c1
 00
 80
@@ -313,8 +313,8 @@
 14
 10
 70
-50
-81
+4f
+f5
 00
 20
 20
@@ -567,7 +567,7 @@
 6f
 e0
 cc
-41
+05
 24
 7a
 00
@@ -1151,7 +1151,7 @@
 6f
 e0
 cc
-40
+04
 c3
 00
 3f
@@ -1163,7 +1163,7 @@
 6f
 e0
 cc
-40
+04
 c3
 00
 3e
@@ -1178,7 +1178,7 @@
 f4
 70
 4c
-4f
+13
 01
 6f
 e0
@@ -1203,7 +1203,7 @@
 6f
 e0
 cc
-44
+08
 1f
 e6
 7c
@@ -1247,7 +1247,7 @@
 6f
 e0
 cc
-47
+0b
 24
 7a
 00
@@ -1271,7 +1271,7 @@
 6f
 e0
 cc
-54
+18
 20
 3a
 01
@@ -1279,7 +1279,7 @@
 68
 48
 cc
-4f
+13
 18
 40
 84
@@ -1287,11 +1287,11 @@
 60
 48
 cc
-4f
+13
 6f
 e0
 cc
-4d
+11
 98
 46
 7c
@@ -1303,7 +1303,7 @@
 6f
 e0
 cc
-4e
+12
 98
 46
 7c
@@ -1315,7 +1315,7 @@
 6f
 e0
 cc
-45
+09
 c0
 00
 83
@@ -1327,14 +1327,14 @@
 68
 48
 cc
-58
+1c
 20
 20
 04
 03
 70
 4c
-4f
+13
 01
 20
 40
@@ -1343,7 +1343,7 @@
 6f
 e0
 cc
-45
+09
 c0
 00
 84
@@ -1355,7 +1355,7 @@
 68
 48
 cc
-58
+1c
 20
 20
 04
@@ -1363,7 +1363,7 @@
 6f
 e0
 cc
-54
+18
 1f
 e0
 ff
@@ -1371,7 +1371,7 @@
 67
 e0
 cc
-54
+18
 20
 60
 00
@@ -1379,7 +1379,7 @@
 6f
 e0
 cc
-40
+04
 c2
 82
 01
@@ -1501,8 +1501,8 @@
 80
 00
 70
-50
-7f
+4f
+f3
 00
 20
 40
@@ -1582,8 +1582,8 @@
 b1
 6f
 e0
-cc
-1e
+cb
+f0
 20
 7a
 00
@@ -1594,8 +1594,8 @@
 01
 d8
 c0
-4c
-1e
+4b
+f0
 d8
 a0
 42
@@ -1607,7 +1607,7 @@
 58
 00
 4c
-8d
+28
 67
 e1
 46
@@ -1790,8 +1790,8 @@
 00
 58
 00
-4f
-7f
+4e
+f3
 67
 e1
 43
@@ -1814,8 +1814,8 @@
 e8
 67
 e0
-cc
-84
+ce
+f2
 20
 60
 00
@@ -1854,11 +1854,11 @@
 00
 6f
 e0
-d0
-80
+cf
+f4
 70
-50
-80
+4f
+f4
 00
 24
 5a
@@ -2353,8 +2353,8 @@
 00
 00
 70
-50
-7f
+4f
+f3
 01
 20
 40
@@ -2385,8 +2385,8 @@
 3f
 56
 70
-50
-81
+4f
+f5
 02
 58
 00
@@ -2467,7 +2467,7 @@
 6f
 e0
 cc
-55
+19
 d8
 40
 00
@@ -2645,8 +2645,8 @@
 02
 99
 70
-50
-80
+4f
+f4
 01
 6f
 e0
@@ -2666,8 +2666,8 @@
 b8
 6f
 e0
-d0
-81
+cf
+f5
 c1
 01
 00
@@ -2835,11 +2835,11 @@
 67
 e0
 cc
-7a
+1e
 67
 e0
 cc
-7b
+1f
 67
 e0
 ca
@@ -2879,18 +2879,18 @@
 6f
 e0
 cc
-7a
+1e
 24
 7a
 00
 00
 70
 4c
-7a
+1e
 01
 70
 4c
-7b
+1f
 1e
 20
 60
@@ -2902,8 +2902,8 @@
 c8
 6f
 e0
-cc
-84
+ce
+f2
 67
 e0
 c1
@@ -3069,12 +3069,12 @@
 48
 27
 70
-50
-81
+4f
+f5
 01
 70
-50
-7f
+4f
+f3
 00
 70
 48
@@ -3110,7 +3110,7 @@
 01
 70
 4c
-41
+05
 00
 20
 20
@@ -3495,7 +3495,7 @@
 6f
 e0
 cc
-40
+04
 c2
 80
 03
@@ -3527,7 +3527,7 @@
 6f
 e0
 cc
-47
+0b
 24
 7a
 00
@@ -3650,12 +3650,12 @@
 07
 70
 4c
-41
+05
 00
 6f
 e0
 cc
-40
+04
 c4
 00
 00
@@ -3666,12 +3666,12 @@
 16
 70
 4c
-44
+08
 00
 6f
 e0
 cc
-4d
+11
 1f
 e3
 7e
@@ -3679,7 +3679,7 @@
 67
 e0
 cc
-4e
+12
 20
 60
 00
@@ -3687,11 +3687,11 @@
 6f
 e0
 cc
-53
+17
 67
 e0
 cc
-54
+18
 20
 60
 00
@@ -3699,7 +3699,7 @@
 6f
 e0
 cc
-44
+08
 c0
 00
 83
@@ -3715,11 +3715,11 @@
 6f
 e0
 cc
-4b
+0f
 67
 e0
 cc
-4c
+10
 20
 60
 00
@@ -3727,7 +3727,7 @@
 6f
 e0
 cc
-48
+0c
 20
 20
 03
@@ -3735,7 +3735,7 @@
 6f
 e0
 cc
-49
+0d
 20
 20
 03
@@ -3743,7 +3743,7 @@
 6f
 e0
 cc
-4a
+0e
 20
 20
 03
@@ -3751,7 +3751,7 @@
 6f
 e0
 cc
-40
+04
 c4
 00
 00
@@ -3759,22 +3759,22 @@
 6f
 e0
 cc
-46
+0a
 67
 e0
 cc
-47
+0b
 70
 4c
-42
+06
 00
 70
 4c
-43
+07
 00
 70
 4c
-41
+05
 01
 20
 60
@@ -3783,14 +3783,14 @@
 6f
 e0
 cc
-40
+04
 c4
 00
 00
 00
 70
 4c
-44
+08
 01
 20
 40
@@ -3803,7 +3803,7 @@
 6f
 e0
 cc
-40
+04
 c4
 01
 00
@@ -3811,7 +3811,7 @@
 6f
 e0
 cc
-50
+14
 20
 20
 03
@@ -3819,7 +3819,7 @@
 6f
 e0
 cc
-40
+04
 c4
 00
 00
@@ -3827,7 +3827,7 @@
 6f
 e0
 cc
-40
+04
 c4
 00
 80
@@ -3838,7 +3838,7 @@
 cc
 70
 4c
-44
+08
 03
 20
 40
@@ -3847,7 +3847,7 @@
 6f
 e0
 cc
-40
+04
 c4
 01
 00
@@ -3855,11 +3855,11 @@
 6f
 e0
 cc
-51
+15
 67
 e0
 cc
-52
+16
 20
 60
 00
@@ -3867,7 +3867,7 @@
 6f
 e0
 cc
-40
+04
 c4
 00
 00
@@ -3875,7 +3875,7 @@
 6f
 e0
 cc
-40
+04
 79
 3f
 fe
@@ -3883,10 +3883,10 @@
 67
 e0
 cc
-40
+04
 70
 4c
-44
+08
 02
 20
 40
@@ -3894,11 +3894,11 @@
 a4
 70
 4c
-41
+05
 01
 70
 4c
-42
+06
 01
 20
 20
@@ -3907,7 +3907,7 @@
 6f
 e0
 cc
-41
+05
 20
 7a
 00
@@ -3915,7 +3915,7 @@
 6f
 e0
 cc
-42
+06
 c0
 00
 83
@@ -3923,7 +3923,7 @@
 6f
 e0
 cc
-47
+0b
 20
 3a
 03
@@ -3935,14 +3935,14 @@
 67
 e0
 cc
-47
+0b
 20
 20
 03
 f7
 70
-50
-7f
+4f
+f3
 01
 20
 40
@@ -3950,7 +3950,7 @@
 98
 70
 4c
-41
+05
 00
 20
 20
@@ -3959,7 +3959,7 @@
 6f
 e0
 cc
-44
+08
 20
 7a
 00
@@ -3975,7 +3975,7 @@
 6f
 e0
 cc
-40
+04
 c2
 81
 03
@@ -3987,7 +3987,7 @@
 6f
 e0
 cc
-52
+16
 20
 3a
 04
@@ -3995,7 +3995,7 @@
 da
 60
 4c
-4c
+10
 da
 40
 03
@@ -4007,7 +4007,7 @@
 6f
 e0
 cc
-44
+08
 c0
 02
 03
@@ -4015,7 +4015,7 @@
 6f
 e0
 cc
-40
+04
 c2
 81
 03
@@ -4027,7 +4027,7 @@
 6f
 e0
 cc
-43
+07
 c0
 00
 84
@@ -4039,7 +4039,7 @@
 6f
 e0
 cc
-52
+16
 1f
 e0
 ff
@@ -4047,7 +4047,7 @@
 67
 e0
 cc
-52
+16
 20
 20
 03
@@ -4055,14 +4055,14 @@
 6f
 e0
 cc
-44
+08
 c0
 02
 04
 21
 70
 4c
-43
+07
 01
 6f
 e0
@@ -4087,7 +4087,7 @@
 68
 48
 cc
-55
+19
 20
 20
 04
@@ -4095,7 +4095,7 @@
 68
 48
 cc
-56
+1a
 20
 20
 04
@@ -4103,7 +4103,7 @@
 68
 48
 cc
-57
+1b
 20
 20
 04
@@ -4111,30 +4111,30 @@
 68
 48
 cc
-59
+1d
 20
 20
 60
 69
 70
 4c
-41
+05
 00
 70
 4c
-44
+08
 00
 6f
 e0
 cc
-44
+08
 c0
 02
 04
 1b
 70
 4c
-43
+07
 00
 6f
 e0
@@ -4159,7 +4159,7 @@
 68
 48
 cc
-55
+19
 20
 20
 04
@@ -4167,7 +4167,7 @@
 68
 48
 cc
-56
+1a
 20
 20
 04
@@ -4175,7 +4175,7 @@
 68
 48
 cc
-57
+1b
 18
 46
 7c
@@ -4210,12 +4210,12 @@
 1b
 70
 4c
-43
+07
 00
 6f
 e0
 cc
-45
+09
 c0
 01
 04
@@ -4227,19 +4227,19 @@
 68
 48
 cc
-59
+1d
 20
 20
 60
 65
 70
 4c
-43
+07
 01
 6f
 e0
 cc
-45
+09
 c0
 01
 03
@@ -4391,10 +4391,10 @@
 67
 e0
 cc
-52
+16
 70
 4c
-44
+08
 04
 20
 40
@@ -4402,7 +4402,7 @@
 9f
 70
 4c
-42
+06
 01
 20
 20
@@ -4527,7 +4527,7 @@
 da
 60
 4c
-7b
+1f
 da
 40
 43
@@ -4967,7 +4967,7 @@
 6f
 e0
 cc
-85
+20
 1f
 e0
 a2
@@ -4987,7 +4987,7 @@
 6f
 e0
 cc
-85
+20
 1f
 e2
 72
@@ -4995,7 +4995,7 @@
 d8
 c0
 4c
-86
+21
 20
 20
 7d
@@ -5635,7 +5635,7 @@
 6f
 e0
 cc
-40
+04
 c3
 01
 c9
@@ -5936,8 +5936,8 @@
 60
 00
 00
-89
-00
+cc
+87
 aa
 55
 40
@@ -6089,7 +6089,7 @@
 55
 01
 00
-40
+04
 4c
 03
 aa
@@ -6112,26 +6112,13 @@
 80
 aa
 55
-03
+1a
 00
 0d
 49
 ff
 ff
 10
-aa
-55
-01
-00
-3b
-4c
-ff
-aa
-55
-14
-00
-10
-49
 ff
 ff
 ff
@@ -6152,19 +6139,6 @@
 ff
 ff
 ff
-aa
-55
-01
-00
-38
-4c
-ff
-aa
-55
-03
-00
-24
-49
 02
 02
 00
@@ -6181,7 +6155,7 @@
 55
 02
 00
-45
+09
 4c
 00
 14
@@ -6189,7 +6163,7 @@
 55
 03
 00
-48
+0c
 4c
 05
 02
@@ -6198,21 +6172,21 @@
 55
 01
 00
-4d
+11
 4c
 14
 aa
 55
 01
 00
-4b
+0f
 4c
 02
 aa
 55
 02
 00
-50
+14
 4c
 01
 05
@@ -6220,14 +6194,14 @@
 55
 01
 00
-53
+17
 4c
 0a
 aa
 55
 05
 00
-55
+19
 4c
 88
 08
@@ -6276,7 +6250,7 @@
 55
 08
 00
-85
+20
 4c
 07
 02
@@ -6669,8 +6643,8 @@
 55
 0c
 00
-1e
-4c
+f0
+4b
 0b
 42
 54
@@ -7226,7 +7200,7 @@
 55
 ca
 02
-8d
+28
 4c
 04
 00
@@ -7946,10 +7920,10 @@
 aa
 aa
 55
-78
-db
-1e
-48
+d2
+d1
+79
+27
 ff
 ff
 ff
@@ -8188,5 +8162,31 @@
 ff
 ff
 ff
-db
-36
+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
+65
+78
Index: output/memmap.format
===================================================================
--- /YC1308AC/branch/mouse_project/HaiQi_Project/SlideSwitch_2mode_2ch_T225/output/memmap.format	(revision 4514)
+++ /YC1308AC/branch/mouse_project/HaiQi_Project/SlideSwitch_2mode_2ch_T225/output/memmap.format	(working copy)
@@ -2208,77 +2208,47 @@
 0x4beb mem_24g_pair_count
 0x4bed mem_mouse_logo_led_gpio
 0x4bee mem_mouse_logo_led_on_time_init
-0x4bf0 mem_g24_ota_config_type//rr
-0x4bf1 mem_g24_ota_storage_size//byte
-0x4bf3 mem_g24_ota_config_addr
-0x4bf5 mem_g24_ota_rtn_state
-0x4bf6 mem_g24_ota_mode
-0x4bf7 mem_g24_ota_sm
-0x4bf8 mem_g24_ota_prepare_send_len
-0x4bf9 mem_g24_ota_txbuf
-0x4c18 mem_g24_ota_rx_alllen
-0x4c1a mem_g24_ota_rx_sum
-0x4c1c mem_g24_ota_rx_data_count
-0x4c1d mem_g24_ota_reset_timer
-0x4c1e mem_le_name_patch_len
-0x4c1f mem_le_name_patch
-0x4c32 mem_fire_key_status
-0x4c33 mem_fire_key_delay
-0x4c37 mem_fire_key_flag
-0x4c38 mem_firebutton_gpio
-0x4c39 mem_mouse_firebutton_connect_vin_flag
-0x4c3a mem_mouse_another_dpi_connect_vin_flag
-0x4c3b mem_dpi_another_button_gpio
-0x4c3c mem_dpi_another_press_status
-0x4c3d mem_dpi_another_button_state
-0x4c3e mem_dpi_another_button_down_enable
-0x4c3f mem_mouse_key_temp_patch
-0x4c40 mem_mouse_led_new_interface_config
-0x4c41 mem_mouse_multi_led_blink_enable
-0x4c42 mem_mouse_multi_led_type
-0x4c43 mem_mouse_multi_led_state
-0x4c44 mem_mouse_multi_led_blink_type//00:rtn	01:24g blink	02:le blink		03:reconn blink 	04:low blink	05:dpi blink
-0x4c45 mem_mouse_led_multi_type//00:no multi	01:low+led	02:dpi+led	03:low+dpi_led
-0x4c46 mem_mouse_multi_led_powon_timer_init//power on time
-0x4c47 mem_mouse_multi_led_powon_timer
-0x4c48 mem_mouse_multi_24gled_blink_timer_init//24gled blink time
-0x4c49 mem_mouse_multi_le_discovery_blink_timer_init//le discovery blink time
-0x4c4a mem_mouse_multi_le_reconn_blink_timer_init//le reconn blink time
-0x4c4b mem_mouse_dpi_led_blink_timer_init//dpi blink time
-0x4c4c mem_mouse_multi_led_blink_timer
-0x4c4d mem_mouse_low_led_blink_timer//low blink time
-0x4c4e mem_mouse_low_led_blink_half_timer
-0x4c4f mem_adc_low_volatage_led_timer_count_new
-0x4c50 mem_mouse_multi_24gled_blink_count_init//24g count
-0x4c51 mem_mouse_multi_le_reconn_blink_count_init//le reconn count
-0x4c52 mem_mouse_multi_led_blink_count
-0x4c53 mem_mouse_multi_lowled_blink_count_init//low count
-0x4c54 mem_mouse_multi_low_led_blink_count
-0x4c55 mem_mouse_1io2led_multi_24gled
-0x4c56 mem_mouse_1io2led_multi_bt1led
-0x4c57 mem_mouse_1io2led_multi_bt2led
-0x4c58 mem_mouse_low_gpio
-0x4c59 mem_mouse_dpi_gpio
-0x4c5a mem_mouse_rssi_signal_buf_patch
-0x4c6a mem_mouse_rssi_signal_buf_temp
-0x4c7a mem_mouse_le_send_conn_param_update
-0x4c7b mem_mouse_le_send_conn_param_update_timer
-0x4c7c mem_24g_paccnt
-0x4c7d mem_rssi_mouse
-0x4c7e mem_clkn_bt_patch
-0x4c82 mem_txpower_print
-0x4c84 mem_normal_tx_power
-0x4c85 mem_mouse_le_pnp_len
-0x4c86 mem_mouse_le_pnp_info
-0x4c8d mem_mouse_ui_uuid_table
-0x4f57 mem_temp_test
-0x4f7f mem_le_tx_buffer0_omemalloc_new
-0x4fbf mem_le_tx_buffer1_omemalloc_new
-0x4fff mem_le_tx_buffer2_omemalloc_new
-0x503f mem_le_tx_buffer3_omemalloc_new
-0x507f mem_mouse_pair_flag
-0x5080 mem_long_sleep_flag
-0x5081 mem_mouse_long_sleep_flag
+0x4bf0 mem_le_name_patch_len
+0x4bf1 mem_le_name_patch
+0x4c04 mem_mouse_led_new_interface_config
+0x4c05 mem_mouse_multi_led_blink_enable
+0x4c06 mem_mouse_multi_led_type
+0x4c07 mem_mouse_multi_led_state
+0x4c08 mem_mouse_multi_led_blink_type//00:rtn	01:24g blink	02:le blink		03:reconn blink 	04:low blink	05:dpi blink
+0x4c09 mem_mouse_led_multi_type//00:no multi	01:low+led	02:dpi+led	03:low+dpi_led
+0x4c0a mem_mouse_multi_led_powon_timer_init//power on time
+0x4c0b mem_mouse_multi_led_powon_timer
+0x4c0c mem_mouse_multi_24gled_blink_timer_init//24gled blink time
+0x4c0d mem_mouse_multi_le_discovery_blink_timer_init//le discovery blink time
+0x4c0e mem_mouse_multi_le_reconn_blink_timer_init//le reconn blink time
+0x4c0f mem_mouse_dpi_led_blink_timer_init//dpi blink time
+0x4c10 mem_mouse_multi_led_blink_timer
+0x4c11 mem_mouse_low_led_blink_timer//low blink time
+0x4c12 mem_mouse_low_led_blink_half_timer
+0x4c13 mem_adc_low_volatage_led_timer_count_new
+0x4c14 mem_mouse_multi_24gled_blink_count_init//24g count
+0x4c15 mem_mouse_multi_le_reconn_blink_count_init//le reconn count
+0x4c16 mem_mouse_multi_led_blink_count
+0x4c17 mem_mouse_multi_lowled_blink_count_init//low count
+0x4c18 mem_mouse_multi_low_led_blink_count
+0x4c19 mem_mouse_1io2led_multi_24gled
+0x4c1a mem_mouse_1io2led_multi_bt1led
+0x4c1b mem_mouse_1io2led_multi_bt2led
+0x4c1c mem_mouse_low_gpio
+0x4c1d mem_mouse_dpi_gpio
+0x4c1e mem_mouse_le_send_conn_param_update
+0x4c1f mem_mouse_le_send_conn_param_update_timer
+0x4c20 mem_mouse_le_pnp_len
+0x4c21 mem_mouse_le_pnp_info
+0x4c28 mem_mouse_ui_uuid_table
+0x4ef2 mem_normal_tx_power
+0x4ef3 mem_le_tx_buffer0_omemalloc_new
+0x4f33 mem_le_tx_buffer1_omemalloc_new
+0x4f73 mem_le_tx_buffer2_omemalloc_new
+0x4fb3 mem_le_tx_buffer3_omemalloc_new
+0x4ff3 mem_mouse_pair_flag
+0x4ff4 mem_long_sleep_flag
+0x4ff5 mem_mouse_long_sleep_flag
 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/HaiQi_Project/SlideSwitch_2mode_2ch_T225/output/program.lis	(revision 4514)
+++ /YC1308AC/branch/mouse_project/HaiQi_Project/SlideSwitch_2mode_2ch_T225/output/program.lis	(working copy)
@@ -61,7 +61,7 @@
 0036 24740000 nrtn user 
 0037 1ce27e00 deposit auxcnt 
 0038 207a0000 rtn blank 
-0039 6fe0d081 fetch 1 ,mem_mouse_long_sleep_flag 
+0039 6fe0cff5 fetch 1 ,mem_mouse_long_sleep_flag 
 003a 207a0000 rtn blank 
 003b 6fe2098a fetch 4 ,mem_saved_gpio_in 
 003c 684a009f fetcht 4 ,mem_gpio_wakeup_low 
@@ -79,11 +79,11 @@
 0046 9842fe00 ixor temp ,pdata 
 0047 203a0253 branch p_mouse_app_enter_hibernate ,blank 
 0048 c2000043 loop p_lpm_check_wakeup_io_release + 1 
-0049 6fe0d081 fetch 1 ,mem_mouse_long_sleep_flag 
+0049 6fe0cff5 fetch 1 ,mem_mouse_long_sleep_flag 
 004a c1008000 rtneq g24_long_sleep_flag 
 004b 7855fc00 disable wake 
 004c 20401410 call lpmstate 
-004d 70508100 jam no_sleep ,mem_mouse_long_sleep_flag 
+004d 704ff500 jam no_sleep ,mem_mouse_long_sleep_flag 
 004e 2020004f branch p_soft_reset 
 
 p_soft_reset:
@@ -168,7 +168,7 @@
 0089 207a0000 rtn blank 
 008a 6fe0c099 fetch 1 ,mem_lpm_mode 
 008b 207a0000 rtn blank 
-008c 6fe0cc41 fetch 1 ,mem_mouse_multi_led_blink_enable 
+008c 6fe0cc05 fetch 1 ,mem_mouse_multi_led_blink_enable 
 008d 247a0000 nrtn blank 
 008e 202014e3 branch lpm_dispatch + 6 
 
@@ -364,16 +364,16 @@
 011d 20203ecc branch mouse_adc_data_process_next 
 
 p_mouse_power_down:
-011e 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
+011e 6fe0cc04 fetch 1 ,mem_mouse_led_new_interface_config 
 011f c3003f1c bbit0 mouse_enable_1io2led ,mouse_power_down 
 0120 20200253 branch p_mouse_app_enter_hibernate 
 
 p_mouse_adc_no_low_voltage:
-0121 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
+0121 6fe0cc04 fetch 1 ,mem_mouse_led_new_interface_config 
 0122 c3003ed0 bbit0 mouse_enable_1io2led ,mouse_adc_no_low_voltage 
 0123 d8e00004 arg mouse_low_voltage_flag ,queue 
 0124 204046f4 call mouse_disable_function_flag 
-0125 704c4f01 jam 1 ,mem_adc_low_volatage_led_timer_count_new 
+0125 704c1301 jam 1 ,mem_adc_low_volatage_led_timer_count_new 
 0126 6fe0c8fa fetch 1 ,mem_mouse_adc_last_low_voltage_flag 
 0127 207a0000 rtn blank 
 0128 7048fa00 jam 0 ,mem_mouse_adc_last_low_voltage_flag 
@@ -381,7 +381,7 @@
 
 p_mouse_check_dpi_blink:
 012a 78547c00 disable user 
-012b 6fe0cc44 fetch 1 ,mem_mouse_multi_led_blink_type 
+012b 6fe0cc08 fetch 1 ,mem_mouse_multi_led_blink_type 
 012c 1fe67c04 sub pdata ,4 ,null 
 012d 24628000 nrtn zero 
 012e 20207e54 branch enable_user 
@@ -396,56 +396,56 @@
 0133 247a0000 nrtn blank 
 0134 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
 0135 247a0000 nrtn blank 
-0136 6fe0cc47 fetch 1 ,mem_mouse_multi_led_powon_timer 
+0136 6fe0cc0b fetch 1 ,mem_mouse_multi_led_powon_timer 
 0137 247a0000 nrtn blank 
 0138 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
 0139 c4020000 rtnbit0 mouse_low_voltage_flag 
 013a 2040012a call p_mouse_check_dpi_blink 
 013b 20740000 rtn user 
-013c 6fe0cc54 fetch 1 ,mem_mouse_multi_low_led_blink_count 
+013c 6fe0cc18 fetch 1 ,mem_mouse_multi_low_led_blink_count 
 013d 203a0157 branch p_mouse_low_led_blink_count_init_judge ,blank 
 
 p_mouse_low_led_blink_timer:
-013e 6848cc4f fetcht 1 ,mem_adc_low_volatage_led_timer_count_new 
+013e 6848cc13 fetcht 1 ,mem_adc_low_volatage_led_timer_count_new 
 013f 18408401 increase 1 ,temp 
-0140 6048cc4f storet 1 ,mem_adc_low_volatage_led_timer_count_new 
-0141 6fe0cc4d fetch 1 ,mem_mouse_low_led_blink_timer 
+0140 6048cc13 storet 1 ,mem_adc_low_volatage_led_timer_count_new 
+0141 6fe0cc11 fetch 1 ,mem_mouse_low_led_blink_timer 
 0142 98467c00 isub temp ,null 
 0143 2441014c ncall p_mouse_low_led_timer_count_clean ,positive 
-0144 6fe0cc4e fetch 1 ,mem_mouse_low_led_blink_half_timer 
+0144 6fe0cc12 fetch 1 ,mem_mouse_low_led_blink_half_timer 
 0145 98467c00 isub temp ,null 
 0146 2421014e nbranch p_mouse_low_voltage_led_off_judge ,positive 
 
 p_mouse_low_voltage_led_on_judge:
-0147 6fe0cc45 fetch 1 ,mem_mouse_led_multi_type 
+0147 6fe0cc09 fetch 1 ,mem_mouse_led_multi_type 
 0148 c00083f7 beq mouse_enable_low_for_led ,p_mouse_device_multi_led_on + 1 
 0149 c00183f7 beq mouse_enable_dpi_low_for_led ,p_mouse_device_multi_led_on + 1 
 
 p_mouse_low_voltage_led_on:
-014a 6848cc58 fetcht 1 ,mem_mouse_low_gpio 
+014a 6848cc1c fetcht 1 ,mem_mouse_low_gpio 
 014b 20200403 branch p_mouse_multi_led_on 
 
 p_mouse_low_led_timer_count_clean:
-014c 704c4f01 jam 1 ,mem_adc_low_volatage_led_timer_count_new 
+014c 704c1301 jam 1 ,mem_adc_low_volatage_led_timer_count_new 
 014d 20400153 call p_mouse_low_led_blink_decrease 
 
 p_mouse_low_voltage_led_off_judge:
-014e 6fe0cc45 fetch 1 ,mem_mouse_led_multi_type 
+014e 6fe0cc09 fetch 1 ,mem_mouse_led_multi_type 
 014f c0008409 beq mouse_enable_low_for_led ,p_mouse_device_multi_led_off + 1 
 0150 c0018409 beq mouse_enable_dpi_low_for_led ,p_mouse_device_multi_led_off + 1 
 
 p_mouse_low_voltage_led_off:
-0151 6848cc58 fetcht 1 ,mem_mouse_low_gpio 
+0151 6848cc1c fetcht 1 ,mem_mouse_low_gpio 
 0152 20200420 branch p_mouse_multi_led_off 
 
 p_mouse_low_led_blink_decrease:
-0153 6fe0cc54 fetch 1 ,mem_mouse_multi_low_led_blink_count 
+0153 6fe0cc18 fetch 1 ,mem_mouse_multi_low_led_blink_count 
 0154 1fe0ffff increase -1 ,pdata 
-0155 67e0cc54 store 1 ,mem_mouse_multi_low_led_blink_count 
+0155 67e0cc18 store 1 ,mem_mouse_multi_low_led_blink_count 
 0156 20600000 rtn 
 
 p_mouse_low_led_blink_count_init_judge:
-0157 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
+0157 6fe0cc04 fetch 1 ,mem_mouse_led_new_interface_config 
 0158 c282014e bbit1 mouse_enable_low_led_blink_limit ,p_mouse_low_voltage_led_off_judge 
 0159 20400398 call p_mouse_multi_low_led_blink_count_init 
 015a 2020013e branch p_mouse_low_led_blink_timer 
@@ -484,7 +484,7 @@
 0173 20400193 call p_mouse_setting_config 
 0174 204041a7 call mouse_init_sunt 
 0175 20758000 rtn wake 
-0176 70507f00 jam 0 ,mem_mouse_pair_flag 
+0176 704ff300 jam 0 ,mem_mouse_pair_flag 
 0177 20400361 call p_mouse_seting_sensor_type 
 0178 20403d8a call mouse_usb_check_enable 
 0179 20404728 call mouse_drawing_optima_init 
@@ -510,15 +510,15 @@
 0189 202046b1 branch mouse_check_select_24g_device 
 
 p_mouse_le_name_load:
-018a 6fe0cc1e fetch 1 ,mem_le_name_patch_len 
+018a 6fe0cbf0 fetch 1 ,mem_le_name_patch_len 
 018b 207a0000 rtn blank 
 018c 1fe0f201 add pdata ,1 ,loopcnt 
-018d d8c04c1e arg mem_le_name_patch_len ,contr 
+018d d8c04bf0 arg mem_le_name_patch_len ,contr 
 018e d8a042f7 arg mem_le_name_len ,contw 
 018f 20207d5f branch memcpy 
 
 p_mouse_param_init:
-0190 58004c8d setarg mem_mouse_ui_uuid_table 
+0190 58004c28 setarg mem_mouse_ui_uuid_table 
 0191 67e14660 store 2 ,mem_ui_uuid_table 
 0192 20203d15 branch mouse_param_init + 2 
 
@@ -576,7 +576,7 @@
 01bd 20600000 rtn 
 
 p_mouse_le_buff_modify:
-01be 58004f7f setarg mem_le_tx_buffer0_omemalloc_new 
+01be 58004ef3 setarg mem_le_tx_buffer0_omemalloc_new 
 01bf 67e143de store 2 ,mem_ble_l2cap_tx_buff0_ptr 
 01c0 58000020 setarg mouse_ble_l2cap_txbuff_size_new 
 01c1 67e143e0 store 2 ,mem_ble_l2cap_tx_buff_size_ptr 
@@ -584,7 +584,7 @@
 
 p_mouse_store_normal_tx_power:
 01c3 6fe0c1e8 fetch 1 ,mem_tx_power 
-01c4 67e0cc84 store 1 ,mem_normal_tx_power 
+01c4 67e0cef2 store 1 ,mem_normal_tx_power 
 01c5 20600000 rtn 
 
 p_mouse_cb_fuction:
@@ -598,8 +598,8 @@
 01cb c6930000 rtnmark0 mark_24g 
 01cc 20403f70 call mouse_motion 
 01cd 24740000 nrtn user 
-01ce 6fe0d080 fetch 1 ,mem_long_sleep_flag 
-01cf 70508000 jam 0 ,mem_long_sleep_flag 
+01ce 6fe0cff4 fetch 1 ,mem_long_sleep_flag 
+01cf 704ff400 jam 0 ,mem_long_sleep_flag 
 01d0 245a01e8 ncall p_mouse_short_sleep_clear_wake ,blank 
 01d1 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
 01d2 c30a81d5 bbit0 mouse_enable_keyboard ,p_mouse_24g_mouse_package_data 
@@ -761,7 +761,7 @@
 024a 20600000 rtn 
 
 p_mouse_wakeup_24g_from_long_sleep:
-024b 70507f01 jam 1 ,mem_mouse_pair_flag 
+024b 704ff301 jam 1 ,mem_mouse_pair_flag 
 024c 204041aa call mouse_init_sensor_wakeup 
 024d 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
 024e c41e0000 rtnbit0 mouse_enable_wheel_wake_up_cancel 
@@ -773,7 +773,7 @@
 0252 20203f56 branch mouse_gpio_config_input_pu 
 
 p_mouse_app_enter_hibernate:
-0253 70508102 jam normal_hibernate ,mem_mouse_long_sleep_flag 
+0253 704ff502 jam normal_hibernate ,mem_mouse_long_sleep_flag 
 0254 58000006 setarg pan_reg_config 
 0255 20405b0d call twspi_read 
 0256 c2818303 bbit1 3 ,p_mouse_24g_hibernate_set + 5 
@@ -795,7 +795,7 @@
 0264 20400284 call p_mouse_lpm_before_common 
 0265 20406082 call gpio_pd_idle 
 0266 20400416 call p_mouse_device_multi_led_all_off 
-0267 6fe0cc55 fetch 1 ,mem_mouse_1io2led_multi_24gled 
+0267 6fe0cc19 fetch 1 ,mem_mouse_1io2led_multi_24gled 
 0268 d84000c0 arg gpcfg_no_ie ,temp 
 0269 20406093 call gpio_config_function_int 
 026a d8400013 arg 19 ,temp 
@@ -854,14 +854,14 @@
 0291 204004f5 call p_g24_lpm_wait 
 0292 24740000 nrtn user 
 0293 20400299 call p_g24_setgpio_lpm_before_check 
-0294 70508001 jam 1 ,mem_long_sleep_flag 
+0294 704ff401 jam 1 ,mem_long_sleep_flag 
 0295 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
 0296 245a025a ncall p_mouse_setgpio_hibernate ,blank 
 0297 6fe4485c fetch 8 ,mem_24g_enter_hibernate 
 0298 202026b8 branch g24_long_sleep2 
 
 p_g24_setgpio_lpm_before_check:
-0299 6fe0d081 fetch 1 ,mem_mouse_long_sleep_flag 
+0299 6fe0cff5 fetch 1 ,mem_mouse_long_sleep_flag 
 029a c1010000 rtneq normal_hibernate 
 029b 202026c4 branch g24_setgpio_lpm_before 
 
@@ -917,8 +917,8 @@
 p_mouse_le_bb_disconnected:
 02c1 58000000 setarg 0 
 02c2 67e14af2 store 2 ,mem_le_battery_level_updata_timer 
-02c3 67e0cc7a store 1 ,mem_mouse_le_send_conn_param_update 
-02c4 67e0cc7b store 1 ,mem_mouse_le_send_conn_param_update_timer 
+02c3 67e0cc1e store 1 ,mem_mouse_le_send_conn_param_update 
+02c4 67e0cc1f store 1 ,mem_mouse_le_send_conn_param_update_timer 
 02c5 67e0cac6 store 1 ,mem_mouse_le_bb_connected_flag 
 02c6 20204366 branch mouse_le_bb_disconnected + 7 
 
@@ -934,17 +934,17 @@
 02cd 20204373 branch mouse_le_ll_enable_start_enc_flag 
 
 p_mouse_le_conn_param_update_rsp_recieved:
-02ce 6fe0cc7a fetch 1 ,mem_mouse_le_send_conn_param_update 
+02ce 6fe0cc1e fetch 1 ,mem_mouse_le_send_conn_param_update 
 02cf 247a0000 nrtn blank 
-02d0 704c7a01 jam 1 ,mem_mouse_le_send_conn_param_update 
-02d1 704c7b1e jam 30 ,mem_mouse_le_send_conn_param_update_timer 
+02d0 704c1e01 jam 1 ,mem_mouse_le_send_conn_param_update 
+02d1 704c1f1e jam 30 ,mem_mouse_le_send_conn_param_update_timer 
 02d2 20600000 rtn 
 
 p_mouse_agc_disable_nomal_power:
 02d3 204000c8 call p_mouse_soft_agc_disable 
 
 p_mouse_fetch_normal_tx_power:
-02d4 6fe0cc84 fetch 1 ,mem_normal_tx_power 
+02d4 6fe0cef2 fetch 1 ,mem_normal_tx_power 
 02d5 67e0c1e8 store 1 ,mem_tx_power 
 02d6 20600000 rtn 
 
@@ -998,8 +998,8 @@
 02fd 20204827 branch mouse_24g_start_pair_mode 
 
 p_mouse_24g_hibernate_set:
-02fe 70508101 jam g24_long_sleep_flag ,mem_mouse_long_sleep_flag 
-02ff 70507f00 jam 0 ,mem_mouse_pair_flag 
+02fe 704ff501 jam g24_long_sleep_flag ,mem_mouse_long_sleep_flag 
+02ff 704ff300 jam 0 ,mem_mouse_pair_flag 
 0300 7048a500 jam 0 ,mem_24g_attempt_fail_flag 
 0301 20400523 call p_mouse_sensor_powerdown 
 0302 20402652 call g24_transmit_next_packet 
@@ -1008,7 +1008,7 @@
 0305 58000000 setarg 0 
 0306 67e3c8d0 store 7 ,mem_mouse_key 
 0307 704be101 jam 1 ,mem_sensor_shutdown_flag 
-0308 704c4100 jam 0 ,mem_mouse_multi_led_blink_enable 
+0308 704c0500 jam 0 ,mem_mouse_multi_led_blink_enable 
 0309 20200291 branch p_g24_long_sleep 
 
 p_g24_pair_dispatch:
@@ -1138,7 +1138,7 @@
 0365 247a0000 nrtn blank 
 0366 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
 0367 247a0000 nrtn blank 
-0368 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
+0368 6fe0cc04 fetch 1 ,mem_mouse_led_new_interface_config 
 0369 c2800370 bbit1 mouse_enable_1io2led ,p_mouse_dpi_led_blink_delay_new2 
 036a 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
 036b 247a0000 nrtn blank 
@@ -1150,7 +1150,7 @@
 036f 20600000 rtn 
 
 p_mouse_dpi_led_blink_delay_new2:
-0370 6fe0cc47 fetch 1 ,mem_mouse_multi_led_powon_timer 
+0370 6fe0cc0b fetch 1 ,mem_mouse_multi_led_powon_timer 
 0371 247a0000 nrtn blank 
 0372 2020036c branch p_mouse_dpi_led_blink_delay_next 
 
@@ -1187,172 +1187,172 @@
 038e 20204507 branch mouse_check_direct_timeout_timer + 3 
 
 p_mouse_device_multi_led_parm_init:
-038f 704c4100 jam 0 ,mem_mouse_multi_led_blink_enable 
-0390 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
+038f 704c0500 jam 0 ,mem_mouse_multi_led_blink_enable 
+0390 6fe0cc04 fetch 1 ,mem_mouse_led_new_interface_config 
 0391 c4000000 rtnbit0 mouse_enable_1io2led 
 0392 20400416 call p_mouse_device_multi_led_all_off 
 
 p_mouse_multi_led_parm_init:
-0393 704c4400 jam 0 ,mem_mouse_multi_led_blink_type 
+0393 704c0800 jam 0 ,mem_mouse_multi_led_blink_type 
 
 p_mouse_multi_low_led_blink_timer_init:
-0394 6fe0cc4d fetch 1 ,mem_mouse_low_led_blink_timer 
+0394 6fe0cc11 fetch 1 ,mem_mouse_low_led_blink_timer 
 0395 1fe37e00 rshift pdata ,pdata 
-0396 67e0cc4e store 1 ,mem_mouse_low_led_blink_half_timer 
+0396 67e0cc12 store 1 ,mem_mouse_low_led_blink_half_timer 
 0397 20600000 rtn 
 
 p_mouse_multi_low_led_blink_count_init:
-0398 6fe0cc53 fetch 1 ,mem_mouse_multi_lowled_blink_count_init 
-0399 67e0cc54 store 1 ,mem_mouse_multi_low_led_blink_count 
+0398 6fe0cc17 fetch 1 ,mem_mouse_multi_lowled_blink_count_init 
+0399 67e0cc18 store 1 ,mem_mouse_multi_low_led_blink_count 
 039a 20600000 rtn 
 
 p_mouse_multi_led_blink_timer_init:
-039b 6fe0cc44 fetch 1 ,mem_mouse_multi_led_blink_type 
+039b 6fe0cc08 fetch 1 ,mem_mouse_multi_led_blink_type 
 039c c00083a2 beq 1 ,p_mouse_device_24g_led_blink_timer_init 
 039d c00103a4 beq 2 ,p_mouse_device_le_discovery_led_blink_timer_init 
 039e c00183a6 beq 3 ,p_mouse_device_le_reconn_led_blink_timer_init 
 
 p_mouse_multi_dpi_led_blink_timer_init:
-039f 6fe0cc4b fetch 1 ,mem_mouse_dpi_led_blink_timer_init 
+039f 6fe0cc0f fetch 1 ,mem_mouse_dpi_led_blink_timer_init 
 
 p_mouse_store_multi_led_blink_timer:
-03a0 67e0cc4c store 1 ,mem_mouse_multi_led_blink_timer 
+03a0 67e0cc10 store 1 ,mem_mouse_multi_led_blink_timer 
 03a1 20600000 rtn 
 
 p_mouse_device_24g_led_blink_timer_init:
-03a2 6fe0cc48 fetch 1 ,mem_mouse_multi_24gled_blink_timer_init 
+03a2 6fe0cc0c fetch 1 ,mem_mouse_multi_24gled_blink_timer_init 
 03a3 202003a0 branch p_mouse_store_multi_led_blink_timer 
 
 p_mouse_device_le_discovery_led_blink_timer_init:
-03a4 6fe0cc49 fetch 1 ,mem_mouse_multi_le_discovery_blink_timer_init 
+03a4 6fe0cc0d fetch 1 ,mem_mouse_multi_le_discovery_blink_timer_init 
 03a5 202003a0 branch p_mouse_store_multi_led_blink_timer 
 
 p_mouse_device_le_reconn_led_blink_timer_init:
-03a6 6fe0cc4a fetch 1 ,mem_mouse_multi_le_reconn_blink_timer_init 
+03a6 6fe0cc0e fetch 1 ,mem_mouse_multi_le_reconn_blink_timer_init 
 03a7 202003a0 branch p_mouse_store_multi_led_blink_timer 
 
 p_mouse_device_poweron_led_config:
-03a8 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
+03a8 6fe0cc04 fetch 1 ,mem_mouse_led_new_interface_config 
 03a9 c4000000 rtnbit0 mouse_enable_1io2led 
-03aa 6fe0cc46 fetch 1 ,mem_mouse_multi_led_powon_timer_init 
-03ab 67e0cc47 store 1 ,mem_mouse_multi_led_powon_timer 
-03ac 704c4200 jam multi_led_on ,mem_mouse_multi_led_type 
+03aa 6fe0cc0a fetch 1 ,mem_mouse_multi_led_powon_timer_init 
+03ab 67e0cc0b store 1 ,mem_mouse_multi_led_powon_timer 
+03ac 704c0600 jam multi_led_on ,mem_mouse_multi_led_type 
 
 p_mouse_multi_led_enable:
-03ad 704c4300 jam off ,mem_mouse_multi_led_state 
-03ae 704c4101 jam on ,mem_mouse_multi_led_blink_enable 
+03ad 704c0700 jam off ,mem_mouse_multi_led_state 
+03ae 704c0501 jam on ,mem_mouse_multi_led_blink_enable 
 03af 20600000 rtn 
 
 p_mouse_device_pair_led_config:
-03b0 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
+03b0 6fe0cc04 fetch 1 ,mem_mouse_led_new_interface_config 
 03b1 c4000000 rtnbit0 mouse_enable_1io2led 
 
 p_mouse_device_24g_led_blink:
-03b2 704c4401 jam 1 ,mem_mouse_multi_led_blink_type 
+03b2 704c0801 jam 1 ,mem_mouse_multi_led_blink_type 
 03b3 204003a2 call p_mouse_device_24g_led_blink_timer_init 
 03b4 204003cc call p_mouse_multi_led_blink_enable_init 
-03b5 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
+03b5 6fe0cc04 fetch 1 ,mem_mouse_led_new_interface_config 
 03b6 c4010000 rtnbit0 mouse_enable_led_blink_limit 
-03b7 6fe0cc50 fetch 1 ,mem_mouse_multi_24gled_blink_count_init 
+03b7 6fe0cc14 fetch 1 ,mem_mouse_multi_24gled_blink_count_init 
 03b8 202003c3 branch p_mouse_device_led_blink_count_init 
 
 p_mouse_device_le_reconn_led_config:
-03b9 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
+03b9 6fe0cc04 fetch 1 ,mem_mouse_led_new_interface_config 
 03ba c4000000 rtnbit0 mouse_enable_1io2led 
 
 p_mouse_device_le_reconn_led_blink:
-03bb 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
+03bb 6fe0cc04 fetch 1 ,mem_mouse_led_new_interface_config 
 03bc c4008000 rtnbit0 mouse_enable_bt_reconn_led_effect 
 03bd 204003cc call p_mouse_multi_led_blink_enable_init 
-03be 704c4403 jam 3 ,mem_mouse_multi_led_blink_type 
+03be 704c0803 jam 3 ,mem_mouse_multi_led_blink_type 
 03bf 204003a6 call p_mouse_device_le_reconn_led_blink_timer_init 
-03c0 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
+03c0 6fe0cc04 fetch 1 ,mem_mouse_led_new_interface_config 
 03c1 c4010000 rtnbit0 mouse_enable_led_blink_limit 
-03c2 6fe0cc51 fetch 1 ,mem_mouse_multi_le_reconn_blink_count_init 
+03c2 6fe0cc15 fetch 1 ,mem_mouse_multi_le_reconn_blink_count_init 
 
 p_mouse_device_led_blink_count_init:
-03c3 67e0cc52 store 1 ,mem_mouse_multi_led_blink_count 
+03c3 67e0cc16 store 1 ,mem_mouse_multi_led_blink_count 
 03c4 20600000 rtn 
 
 p_mouse_device_discovery_led_config:
-03c5 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
+03c5 6fe0cc04 fetch 1 ,mem_mouse_led_new_interface_config 
 03c6 c4000000 rtnbit0 mouse_enable_1io2led 
-03c7 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
+03c7 6fe0cc04 fetch 1 ,mem_mouse_led_new_interface_config 
 03c8 793ffe02 set0 mouse_enable_led_blink_limit ,pdata 
-03c9 67e0cc40 store 1 ,mem_mouse_led_new_interface_config 
-03ca 704c4402 jam 2 ,mem_mouse_multi_led_blink_type 
+03c9 67e0cc04 store 1 ,mem_mouse_led_new_interface_config 
+03ca 704c0802 jam 2 ,mem_mouse_multi_led_blink_type 
 03cb 204003a4 call p_mouse_device_le_discovery_led_blink_timer_init 
 
 p_mouse_multi_led_blink_enable_init:
-03cc 704c4101 jam 1 ,mem_mouse_multi_led_blink_enable 
-03cd 704c4201 jam multi_led_blink ,mem_mouse_multi_led_type 
+03cc 704c0501 jam 1 ,mem_mouse_multi_led_blink_enable 
+03cd 704c0601 jam multi_led_blink ,mem_mouse_multi_led_type 
 03ce 202003f6 branch p_mouse_device_multi_led_on 
 
 p_mouse_led_multi_timer:
-03cf 6fe0cc41 fetch 1 ,mem_mouse_multi_led_blink_enable 
+03cf 6fe0cc05 fetch 1 ,mem_mouse_multi_led_blink_enable 
 03d0 207a0000 rtn blank 
-03d1 6fe0cc42 fetch 1 ,mem_mouse_multi_led_type 
+03d1 6fe0cc06 fetch 1 ,mem_mouse_multi_led_type 
 03d2 c00083dc beq multi_led_blink ,p_mouse_multi_led_type_blink 
 
 p_mouse_device_multi_led_type_on:
-03d3 6fe0cc47 fetch 1 ,mem_mouse_multi_led_powon_timer 
+03d3 6fe0cc0b fetch 1 ,mem_mouse_multi_led_powon_timer 
 03d4 203a03d8 branch p_mouse_device_poweron_led_off ,blank 
 03d5 1fe0ffff increase -1 ,pdata 
-03d6 67e0cc47 store 1 ,mem_mouse_multi_led_powon_timer 
+03d6 67e0cc0b store 1 ,mem_mouse_multi_led_powon_timer 
 03d7 202003f7 branch p_mouse_device_multi_led_on + 1 
 
 p_mouse_device_poweron_led_off:
-03d8 70507f01 jam 1 ,mem_mouse_pair_flag 
+03d8 704ff301 jam 1 ,mem_mouse_pair_flag 
 03d9 20400398 call p_mouse_multi_low_led_blink_count_init 
 
 p_mouse_devide_led_disable:
-03da 704c4100 jam 0 ,mem_mouse_multi_led_blink_enable 
+03da 704c0500 jam 0 ,mem_mouse_multi_led_blink_enable 
 03db 20200409 branch p_mouse_device_multi_led_off + 1 
 
 p_mouse_multi_led_type_blink:
-03dc 6fe0cc44 fetch 1 ,mem_mouse_multi_led_blink_type 
+03dc 6fe0cc08 fetch 1 ,mem_mouse_multi_led_blink_type 
 03dd 207a0000 rtn blank 
 03de c00203e3 beq 4 ,p_mouse_device_led_blink_limit 
 03df 202003e0 branch p_mouse_device_led_blink_judge 
 
 p_mouse_device_led_blink_judge:
-03e0 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
+03e0 6fe0cc04 fetch 1 ,mem_mouse_led_new_interface_config 
 03e1 c28103e3 bbit1 mouse_enable_led_blink_limit ,p_mouse_device_led_blink_limit 
 03e2 202003e5 branch p_mouse_multi_led_type_blink_next 
 
 p_mouse_device_led_blink_limit:
-03e3 6fe0cc52 fetch 1 ,mem_mouse_multi_led_blink_count 
+03e3 6fe0cc16 fetch 1 ,mem_mouse_multi_led_blink_count 
 03e4 203a0404 branch p_mouse_multi_led_off_judge ,blank 
 
 p_mouse_multi_led_type_blink_next:
-03e5 da604c4c arg mem_mouse_multi_led_blink_timer ,regc 
+03e5 da604c10 arg mem_mouse_multi_led_blink_timer ,regc 
 03e6 da4003e8 arg p_mouse_multi_led_type_blink_start ,regb 
 03e7 2020318a branch timer_single_step 
 
 p_mouse_multi_led_type_blink_start:
-03e8 6fe0cc44 fetch 1 ,mem_mouse_multi_led_blink_type 
+03e8 6fe0cc08 fetch 1 ,mem_mouse_multi_led_blink_type 
 03e9 c00203f0 beq 4 ,p_mouse_multi_led_blink_count_decrease 
-03ea 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
+03ea 6fe0cc04 fetch 1 ,mem_mouse_led_new_interface_config 
 03eb c28103f0 bbit1 mouse_enable_led_blink_limit ,p_mouse_multi_led_blink_count_decrease 
 
 p_mouse_multi_led_blink:
 03ec 2040039b call p_mouse_multi_led_blink_timer_init 
-03ed 6fe0cc43 fetch 1 ,mem_mouse_multi_led_state 
+03ed 6fe0cc07 fetch 1 ,mem_mouse_multi_led_state 
 03ee c0008406 beq on ,p_mouse_multi_led_off_judge_next 
 03ef 202003f4 branch p_mouse_multi_led_on_judge 
 
 p_mouse_multi_led_blink_count_decrease:
-03f0 6fe0cc52 fetch 1 ,mem_mouse_multi_led_blink_count 
+03f0 6fe0cc16 fetch 1 ,mem_mouse_multi_led_blink_count 
 03f1 1fe0ffff increase -1 ,pdata 
-03f2 67e0cc52 store 1 ,mem_mouse_multi_led_blink_count 
+03f2 67e0cc16 store 1 ,mem_mouse_multi_led_blink_count 
 03f3 202003ec branch p_mouse_multi_led_blink 
 
 p_mouse_multi_led_on_judge:
-03f4 6fe0cc44 fetch 1 ,mem_mouse_multi_led_blink_type 
+03f4 6fe0cc08 fetch 1 ,mem_mouse_multi_led_blink_type 
 03f5 c0020421 beq 4 ,p_mouse_multi_dpi_led_on_judge 
 
 p_mouse_device_multi_led_on:
-03f6 704c4301 jam on ,mem_mouse_multi_led_state 
+03f6 704c0701 jam on ,mem_mouse_multi_led_state 
 03f7 6fe0c938 fetch 1 ,mem_device_flag 
 03f8 c00003fc beq mode_24g_device ,p_mouse_device_24g_led_on 
 03f9 c00083fe beq mode_bt_device1 ,p_mouse_device_bt1_led_on 
@@ -1360,33 +1360,33 @@
 03fb 20600000 rtn 
 
 p_mouse_device_24g_led_on:
-03fc 6848cc55 fetcht 1 ,mem_mouse_1io2led_multi_24gled 
+03fc 6848cc19 fetcht 1 ,mem_mouse_1io2led_multi_24gled 
 03fd 20200403 branch p_mouse_multi_led_on 
 
 p_mouse_device_bt1_led_on:
-03fe 6848cc56 fetcht 1 ,mem_mouse_1io2led_multi_bt1led 
+03fe 6848cc1a fetcht 1 ,mem_mouse_1io2led_multi_bt1led 
 03ff 20200403 branch p_mouse_multi_led_on 
 
 p_mouse_device_bt2_led_on:
-0400 6848cc57 fetcht 1 ,mem_mouse_1io2led_multi_bt2led 
+0400 6848cc1b fetcht 1 ,mem_mouse_1io2led_multi_bt2led 
 0401 20200403 branch p_mouse_multi_led_on 
 
 p_mouse_multi_dpi_led_on:
-0402 6848cc59 fetcht 1 ,mem_mouse_dpi_gpio 
+0402 6848cc1d fetcht 1 ,mem_mouse_dpi_gpio 
 
 p_mouse_multi_led_on:
 0403 20206069 branch gpio_out_active 
 
 p_mouse_multi_led_off_judge:
-0404 704c4100 jam 0 ,mem_mouse_multi_led_blink_enable 
-0405 704c4400 jam 0 ,mem_mouse_multi_led_blink_type 
+0404 704c0500 jam 0 ,mem_mouse_multi_led_blink_enable 
+0405 704c0800 jam 0 ,mem_mouse_multi_led_blink_type 
 
 p_mouse_multi_led_off_judge_next:
-0406 6fe0cc44 fetch 1 ,mem_mouse_multi_led_blink_type 
+0406 6fe0cc08 fetch 1 ,mem_mouse_multi_led_blink_type 
 0407 c002041b beq 4 ,p_mouse_multi_dpi_led_off_judge 
 
 p_mouse_device_multi_led_off:
-0408 704c4300 jam off ,mem_mouse_multi_led_state 
+0408 704c0700 jam off ,mem_mouse_multi_led_state 
 0409 6fe0c938 fetch 1 ,mem_device_flag 
 040a c000040e beq mode_24g_device ,p_mouse_device_24g_led_off 
 040b c0008410 beq mode_bt_device1 ,p_mouse_device_bt1_led_off 
@@ -1394,15 +1394,15 @@
 040d 20600000 rtn 
 
 p_mouse_device_24g_led_off:
-040e 6848cc55 fetcht 1 ,mem_mouse_1io2led_multi_24gled 
+040e 6848cc19 fetcht 1 ,mem_mouse_1io2led_multi_24gled 
 040f 20200413 branch p_gpio_set_high_impedance 
 
 p_mouse_device_bt1_led_off:
-0410 6848cc56 fetcht 1 ,mem_mouse_1io2led_multi_bt1led 
+0410 6848cc1a fetcht 1 ,mem_mouse_1io2led_multi_bt1led 
 0411 20200413 branch p_gpio_set_high_impedance 
 
 p_mouse_device_bt2_led_off:
-0412 6848cc57 fetcht 1 ,mem_mouse_1io2led_multi_bt2led 
+0412 6848cc1b fetcht 1 ,mem_mouse_1io2led_multi_bt2led 
 
 p_gpio_set_high_impedance:
 0413 18467cff sub temp ,gpio_disable ,null 
@@ -1417,20 +1417,20 @@
 041a 2020041b branch p_mouse_multi_dpi_led_off_judge 
 
 p_mouse_multi_dpi_led_off_judge:
-041b 704c4300 jam off ,mem_mouse_multi_led_state 
-041c 6fe0cc45 fetch 1 ,mem_mouse_led_multi_type 
+041b 704c0700 jam off ,mem_mouse_multi_led_state 
+041c 6fe0cc09 fetch 1 ,mem_mouse_led_multi_type 
 041d c0010408 beq mouse_enable_dpi_for_led ,p_mouse_device_multi_led_off 
 041e c0018408 beq mouse_enable_dpi_low_for_led ,p_mouse_device_multi_led_off 
 
 p_mouse_multi_dpi_led_off:
-041f 6848cc59 fetcht 1 ,mem_mouse_dpi_gpio 
+041f 6848cc1d fetcht 1 ,mem_mouse_dpi_gpio 
 
 p_mouse_multi_led_off:
 0420 20206065 branch gpio_out_inactive 
 
 p_mouse_multi_dpi_led_on_judge:
-0421 704c4301 jam on ,mem_mouse_multi_led_state 
-0422 6fe0cc45 fetch 1 ,mem_mouse_led_multi_type 
+0421 704c0701 jam on ,mem_mouse_multi_led_state 
+0422 6fe0cc09 fetch 1 ,mem_mouse_led_multi_type 
 0423 c00103f6 beq mouse_enable_dpi_for_led ,p_mouse_device_multi_led_on 
 0424 c00183f6 beq mouse_enable_dpi_low_for_led ,p_mouse_device_multi_led_on 
 0425 20200402 branch p_mouse_multi_dpi_led_on 
@@ -1486,12 +1486,12 @@
 0445 2441043c ncall p_mouse_dpi_led_blink_count_clean ,positive 
 0446 18427e00 copy temp ,pdata 
 0447 9fe0fe00 iadd pdata ,pdata 
-0448 67e0cc52 store 1 ,mem_mouse_multi_led_blink_count 
+0448 67e0cc16 store 1 ,mem_mouse_multi_led_blink_count 
 
 p_mouse_multi_dpi_led_blink_enable:
-0449 704c4404 jam 4 ,mem_mouse_multi_led_blink_type 
+0449 704c0804 jam 4 ,mem_mouse_multi_led_blink_type 
 044a 2040039f call p_mouse_multi_dpi_led_blink_timer_init 
-044b 704c4201 jam multi_led_blink ,mem_mouse_multi_led_type 
+044b 704c0601 jam multi_led_blink ,mem_mouse_multi_led_type 
 044c 202003ad branch p_mouse_multi_led_enable 
 
 p_mouse_dpi_led_blink_init_new2:
@@ -1538,7 +1538,7 @@
 0469 2020451f branch mouse_le_battery_updata_timer 
 
 p_mouse_le_send_conn_param_update_timer:
-046a da604c7b arg mem_mouse_le_send_conn_param_update_timer ,regc 
+046a da604c1f arg mem_mouse_le_send_conn_param_update_timer ,regc 
 046b da40436c arg mouse_updata_le_param ,regb 
 046c 2020318a branch timer_single_step 
 
@@ -1686,14 +1686,14 @@
 
 p_le_send_pnp_info:
 04d7 20407ceb call store_contr 
-04d8 6fe0cc85 fetch 1 ,mem_mouse_le_pnp_len 
+04d8 6fe0cc20 fetch 1 ,mem_mouse_le_pnp_len 
 04d9 1fe0a201 add pdata ,1 ,rega 
 04da 20401ed4 call le_fifo_malloc_tx_l2cap_gatt 
 04db 5800000b setarg attop_read_response 
 04dc e7e08005 istore 1 ,contw 
-04dd 6fe0cc85 fetch 1 ,mem_mouse_le_pnp_len 
+04dd 6fe0cc20 fetch 1 ,mem_mouse_le_pnp_len 
 04de 1fe27200 copy pdata ,loopcnt 
-04df d8c04c86 arg mem_mouse_le_pnp_info ,contr 
+04df d8c04c21 arg mem_mouse_le_pnp_info ,contr 
 04e0 20207d5f branch memcpy 
 
 p_le_send_att_read_response_check_auth:
@@ -1911,7 +1911,7 @@
 057e 20200575 branch p_mouse_select_device 
 
 p_mouse_low_voltage_led_no_enter_lpm:
-057f 6fe0cc40 fetch 1 ,mem_mouse_led_new_interface_config 
+057f 6fe0cc04 fetch 1 ,mem_mouse_led_new_interface_config 
 0580 c301c990 bbit0 mouse_enable_low_led ,mouse_low_voltage_led_no_enter_lpm 
 
 p_mouse_low_voltage_led_no_enter_lpm_next:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/HaiQi_Project/SlideSwitch_2mode_2ch_T225/program/patch.prog	(revision 4514)
+++ /YC1308AC/branch/mouse_project/HaiQi_Project/SlideSwitch_2mode_2ch_T225/program/patch.prog	(working copy)
@@ -1,7 +1,4 @@
 
-//define FIRE_KEY
-//define RSSI_SORT
-//define DOUBLE_DPI_KEY
 define LOGO_LED
 //define G24_RETRANSMIT_DPI
 define PAIR_FAST_POWER_CTRL
@@ -100,10 +97,6 @@
 	ncall lpo_calibration,wake
 	call app_param_init
 	ncall p_led_num_check,wake
-ifdef RSSI_SORT
-	setarg mem_mouse_rssi_signal_buf_patch
-	store 2,mem_rssi_signal_buf_ptr	
-endif
 	call mouse_xtal_init		// 16M / 24M
 	branch soft_reset+3
 
@@ -524,35 +517,6 @@
 	call gpio_get_bit
 	branch mouse_select_btdevice,true
 	branch mouse_check_select_24g_device
-
-ifdef DOUBLE_DPI_KEY
-p_mouse_double_dpi_judge:
-	fetch MOUSE_FLAG_LEN,mem_mouse_flag
-	rtnbit0 MOUSE_ENABLE_DOUBLE_DPI_KEY
-	fetch 1,mem_dpi_another_button_gpio
-	bbit1 gpio_active_bit,p_mouse_another_dpi_connect_vin
-p_mouse_another_dpi_connect_gnd:
-	jam 0,mem_mouse_another_dpi_connect_vin_flag
-	rtn
-p_mouse_another_dpi_connect_vin:
-	jam 1,mem_mouse_another_dpi_connect_vin_flag
-	rtn
-endif
-	
-ifdef FIRE_KEY
-p_mouse_firebutton_connect_state_check:
-	fetch 1,mem_firebutton_gpio
-	rtneq GPIO_DISABLE
-	bbit1 gpio_active_bit,p_mouse_firebutton_connect_vin
-p_mouse_firebutton_connect_gnd:	
-	jam 0,mem_mouse_firebutton_connect_vin_flag
-	rtn
-p_mouse_firebutton_connect_vin:
-	set0 gpio_active_bit,pdata
-	store 1,mem_firebutton_gpio
-	jam 1,mem_mouse_firebutton_connect_vin_flag
-	rtn
-endif
 	
 p_mouse_le_name_load:
 	fetch 1,mem_le_name_patch_len
@@ -576,12 +540,6 @@
 	call p_mouse_param_init
 	call p_mouse_le_buff_modify
 	call p_mouse_device_multi_led_parm_init
-ifdef FIRE_KEY
-	call p_mouse_firebutton_connect_state_check
-endif	
-ifdef DOUBLE_DPI_KEY
-	call p_mouse_double_dpi_judge
-endif
 	call p_mouse_store_normal_tx_power
 	call le_set_config_fixed_ltk
 	call p_le_set_justwork
@@ -1912,13 +1870,6 @@
 
 //////////////////////////////modify key start///////////////////////////////////////////////
 p_mouse_key:
-ifdef FIRE_KEY
-	call p_mouse_check_firekey_gpio
-	fetch 1,mem_fire_key_flag
-	nbranch p_fire_key_press,blank
-	fetch 1,mem_fire_key_status
-	nbranch p_fire_key_process,blank
-endif
 	call p_mouse_check_key_gpio
 	branch mouse_key+1
 
@@ -1931,9 +1882,6 @@
 	call p_mouse_check_mkey_gpio
 	call p_mouse_check_bkkey_gpio
 	call p_mouse_check_fwkey_gpio
-ifdef FIRE_KEY	
-	call p_mouse_check_firekey_gpio
-endif
 	branch mouse_check_key_gpio_next
 
 p_mouse_check_lkey_gpio:
@@ -1997,104 +1945,12 @@
 p_mouse_gpio_config_output_low:
 	rtneq GPIO_DISABLE
 	arg gpcfg_output_low,temp
-	branch gpio_config_function_int	
-
-/////////////////////////////////////////////firekey start//////////////////////////////////////////
-
-ifdef FIRE_KEY
-p_mouse_check_firekey_gpio:
-	arg 0,regb
-	fetch 1,mem_firebutton_gpio
-	rtneq GPIO_DISABLE
-	fetch 1,mem_mouse_firebutton_connect_vin_flag
-	nbranch p_mouse_check_firekey_connect_vin,blank
-p_mouse_check_firekey_connect_gnd:
-	fetcht 1,mem_firebutton_gpio
-	call mouse_gpio_config_input_pu
-	fetcht 1,mem_firebutton_gpio
-	call gpio_get_bit
-	setflag true,0,regb
-p_mouse_firekey_state_store:	
-	copy regb,pdata
-	store 1,mem_fire_key_flag
-	rtn
-
-p_mouse_check_firekey_connect_vin:
-//	fetch 1,mem_firebutton_gpio
-//	set0 gpio_active_bit,pdata
-//	store 1,mem_firebutton_gpio
-	fetcht 1,mem_firebutton_gpio
-	call mouse_gpio_config_input_pd
-	fetcht 1,mem_firebutton_gpio
-	call gpio_get_bit
-	nsetflag true,0,regb
-	branch p_mouse_firekey_state_store
-
-p_fire_key_process: 
-	beq 4,p_fire_key_process_end
-p_fire_key_press:
-	call p_firekey_clkn_bt_timer_check 
-	fetch 4,mem_fire_key_delay
-	arg 0xa0,temp      
-	iadd temp,temp
-	copy clkn_bt,pdata
-	isub temp,null
-	nrtn positive
-	store 4,mem_fire_key_delay 
-	fetch 1,mem_fire_key_status
-	beq 0,p_fire_key_process_start
-	beq 1,p_fire_key_process_release1
-	beq 2,p_fire_key_process_start2
-	beq 3,p_fire_key_process_release2
-	rtn
-
-p_fire_key_process_start:
-	jam 1,mem_fire_key_status
-p_fire_key_down:
-	jam 1,mem_mouse_key
-	branch enable_user
-
-p_fire_key_process_release1:
-	jam 2,mem_fire_key_status
-p_fire_key_release:
-	jam 0,mem_mouse_key
-	branch enable_user
-
-p_fire_key_process_start2:
-	jam 3,mem_fire_key_status
-	branch p_fire_key_down
-
-p_fire_key_process_release2:
-	jam 0,mem_fire_key_status
-	branch p_fire_key_release
-
-p_fire_key_process_end:
-	jam 0,mem_fire_key_status
-	jam 0,mem_mouse_key
-	rtn
-
-p_firekey_clkn_bt_timer_check:
-	fetcht 4,mem_fire_key_delay
-	copy clkn_bt,pdata
-	isub temp,null
-	ncall p_firekey_clkn_bt_timer_timeout,positive
-	rtn
-p_firekey_clkn_bt_timer_timeout:
-	setarg 0
-	store 4,mem_fire_key_delay
-	rtn
-
-endif
-
-/////////////////////////////////////////////firekey end//////////////////////////////////////////
+	branch gpio_config_function_int
 
 p_mouse_idle:
 	call p_mouse_low_voltage_led_no_enter_lpm
 	call ui_check_paring_button
 	call p_mouse_dpi_check
-ifdef DOUBLE_DPI_KEY
-	call p_mouse_dpi_another_gpio_check
-endif
 	call mouse_select_device_check
 	call p_mouse_check_select_device_by_switch
 	branch mouse_idle+6
@@ -2157,97 +2013,11 @@
 	fetcht 1,mem_dpi_button_gpio
 	branch mouse_3io6key_check
 
-ifdef DOUBLE_DPI_KEY
-p_mouse_dpi_another_gpio_check:
-	fetch MOUSE_FLAG_LEN,mem_mouse_flag
-	rtnbit0 MOUSE_ENABLE_DOUBLE_DPI_KEY
-	fetch 1,mem_mouse_another_dpi_connect_vin_flag
-	nbranch p_mouse_dpi_another_gpio_connect_vin_check,blank
-p_mouse_dpi_another_gpio_connect_gnd_check:	
-	fetch 1,mem_dpi_another_button_gpio
-	call p_mouse_gpio_config_output_high
-	call p_mouse_dpi_another_check
-	fetcht 1,mem_dpi_another_button_gpio
-	branch mouse_gpio_config_input_pu	
-
-p_mouse_dpi_another_gpio_connect_vin_check:
-	fetch 1,mem_dpi_another_button_gpio
-	set0 gpio_active_bit,pdata
-	store 1,mem_dpi_another_button_gpio
-	call p_mouse_gpio_config_output_low
-	jam MOUSE_DPI_ANOTHER_KEY,mem_mouse_key_temp_patch
-	fetcht 1,mem_dpi_another_button_gpio
-	fetch 1,mem_dpi_another_press_status
-	call p_mouse_check_key_connect_vin_new
-	call p_mouse_dpi_another_state_check
-	fetcht 1,mem_dpi_another_button_gpio
-	branch mouse_gpio_config_input_pu	
-	
-p_mouse_dpi_another_check:
-	jam MOUSE_DPI_ANOTHER_KEY,mem_mouse_key_temp_patch
-	fetcht 1,mem_dpi_another_button_gpio
-	fetch 1,mem_dpi_another_press_status	
-	call p_mouse_check_key_connect_gnd_new
-p_mouse_dpi_another_state_check:
-	store 1,mem_dpi_another_press_status
-	fetch 1,mem_dpi_another_button_down_enable
-	branch p_mouse_dpi_another_up,blank	
-p_mouse_dpi_another_down:
-	fetch 1,mem_dpi_another_button_state
-	rtneq DPI_BUTTON_STATE_DOWN
-	jam DPI_BUTTON_STATE_DOWN,mem_dpi_another_button_state
-	branch mouse_dpi_process
-
-p_mouse_dpi_another_up:
-	fetch 1,mem_dpi_another_button_state
-	rtneq DPI_BUTTON_STATE_UP
-	jam DPI_BUTTON_STATE_UP,mem_dpi_another_button_state
-	rtn
-
-p_mouse_check_key_connect_gnd_new:	
-	lshift pdata,pdata
-	copy pdata,regb
-	call gpio_get_bit
-	setflag true,0,regb
-	and regb,0x07,pdata
-	fetcht 1,mem_mouse_key_temp_patch
-	copy temp,queue
-	beq 0x07,p_mouse_key_press		//  about 17~22ms three times
-	beq 0x00,p_mouse_key_release
-	rtn
-
-p_mouse_check_key_connect_vin_new:	
-	lshift pdata,pdata
-	copy pdata,regb
-	call mouse_gpio_config_input_pd
-	call gpio_get_bit
-	setflag true,0,regb
-	and regb,0x07,pdata
-	fetcht 1,mem_mouse_key_temp_patch
-	copy temp,queue
-	beq 0x07,p_mouse_key_press		//  about 17~22ms three times
-	beq 0x00,p_mouse_key_release
-	rtn
-
-p_mouse_key_press:
-	jam 1,mem_dpi_another_button_down_enable
-	rtn
-p_mouse_key_release:
-	jam 0,mem_dpi_another_button_down_enable
-	rtn
-endif
-
 p_mouse_dpi_process:
 	call mouse_dpi_ghost_check
 	rtn user
 p_mouse_dpi_process_next:
 	fetch 1,mem_mouse_dpi
-ifdef DOUBLE_DPI_KEY
-	copy pdata,temp
-	fetch MOUSE_FLAG_LEN,mem_mouse_flag
-	bbit1 MOUSE_ENABLE_DOUBLE_DPI_KEY,p_mouse_double_dpi_check
-	copy temp,pdata
-endif
 	increase 1,pdata
 	and pdata,0x03,pdata
 p_mouse_dpi_store:
@@ -2255,59 +2025,6 @@
 	call p_mouse_seting_dpi
 	branch mouse_store_eerpom_dpi
 
-ifdef DOUBLE_DPI_KEY
-p_mouse_double_dpi_check:
-	fetch 1,mem_dpi_another_button_down_enable
-	nbranch p_mouse_another_dpi_button_down,blank
-p_mouse_dpi_increase:
-	fetch MOUSE_FLAG_LEN,mem_mouse_flag
-	bbit1 MOUSE_ENABLE_DPI_LEVEL_4,p_mouse_dpi_increase_level_4
-	copy temp,pdata
-	rtneq MOUSE_DPI_LEVEL2
-p_mouse_dpi_increase_level:
-	beq MOUSE_DPI_LEVEL1,p_mouse_dpi_level_3	//1600
-	beq MOUSE_DPI_LEVEL3,p_mouse_dpi_level_2 	//1200
-	rtn
-
-p_mouse_dpi_level_1:		//800
-	setarg 2
-	branch p_mouse_dpi_store
-p_mouse_dpi_level_2:		//1200
-	setarg 0
-	branch p_mouse_dpi_store
-p_mouse_dpi_level_3:		//1600
-	setarg 1
-	branch p_mouse_dpi_store
-p_mouse_dpi_level_4:		//1000
-	setarg 3
-	branch p_mouse_dpi_store
-
-p_mouse_dpi_increase_level_4:
-	copy temp,pdata			//0->1,2->3,3->0
-	rtneq MOUSE_DPI_LEVEL2
-	beq MOUSE_DPI_LEVEL1,p_mouse_dpi_level_3
-	beq MOUSE_DPI_LEVEL3,p_mouse_dpi_level_4
-	beq MOUSE_DPI_LEVEL4,p_mouse_dpi_level_2
-	rtn
-p_mouse_dpi_decrease_level_4:
-	copy temp,pdata			//0->3,1->0,3->2
-	rtneq MOUSE_DPI_LEVEL3
-	beq MOUSE_DPI_LEVEL1,p_mouse_dpi_level_4
-	beq MOUSE_DPI_LEVEL2,p_mouse_dpi_level_2
-	beq MOUSE_DPI_LEVEL4,p_mouse_dpi_level_1
-	rtn
-
-p_mouse_another_dpi_button_down:
-p_mouse_dpi_decrease:
-	fetch MOUSE_FLAG_LEN,mem_mouse_flag
-	bbit1 MOUSE_ENABLE_DPI_LEVEL_4,p_mouse_dpi_decrease_level_4
-	copy temp,pdata
-	rtneq MOUSE_DPI_LEVEL3
-p_mouse_dpi_decrease_level:
-	beq MOUSE_DPI_LEVEL1,p_mouse_dpi_level_1
-	beq MOUSE_DPI_LEVEL2,p_mouse_dpi_level_2
-	rtn
-endif
 //////////////////////////////modify key end///////////////////////////////////////////////
 
 p_power_ctrl_start:
@@ -2315,13 +2032,8 @@
 	rtnbit1 UI_STATE_BLE_ADV
 	rtnbit1 UI_STATE_BT_RECONNECT
 	rtnbit1 UI_STATE_BT_DISCOVERY	
-ifdef RSSI_SORT
-	call p_rssi_sort
-	call p_rssi_average
-else
 	fetchr rega,2,mem_rssi_signal_buf_ptr
 	call rssi_average
-endif
 	storet 1,mem_rssi_avg_received
 
 ifndef DISTANCE_DISCON
@@ -2382,53 +2094,4 @@
 	rtn
 endif
 
-ifdef RSSI_SORT
-p_rssi_average:
-	arg mem_mouse_rssi_signal_buf_temp+6,rega
-	arg 10,pdata
-	branch rssi_average+2
-
-p_rssi_sort:
-	call p_memcpy16
-	arg mem_mouse_rssi_signal_buf_temp,regb
-	fetch 1,mem_rssi_buff_index
-	increase 1,pdata
-	copy pdata,loopcnt
-	branch p_bubble_sort
-
-p_memcpy16:
-	arg mem_mouse_rssi_signal_buf_patch,contr
-	arg mem_mouse_rssi_signal_buf_temp,contw
-	branch memcpy16
-
-//input:regb buff ptr,pdata buff length
-p_bubble_sort:
-	increase -1,loopcnt
-	deposit loopcnt
-	rtn blank
-p_external_loop:
-	copy loopcnt,rega
-	increase -1,rega
-	copy regb,contr
-p_internal_loop:
-	ifetch 1,contr
-	copy contr,contw
-	ifetcht 1,contr
-	isub temp,null
-	call p_sort_up
-	increase -1,contr
-	increase -1,rega
-	branch p_internal_loop,positive
-	loop p_external_loop
-	rtn
-p_sort_up:
-	call p_exchange_data,positive
-	rtn
-p_exchange_data:
-	increase -1,contw
-	istoret 1,contw
-	istore 1,contw
-	rtn
-endif
-
 	
Index: sched/mouse.dat
===================================================================
--- /YC1308AC/branch/mouse_project/HaiQi_Project/SlideSwitch_2mode_2ch_T225/sched/mouse.dat	(revision 4514)
+++ /YC1308AC/branch/mouse_project/HaiQi_Project/SlideSwitch_2mode_2ch_T225/sched/mouse.dat	(working copy)
@@ -119,7 +119,6 @@
 mem_bk_button_gpio:ff
 mem_fw_button_gpio:ff
 mem_dpi_button_gpio:10
-mem_dpi_another_button_gpio:ff
 mem_matrix_public_gpio:ff
 mem_sensor_motion_gpio:ff
 mem_customer_key_gpio:ff
@@ -141,7 +140,6 @@
 mem_config_low_voltage_alarm_gpio:ff
 mem_config_device_bt2_led_gpio:ff
 mem_dpi_led_gpio:ff #03
-mem_firebutton_gpio:ff
 
 mem_sensor_angle_default:02	#00--6CLK   01--9CLK   02--12CLK   03--3CLK
 mem_sensor_angle_switch:02	#00--6CLK   01--9CLK   02--12CLK   03--3CLK
