Index: format/bt.format
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/format/bt.format	(revision 468)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/format/bt.format	(working copy)
@@ -410,6 +410,7 @@
 0x85 TX_POWER_F5DB
 0x94 TX_POWER_F20DB
 0x9e TX_POWER_F30DB
+0x9f TX_POWER_PAIR 
 )
 
 
Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/output/eeprom.dat	(revision 468)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/output/eeprom.dat	(working copy)
@@ -2,64 +2,68 @@
 02
 aa
 55
-ea
-03
+5a
+04
 c2
 84
 00
-0d
+0e
 c0
 00
 00
-0f
+10
+c0
+45
+01
+10
 c0
 45
 80
-67
+63
 c0
 4f
 80
-65
+61
 c0
 57
 00
-13
+14
 c0
 61
 80
-24
+25
 c0
 64
 80
-72
+76
 c0
 65
 00
-82
+86
 c0
 67
 00
-a0
+b6
 c0
 68
 00
-b9
+cf
 c0
 6b
 00
-98
+9c
 c0
 6c
 80
-ca
+e0
 20
 20
 13
 7c
 c0
 10
-80
-f8
+81
+0e
 20
 20
 13
@@ -87,15 +91,15 @@
 20
 40
 00
-18
+19
 20
 40
 00
-47
+43
 20
 40
 00
-20
+21
 20
 20
 3b
@@ -149,21 +153,13 @@
 5c
 af
 6f
-e4
-4b
-ab
-c2
-97
-c8
-0a
-6f
 e0
 c9
 38
 c0
 00
 00
-2b
+2a
 20
 40
 3d
@@ -199,7 +195,7 @@
 20
 40
 00
-42
+3e
 1f
 e1
 7e
@@ -220,18 +216,6 @@
 20
 48
 0c
-20
-40
-00
-39
-20
-34
-48
-12
-20
-20
-48
-06
 df
 20
 00
@@ -263,7 +247,7 @@
 c2
 00
 00
-3d
+39
 20
 60
 00
@@ -311,7 +295,7 @@
 20
 40
 00
-51
+4d
 68
 48
 c9
@@ -323,7 +307,7 @@
 20
 40
 00
-61
+5d
 20
 20
 3b
@@ -456,10 +440,42 @@
 8a
 83
 90
+6f
+e0
+c0
+c5
+c0
+84
+00
+70
+70
+8a
+08
+34
+70
+8a
+01
+ff
+20
+00
+00
+64
+70
+8a
+02
+0e
+70
+8a
+00
+03
+20
+40
+01
+13
 20
 20
 12
-5d
+65
 20
 40
 42
@@ -479,7 +495,7 @@
 c0
 7f
 80
-7b
+7f
 68
 48
 c9
@@ -519,7 +535,7 @@
 20
 40
 00
-dc
+f2
 20
 20
 3e
@@ -617,17 +633,89 @@
 7e
 00
 c0
+1d
+00
+a0
+c0
 1e
 00
-9b
+ae
 20
 20
 43
 36
 6f
+e0
+c8
+a5
+24
+3a
+47
+e1
+6f
+e0
+c8
+8b
+c0
+01
+00
+a7
+c0
+02
+48
+44
+c0
+01
+c8
+49
+20
+20
+48
+39
+6f
+e4
+4b
+ab
+c2
+97
+80
+ab
+c2
+98
+48
+11
+20
+20
+48
+06
+20
+40
+00
+35
+20
+34
+48
+12
+20
+20
+48
+06
+6f
 e2
 48
 3c
+68
+4a
+48
+8d
+98
+46
+7c
+00
+20
+22
+80
+b4
 67
 e2
 48
@@ -687,7 +775,7 @@
 24
 34
 00
-ae
+c4
 20
 40
 47
@@ -695,7 +783,7 @@
 20
 40
 00
-b1
+c7
 20
 20
 45
@@ -751,7 +839,7 @@
 20
 40
 00
-bc
+d2
 20
 20
 40
@@ -803,7 +891,7 @@
 20
 3a
 00
-e3
+f9
 67
 e0
 cb
@@ -839,11 +927,11 @@
 20
 40
 00
-e0
+f6
 20
 40
 00
-d3
+e9
 20
 20
 44
@@ -879,7 +967,7 @@
 da
 40
 00
-dc
+f2
 20
 20
 31
@@ -907,7 +995,7 @@
 da
 40
 00
-e3
+f9
 20
 20
 31
@@ -962,12 +1050,12 @@
 03
 20
 41
-00
-f2
+01
+08
 24
 41
-00
-f6
+01
+0c
 20
 20
 48
@@ -1004,8 +1092,32 @@
 20
 5c
 b6
-dc
-91
+6f
+e0
+c1
+e8
+c0
+4f
+81
+13
+20
+20
+12
+1f
+70
+8a
+39
+05
+70
+8a
+3a
+00
+20
+20
+12
+2a
+24
+77
 aa
 55
 40
@@ -1029,7 +1141,7 @@
 00
 00
 00
-08
+0c
 00
 80
 00
@@ -1153,7 +1265,7 @@
 6a
 00
 00
-00
+80
 02
 03
 aa
@@ -1168,7 +1280,7 @@
 02
 64
 64
-94
+9f
 85
 90
 63
@@ -2167,120 +2279,8 @@
 e8
 41
 01
-b6
-43
-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
-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
-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
-ff
+3f
+86
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-f7
-16
+28
+69
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/output/program.lis	(revision 468)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/output/program.lis	(working copy)
@@ -1,329 +1,371 @@
               include "bt_format "
               org 0x0000
-0000 c284000d bbit1 8 ,pf_patch_ext 
-0001 c000000f beq patch00_0 ,p_soft_reset 
-0002 c0458067 beq patch11_3 ,p_initialize_radio_cont 
-0003 c04f8065 beq patch13_7 ,p_init_param 
-0004 c0570013 beq patch15_6 ,p_app_init 
-0005 c0618024 beq patch18_3 ,p_mouse_start_work 
-0006 c0648072 beq patch19_1 ,p_mouse_setgpio_hibernate 
-0007 c0650082 beq patch19_2 ,p_mouse_lpm_before_common 
-0008 c06700a0 beq patch19_6 ,p_mouse_motion 
-0009 c06800b9 beq patch1a_0 ,p_mouse_seting_dpi 
-000a c06b0098 beq patch1a_6 ,p_mouse_priority_bb_event 
-000b c06c80ca beq patch1b_1 ,p_mouse_bb_event_timer 
-000c 2020137c branch loop 
+0000 c284000e bbit1 8 ,pf_patch_ext 
+0001 c0000010 beq patch00_0 ,p_soft_reset 
+0002 c0450110 beq patch11_2 ,p_txon 
+0003 c0458063 beq patch11_3 ,p_initialize_radio_cont 
+0004 c04f8061 beq patch13_7 ,p_init_param 
+0005 c0570014 beq patch15_6 ,p_app_init 
+0006 c0618025 beq patch18_3 ,p_mouse_start_work 
+0007 c0648076 beq patch19_1 ,p_mouse_setgpio_hibernate 
+0008 c0650086 beq patch19_2 ,p_mouse_lpm_before_common 
+0009 c06700b6 beq patch19_6 ,p_mouse_motion 
+000a c06800cf beq patch1a_0 ,p_mouse_seting_dpi 
+000b c06b009c beq patch1a_6 ,p_mouse_priority_bb_event 
+000c c06c80e0 beq patch1b_1 ,p_mouse_bb_event_timer 
+000d 2020137c branch loop 
 
 pf_patch_ext:
-000d c01080f8 beq patch24_1 ,p_spid_init 
-000e 2020137c branch loop 
+000e c010810e beq patch24_1 ,p_spid_init 
+000f 2020137c branch loop 
 
 p_soft_reset:
-000f 20800000 clear_stack 
-0010 204030f3 call app_param_init 
-0011 20403bfd call mouse_xtal_init 
-0012 20200804 branch soft_reset + 3 
+0010 20800000 clear_stack 
+0011 204030f3 call app_param_init 
+0012 20403bfd call mouse_xtal_init 
+0013 20200804 branch soft_reset + 3 
 
 p_app_init:
 
 p_mouse_init:
-0013 20406df3 call enable_authrom 
-0014 20400018 call p_mouse_wheel_set_wakeup 
-0015 20400047 call p_mouse_setting_config 
-0016 20400020 call p_lpm_write_ice_disable 
-0017 20203bc2 branch mouse_init + 1 
+0014 20406df3 call enable_authrom 
+0015 20400019 call p_mouse_wheel_set_wakeup 
+0016 20400043 call p_mouse_setting_config 
+0017 20400021 call p_lpm_write_ice_disable 
+0018 20203bc2 branch mouse_init + 1 
 
 p_mouse_wheel_set_wakeup:
-0018 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
-0019 207a0000 rtn blank 
-001a 6fe0c913 fetch 1 ,mem_whee_a_data_gpio 
-001b d8400040 arg gpcfg_pullup ,temp 
-001c 20406093 call gpio_config_function_int 
-001d 6fe0c914 fetch 1 ,mem_whee_b_data_gpio 
-001e d8400040 arg gpcfg_pullup ,temp 
-001f 20206093 branch gpio_config_function_int 
+0019 6fe0cbe1 fetch 1 ,mem_sensor_shutdown_flag 
+001a 207a0000 rtn blank 
+001b 6fe0c913 fetch 1 ,mem_whee_a_data_gpio 
+001c d8400040 arg gpcfg_pullup ,temp 
+001d 20406093 call gpio_config_function_int 
+001e 6fe0c914 fetch 1 ,mem_whee_b_data_gpio 
+001f d8400040 arg gpcfg_pullup ,temp 
+0020 20206093 branch gpio_config_function_int 
 
 p_lpm_write_ice_disable:
-0020 6ff10120 fetch 2 ,core_ucode_flag 
-0021 793ffe0e set0 lpmreg_ice_mode_bit ,pdata 
-0022 67f2004c store 4 ,core_lpm_reg 
-0023 20205caf branch lpm_write2_ctrl_option 
+0021 6ff10120 fetch 2 ,core_ucode_flag 
+0022 793ffe0e set0 lpmreg_ice_mode_bit ,pdata 
+0023 67f2004c store 4 ,core_lpm_reg 
+0024 20205caf branch lpm_write2_ctrl_option 
 
 p_mouse_start_work:
-0024 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-0025 c297c80a bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
-0026 6fe0c938 fetch 1 ,mem_device_flag 
-0027 c000002b beq mode_24g_device ,p_mouse_24g_start_mode 
-0028 20403d65 call mouse_wakeup_from_power_check 
-0029 243442eb nbranch mouse_buletooth_fast_conn_init ,user 
-002a 20203d59 branch mouse_start_reconnect_device 
+0025 6fe0c938 fetch 1 ,mem_device_flag 
+0026 c000002a beq mode_24g_device ,p_mouse_24g_start_mode 
+0027 20403d65 call mouse_wakeup_from_power_check 
+0028 243442eb nbranch mouse_buletooth_fast_conn_init ,user 
+0029 20203d59 branch mouse_start_reconnect_device 
 
 p_mouse_24g_start_mode:
-002b 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-002c c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
-002d 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-002e c298480c bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
-002f c318c80c bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
-0030 20400042 call p_mouse_key_check_once 
-0031 1fe17e07 and pdata ,0x07 ,pdata 
-0032 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
-0033 98467c00 isub temp ,null 
-0034 2022c827 branch mouse_24g_start_pair_mode ,zero 
-0035 2020480c branch mouse_24g_reconn_general_dongle 
-
-p_mouse_24g_reconn_dongle_start:
-0036 20400039 call p_g24_factory_check 
-0037 20344812 branch mouse_24g_start_auto_pair_next ,user 
-0038 20204806 branch mouse_24g_reconn_dongle_start 
+002a 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+002b c308c803 bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
+002c 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+002d c298480c bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
+002e c318c80c bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
+002f 2040003e call p_mouse_key_check_once 
+0030 1fe17e07 and pdata ,0x07 ,pdata 
+0031 6848cbcb fetcht 1 ,mem_mouse_commbination_key_24g 
+0032 98467c00 isub temp ,null 
+0033 2022c827 branch mouse_24g_start_pair_mode ,zero 
+0034 2020480c branch mouse_24g_reconn_general_dongle 
 
 p_g24_factory_check:
-0039 df200002 arg 2 ,loopcnt 
-003a d8c04993 arg mem_mouse_24g_addr ,contr 
+0035 df200002 arg 2 ,loopcnt 
+0036 d8c04993 arg mem_mouse_24g_addr ,contr 
 
 p_pdata_0xff_check:
-003b 20407e54 call enable_user 
-003c 5800ffff setarg 0xffff 
+0037 20407e54 call enable_user 
+0038 5800ffff setarg 0xffff 
 
 p_pdata_0xff_check_loop:
-003d e8410006 ifetcht 2 ,contr 
-003e 98467c00 isub temp ,null 
-003f 2442fe56 ncall disable_user ,zero 
-0040 c200003d loop p_pdata_0xff_check_loop 
-0041 20600000 rtn 
+0039 e8410006 ifetcht 2 ,contr 
+003a 98467c00 isub temp ,null 
+003b 2442fe56 ncall disable_user ,zero 
+003c c2000039 loop p_pdata_0xff_check_loop 
+003d 20600000 rtn 
 
 p_mouse_key_check_once:
-0042 20404121 call mouse_check_key_gpio_once 
-0043 20404115 call mouse_check_key_gpio 
-0044 d8400000 arg 0 ,temp 
-0045 6049cb8e storet 3 ,mem_mouse_lkey_press_status 
-0046 20600000 rtn 
+003e 20404121 call mouse_check_key_gpio_once 
+003f 20404115 call mouse_check_key_gpio 
+0040 d8400000 arg 0 ,temp 
+0041 6049cb8e storet 3 ,mem_mouse_lkey_press_status 
+0042 20600000 rtn 
 
 p_mouse_setting_config:
-0047 20758000 rtn wake 
-0048 20402607 call g24_transmit_init 
-0049 204022ff call g24_chmap_param_init 
-004a 20403f1e call mouse_gpio_init 
-004b 20403d13 call mouse_param_init 
-004c 20400051 call p_mouse_sensor_set_angle 
-004d 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-004e 20406050 call gpio_config_input 
-004f 20400061 call p_ice_gpio_set_float 
-0050 20203bf5 branch mouse_setting_config_next 
+0043 20758000 rtn wake 
+0044 20402607 call g24_transmit_init 
+0045 204022ff call g24_chmap_param_init 
+0046 20403f1e call mouse_gpio_init 
+0047 20403d13 call mouse_param_init 
+0048 2040004d call p_mouse_sensor_set_angle 
+0049 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+004a 20406050 call gpio_config_input 
+004b 2040005d call p_ice_gpio_set_float 
+004c 20203bf5 branch mouse_setting_config_next 
 
 p_mouse_sensor_set_angle:
-0051 6fe0c924 fetch 1 ,mem_sensor_angle_default 
-0052 67e0c928 store 1 ,mem_config_sensor_angle 
-0053 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-0054 c17f8000 rtneq gpio_disable 
-0055 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
-0056 d840003e arg gpcfg_output_low ,temp 
-0057 20406093 call gpio_config_function_int 
-0058 6fe0cbe2 fetch 1 ,mem_mouse_reuse_2ice_gpio 
-0059 d840003e arg gpcfg_output_low ,temp 
-005a 20406093 call gpio_config_function_int 
-005b 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-005c 20403f56 call mouse_gpio_config_input_pu 
-005d 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-005e 20406059 call gpio_get_bit 
-005f 2440c2aa ncall mouse_sensor_switch_angle ,true 
-0060 20203f54 branch mouse_gpio_config_input_pd 
+004d 6fe0c924 fetch 1 ,mem_sensor_angle_default 
+004e 67e0c928 store 1 ,mem_config_sensor_angle 
+004f 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
+0050 c17f8000 rtneq gpio_disable 
+0051 6fe0c917 fetch 1 ,mem_select_sensor_angle_gpio 
+0052 d840003e arg gpcfg_output_low ,temp 
+0053 20406093 call gpio_config_function_int 
+0054 6fe0cbe2 fetch 1 ,mem_mouse_reuse_2ice_gpio 
+0055 d840003e arg gpcfg_output_low ,temp 
+0056 20406093 call gpio_config_function_int 
+0057 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+0058 20403f56 call mouse_gpio_config_input_pu 
+0059 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+005a 20406059 call gpio_get_bit 
+005b 2440c2aa ncall mouse_sensor_switch_angle ,true 
+005c 20203f54 branch mouse_gpio_config_input_pd 
 
 p_ice_gpio_set_float:
-0061 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
-0062 2040607f call gpio_set_high_impedance 
-0063 6848cbe2 fetcht 1 ,mem_mouse_reuse_2ice_gpio 
-0064 2020607f branch gpio_set_high_impedance 
+005d 6848c917 fetcht 1 ,mem_select_sensor_angle_gpio 
+005e 2040607f call gpio_set_high_impedance 
+005f 6848cbe2 fetcht 1 ,mem_mouse_reuse_2ice_gpio 
+0060 2020607f branch gpio_set_high_impedance 
 
 p_init_param:
-0065 70008000 jam 0 ,mem_lmo_tid2 
-0066 202013b7 branch init_param_next + 1 
+0061 70008000 jam 0 ,mem_lmo_tid2 
+0062 202013b7 branch init_param_next + 1 
 
 p_initialize_radio_cont:
-0067 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
-0068 2040126a call initialize_syn_afc_cfg1 
-0069 20401271 call initialize_rf_ldo_cfg1 
-006a 20401277 call initialize_rc_cal 
-006b 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
-006c 708a0305 jam 5 ,core_clkpll_cfg0 
-006d 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
-006e 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
-006f 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
-0070 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
-0071 2020125d branch initialize_radio_cont + 8 
+0063 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
+0064 2040126a call initialize_syn_afc_cfg1 
+0065 20401271 call initialize_rf_ldo_cfg1 
+0066 20401277 call initialize_rc_cal 
+0067 708a6d09 jam 0x09 ,core_rx_bq_cfg0 
+0068 708a0305 jam 5 ,core_clkpll_cfg0 
+0069 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
+006a 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
+006b 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
+006c 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
+006d 6fe0c0c5 fetch 1 ,mem_fcomp_div 
+006e c0840070 bne xtal_16m ,p_initialize_radio_cont_next 
+006f 708a0834 jam 0x34 ,core_clkpll_cfg5 
+
+p_initialize_radio_cont_next:
+0070 708a01ff jam 0xff ,core_clkpll_ctrl1 
+0071 20000064 nop 100 
+0072 708a020e jam 0x0e ,core_clkpll_ctrl2 
+0073 708a0003 jam 0x03 ,core_clkpll_ctrl0 
+0074 20400113 call p_set_tx_power_pair 
+0075 20201265 branch initialize_radio_cont_next2 
 
 p_mouse_setgpio_hibernate:
-0072 204042e9 call mouse_set_sdio_high 
-0073 20407fdc call clear_wake 
-0074 20404015 call mouse_before_hibernate_wheel_gpio_set 
-0075 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
-0076 c07f807b beq gpio_disable ,p_mouse_setgpio_hibernate_skip_public_gpio 
-0077 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-0078 20406069 call gpio_out_active 
-0079 6848c910 fetcht 1 ,mem_matrix_public_gpio 
-007a 20406042 call gpio_clr_wake 
+0076 204042e9 call mouse_set_sdio_high 
+0077 20407fdc call clear_wake 
+0078 20404015 call mouse_before_hibernate_wheel_gpio_set 
+0079 6fe0c910 fetch 1 ,mem_matrix_public_gpio 
+007a c07f807f beq gpio_disable ,p_mouse_setgpio_hibernate_skip_public_gpio 
+007b 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+007c 20406069 call gpio_out_active 
+007d 6848c910 fetcht 1 ,mem_matrix_public_gpio 
+007e 20406042 call gpio_clr_wake 
 
 p_mouse_setgpio_hibernate_skip_public_gpio:
-007b 6848cbe2 fetcht 1 ,mem_mouse_reuse_2ice_gpio 
-007c 20403f56 call mouse_gpio_config_input_pu 
-007d 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
-007e d840003f arg gpcfg_output_high ,temp 
-007f 20406093 call gpio_config_function_int 
-0080 204000dc call p_mouse_logo_led_on_timeout 
-0081 20203e36 branch mouse_setgpio_hibernate + 3 
+007f 6848cbe2 fetcht 1 ,mem_mouse_reuse_2ice_gpio 
+0080 20403f56 call mouse_gpio_config_input_pu 
+0081 6fe0c920 fetch 1 ,mem_mouse_sensor_sdio_gpio 
+0082 d840003f arg gpcfg_output_high ,temp 
+0083 20406093 call gpio_config_function_int 
+0084 204000f2 call p_mouse_logo_led_on_timeout 
+0085 20203e36 branch mouse_setgpio_hibernate + 3 
 
 p_mouse_lpm_before_common:
-0082 20403f88 call mouse_wheel_check 
-0083 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
-0084 d840003f arg gpcfg_output_high ,temp 
-0085 20406093 call gpio_config_function_int 
-0086 6fe080a1 fetch 1 ,mem_gpio_wakeup_low + 2 
-0087 793ffe03 set0 3 ,pdata 
-0088 67e080a1 store 1 ,mem_gpio_wakeup_low + 2 
-0089 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
-008a 20406042 call gpio_clr_wake 
-008b 20405b04 call twspi_disable 
-008c 6848c918 fetcht 1 ,mem_lbutton_gpio 
-008d 20406036 call gpio_set_wake 
-008e 6848c919 fetcht 1 ,mem_rbutton_gpio 
-008f 20406036 call gpio_set_wake 
-0090 6848c91a fetcht 1 ,mem_mbutton_gpio 
+0086 20403f88 call mouse_wheel_check 
+0087 6fe0c91f fetch 1 ,mem_mouse_sensor_sclk_gpio 
+0088 d840003f arg gpcfg_output_high ,temp 
+0089 20406093 call gpio_config_function_int 
+008a 6fe080a1 fetch 1 ,mem_gpio_wakeup_low + 2 
+008b 793ffe03 set0 3 ,pdata 
+008c 67e080a1 store 1 ,mem_gpio_wakeup_low + 2 
+008d 6848c920 fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+008e 20406042 call gpio_clr_wake 
+008f 20405b04 call twspi_disable 
+0090 6848c918 fetcht 1 ,mem_lbutton_gpio 
 0091 20406036 call gpio_set_wake 
-0092 6848c90d fetcht 1 ,mem_bk_button_gpio 
+0092 6848c919 fetcht 1 ,mem_rbutton_gpio 
 0093 20406036 call gpio_set_wake 
-0094 6848c90e fetcht 1 ,mem_fw_button_gpio 
+0094 6848c91a fetcht 1 ,mem_mbutton_gpio 
 0095 20406036 call gpio_set_wake 
-0096 6848c90f fetcht 1 ,mem_dpi_button_gpio 
-0097 20206036 branch gpio_set_wake 
+0096 6848c90d fetcht 1 ,mem_bk_button_gpio 
+0097 20406036 call gpio_set_wake 
+0098 6848c90e fetcht 1 ,mem_fw_button_gpio 
+0099 20406036 call gpio_set_wake 
+009a 6848c90f fetcht 1 ,mem_dpi_button_gpio 
+009b 20206036 branch gpio_set_wake 
 
 p_mouse_priority_bb_event:
-0098 1a627e00 copy regc ,pdata 
-0099 c01e009b beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
-009a 20204336 branch mouse_priority_bb_event + 2 
+009c 1a627e00 copy regc ,pdata 
+009d c01d00a0 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
+009e c01e00ae beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+009f 20204336 branch mouse_priority_bb_event + 2 
+
+p_mouse_24g_attempt_fail:
+00a0 6fe0c8a5 fetch 1 ,mem_24g_attempt_fail_flag 
+00a1 243a47e1 nbranch mouse_24g_hibernate_set ,blank 
+
+p_mouse_24g_attempt_fail_next:
+00a2 6fe0c88b fetch 1 ,mem_24g_reconn_type 
+00a3 c00100a7 beq fast_conn_and_3_0_addr ,p_mouse_24g_fast_conn_attempt_fail 
+00a4 c0024844 beq pair_and_3_0_addr ,mouse_24g_auto_pair_attempt_fail 
+00a5 c001c849 beq receiver_and_3_0_addr ,mouse_reconn_dongle_attempt_fail 
+00a6 20204839 branch mouse_24g_attempt_fail_enter_hibernate 
+
+p_mouse_24g_fast_conn_attempt_fail:
+00a7 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+00a8 c29780ab bbit1 mouse_enable_24g_first_auto_pairing ,p_mouse_24g_start_auto_pair 
+00a9 c2984811 bbit1 mouse_enable_auto_24g_paring ,mouse_24g_start_auto_pair 
+00aa 20204806 branch mouse_24g_reconn_dongle_start 
+
+p_mouse_24g_start_auto_pair:
+00ab 20400035 call p_g24_factory_check 
+00ac 20344812 branch mouse_24g_start_auto_pair_next ,user 
+00ad 20204806 branch mouse_24g_reconn_dongle_start 
 
 p_mouse_24g_attempt_success:
-009b 6fe2483c fetch 4 ,mem_24g_addr 
-009c 67e24891 store 4 ,mem_24g_receiver_addr 
-009d 67e24993 store 4 ,mem_mouse_24g_addr 
-009e 204048c6 call mouse_device_poweron_timer_init 
-009f 2020484e branch mouse_24g_attempt_success 
+00ae 6fe2483c fetch 4 ,mem_24g_addr 
+00af 684a488d fetcht 4 ,mem_24g_fast_conn_addr 
+00b0 98467c00 isub temp ,null 
+00b1 202280b4 branch p_mouse_24g_attempt_success_skip_store_addr ,zero 
+00b2 67e24891 store 4 ,mem_24g_receiver_addr 
+00b3 67e24993 store 4 ,mem_mouse_24g_addr 
+
+p_mouse_24g_attempt_success_skip_store_addr:
+00b4 204048c6 call mouse_device_poweron_timer_init 
+00b5 2020484e branch mouse_24g_attempt_success 
 
 p_mouse_motion:
-00a0 78547c00 disable user 
-00a1 58000000 setarg 0 
-00a2 67e348d1 store 6 ,mem_mouse_x 
-00a3 20404240 call mouse_check_sensor_data 
-00a4 20403f7e call mouse_zwheel 
-00a5 20403f83 call mouse_t_zwheel 
-00a6 204040dc call mouse_key 
-00a7 6fe0c8d0 fetch 1 ,mem_mouse_key 
-00a8 1fe17e1f and_into 0x1f ,pdata 
-00a9 67e0c8d0 store 1 ,mem_mouse_key 
-00aa 243400ae nbranch p_mouse_motion_nodata ,user 
-00ab 2040471a call mouse_drawing_optima 
-00ac 204000b1 call p_mouse_logo_led_on_check 
-00ad 20204544 branch mouse_no_data_timer_init 
+00b6 78547c00 disable user 
+00b7 58000000 setarg 0 
+00b8 67e348d1 store 6 ,mem_mouse_x 
+00b9 20404240 call mouse_check_sensor_data 
+00ba 20403f7e call mouse_zwheel 
+00bb 20403f83 call mouse_t_zwheel 
+00bc 204040dc call mouse_key 
+00bd 6fe0c8d0 fetch 1 ,mem_mouse_key 
+00be 1fe17e1f and_into 0x1f ,pdata 
+00bf 67e0c8d0 store 1 ,mem_mouse_key 
+00c0 243400c4 nbranch p_mouse_motion_nodata ,user 
+00c1 2040471a call mouse_drawing_optima 
+00c2 204000c7 call p_mouse_logo_led_on_check 
+00c3 20204544 branch mouse_no_data_timer_init 
 
 p_mouse_motion_nodata:
-00ae 20404728 call mouse_drawing_optima_init 
-00af 704be400 jam 0 ,mem_mouse_logo_led_on_check_count 
-00b0 20600000 rtn 
+00c4 20404728 call mouse_drawing_optima_init 
+00c5 704be400 jam 0 ,mem_mouse_logo_led_on_check_count 
+00c6 20600000 rtn 
 
 p_mouse_logo_led_on_check:
-00b1 6fe0cbe4 fetch 1 ,mem_mouse_logo_led_on_check_count 
-00b2 1fe0fe01 increase 1 ,pdata 
-00b3 67e0cbe4 store 1 ,mem_mouse_logo_led_on_check_count 
-00b4 1fe67c08 sub pdata ,low_voltage_led_count ,null 
-00b5 20610000 rtn positive 
+00c7 6fe0cbe4 fetch 1 ,mem_mouse_logo_led_on_check_count 
+00c8 1fe0fe01 increase 1 ,pdata 
+00c9 67e0cbe4 store 1 ,mem_mouse_logo_led_on_check_count 
+00ca 1fe67c08 sub pdata ,low_voltage_led_count ,null 
+00cb 20610000 rtn positive 
 
 p_mouse_logo_led_on:
-00b6 58000258 setarg 0x0258 
-00b7 67e14be5 store 2 ,mem_mouse_logo_led_on_timer 
-00b8 20600000 rtn 
+00cc 58000258 setarg 0x0258 
+00cd 67e14be5 store 2 ,mem_mouse_logo_led_on_timer 
+00ce 20600000 rtn 
 
 p_mouse_seting_dpi:
-00b9 2040408f call mouse_setting_dpi_4_level 
-00ba 204000bc call p_mouse_dpi_led_blink_delay 
-00bb 20204098 branch mouse_seting_sensor_type 
+00cf 2040408f call mouse_setting_dpi_4_level 
+00d0 204000d2 call p_mouse_dpi_led_blink_delay 
+00d1 20204098 branch mouse_seting_sensor_type 
 
 p_mouse_dpi_led_blink_delay:
-00bc 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00bd c17f8000 rtneq gpio_disable 
-00be 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
-00bf 247a0000 nrtn blank 
-00c0 6fe14883 fetch 2 ,mem_24g_pair_timeout 
-00c1 247a0000 nrtn blank 
-00c2 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
-00c3 247a0000 nrtn blank 
-00c4 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
-00c5 247a0000 nrtn blank 
-00c6 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
-00c7 203a00e3 branch p_mouse_dpi_led_blink_init ,blank 
-00c8 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
-00c9 20600000 rtn 
+00d2 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+00d3 c17f8000 rtneq gpio_disable 
+00d4 6fe14ac2 fetch 2 ,mem_mouse_discovery_timer 
+00d5 247a0000 nrtn blank 
+00d6 6fe14883 fetch 2 ,mem_24g_pair_timeout 
+00d7 247a0000 nrtn blank 
+00d8 6fe14887 fetch 2 ,mem_24g_reconn_timeout 
+00d9 247a0000 nrtn blank 
+00da 6fe0cba7 fetch 1 ,mem_mouse_device_poweron_timer_count 
+00db 247a0000 nrtn blank 
+00dc 6fe0cbc1 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+00dd 203a00f9 branch p_mouse_dpi_led_blink_init ,blank 
+00de 67e0cba8 store 1 ,mem_mouse_dpi_led_delay_count 
+00df 20600000 rtn 
 
 p_mouse_bb_event_timer:
-00ca 20403e9b call mouse_adc_read 
-00cb 20404956 call mouse_low_voltage_led_timer 
-00cc 2040232b call g24_pair_timeout_timer 
-00cd 20402556 call g24_reconn_timeout_timer 
-00ce 204047cd call mouse_24g_long_sleep_param_update_timer 
-00cf 204048be call mouse_device_poweron_timer 
-00d0 204000e0 call p_mouse_dpi_led_blink_delay_timer 
-00d1 204000d3 call p_mouse_logo_led_on_timer 
-00d2 202044bd branch mouse_bb_event_timer + 8 
+00e0 20403e9b call mouse_adc_read 
+00e1 20404956 call mouse_low_voltage_led_timer 
+00e2 2040232b call g24_pair_timeout_timer 
+00e3 20402556 call g24_reconn_timeout_timer 
+00e4 204047cd call mouse_24g_long_sleep_param_update_timer 
+00e5 204048be call mouse_device_poweron_timer 
+00e6 204000f6 call p_mouse_dpi_led_blink_delay_timer 
+00e7 204000e9 call p_mouse_logo_led_on_timer 
+00e8 202044bd branch mouse_bb_event_timer + 8 
 
 p_mouse_logo_led_on_timer:
-00d3 6fe0cbe3 fetch 1 ,mem_mouse_logo_led_gpio 
-00d4 c17f8000 rtneq gpio_disable 
-00d5 6fe14be5 fetch 2 ,mem_mouse_logo_led_on_timer 
-00d6 207a0000 rtn blank 
-00d7 6848cbe3 fetcht 1 ,mem_mouse_logo_led_gpio 
-00d8 20406069 call gpio_out_active 
-00d9 da604be5 arg mem_mouse_logo_led_on_timer ,regc 
-00da da4000dc arg p_mouse_logo_led_on_timeout ,regb 
-00db 20203191 branch timer_single_step_2b 
+00e9 6fe0cbe3 fetch 1 ,mem_mouse_logo_led_gpio 
+00ea c17f8000 rtneq gpio_disable 
+00eb 6fe14be5 fetch 2 ,mem_mouse_logo_led_on_timer 
+00ec 207a0000 rtn blank 
+00ed 6848cbe3 fetcht 1 ,mem_mouse_logo_led_gpio 
+00ee 20406069 call gpio_out_active 
+00ef da604be5 arg mem_mouse_logo_led_on_timer ,regc 
+00f0 da4000f2 arg p_mouse_logo_led_on_timeout ,regb 
+00f1 20203191 branch timer_single_step_2b 
 
 p_mouse_logo_led_on_timeout:
-00dc 58000000 setarg 0 
-00dd 67e14be5 store 2 ,mem_mouse_logo_led_on_timer 
-00de 6848cbe3 fetcht 1 ,mem_mouse_logo_led_gpio 
-00df 20206065 branch gpio_out_inactive 
+00f2 58000000 setarg 0 
+00f3 67e14be5 store 2 ,mem_mouse_logo_led_on_timer 
+00f4 6848cbe3 fetcht 1 ,mem_mouse_logo_led_gpio 
+00f5 20206065 branch gpio_out_inactive 
 
 p_mouse_dpi_led_blink_delay_timer:
-00e0 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
-00e1 da4000e3 arg p_mouse_dpi_led_blink_init ,regb 
-00e2 2020318a branch timer_single_step 
+00f6 da604ba8 arg mem_mouse_dpi_led_delay_count ,regc 
+00f7 da4000f9 arg p_mouse_dpi_led_blink_init ,regb 
+00f8 2020318a branch timer_single_step 
 
 p_mouse_dpi_led_blink_init:
-00e3 6fe0c927 fetch 1 ,mem_config_sensor_type 
-00e4 c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
-00e5 c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
-00e6 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
-00e7 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
-00e8 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
-00e9 67e14930 store 2 ,mem_mouse_on_time 
-00ea 67e14932 store 2 ,mem_mouse_off_time 
-00eb da200000 arg 0 ,rega 
-00ec 6848c992 fetcht 1 ,mem_mouse_dpi 
-00ed 18408402 increase 2 ,temp 
-00ee 18467c03 sub temp ,3 ,null 
-00ef 204100f2 call p_mouse_dpi_led_blink_init_level_4 ,positive 
-00f0 244100f6 ncall p_mouse_dpi_led_blink_count_clean ,positive 
-00f1 202048ff branch mouse_dpi_led_blink_init_end 
+00f9 6fe0c927 fetch 1 ,mem_config_sensor_type 
+00fa c001c8f2 beq p3212 ,mouse_dpi_led_blink_init 
+00fb c005c8f2 beq ka8g2 ,mouse_dpi_led_blink_init 
+00fc 6fe0c923 fetch 1 ,mem_dpi_led_gpio 
+00fd 67e0c92f store 1 ,mem_mouse_struct_led_gpio 
+00fe 6fe14bc2 fetch 2 ,mem_mouse_dpi_led_blink_time 
+00ff 67e14930 store 2 ,mem_mouse_on_time 
+0100 67e14932 store 2 ,mem_mouse_off_time 
+0101 da200000 arg 0 ,rega 
+0102 6848c992 fetcht 1 ,mem_mouse_dpi 
+0103 18408402 increase 2 ,temp 
+0104 18467c03 sub temp ,3 ,null 
+0105 20410108 call p_mouse_dpi_led_blink_init_level_4 ,positive 
+0106 2441010c ncall p_mouse_dpi_led_blink_count_clean ,positive 
+0107 202048ff branch mouse_dpi_led_blink_init_end 
 
 p_mouse_dpi_led_blink_init_level_4:
-00f2 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
-00f3 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
-00f4 18408401 increase 1 ,temp 
-00f5 20600000 rtn 
+0108 6fe44bab fetch mouse_flag_len ,mem_mouse_flag 
+0109 c40e0000 rtnbit0 mouse_enable_dpi_level_4 
+010a 18408401 increase 1 ,temp 
+010b 20600000 rtn 
 
 p_mouse_dpi_led_blink_count_clean:
-00f6 184085fd increase -3 ,temp 
-00f7 20600000 rtn 
+010c 184085fd increase -3 ,temp 
+010d 20600000 rtn 
 
 p_spid_init:
-00f8 70448476 jam 0x76 ,mem_spi_init_clk 
-00f9 20205cb6 branch spid_init_common 
+010e 70448476 jam 0x76 ,mem_spi_init_clk 
+010f 20205cb6 branch spid_init_common 
+
+p_txon:
+0110 6fe0c1e8 fetch 1 ,mem_tx_power 
+0111 c04f8113 beq tx_power_pair ,p_set_tx_power_pair 
+0112 2020121f branch txon_next 
+
+p_set_tx_power_pair:
+0113 708a3905 jam 0x05 ,core_tx_pwr_ctrl0 
+0114 708a3a00 jam 0x00 ,core_tx_pwr_ctrl1 
+0115 2020122a branch set_rf_ldo_cfg89 
               org 0x800
 
 start:
@@ -3628,6 +3670,8 @@
 121c 70890003 jam 0x03 ,modem_en 
 121d 44c54011 bpatch patch11_2 ,mem_patch11 
 121e 6fe0c1e8 fetch 1 ,mem_tx_power 
+
+txon_next:
 121f c001922d beq tx_power_3db ,set_tx_power_3db 
 1220 c0029232 beq tx_power_5db ,set_tx_power_5db 
 1221 c0031235 beq tx_power_6db ,set_tx_power_6db 
@@ -3732,6 +3776,8 @@
 1262 708a020e jam 0x0e ,core_clkpll_ctrl2 
 1263 708a0003 jam 0x03 ,core_clkpll_ctrl0 
 1264 20401228 call set_tx_power_0db 
+
+initialize_radio_cont_next2:
 1265 708a9a2b jam 0x2b ,core_tx_mixer_cfg1 
 1266 708a9b13 jam 0x13 ,core_tx_mixer_cfg2 
 1267 70804205 jam clksel_dpll ,core_clksel 
Index: program/bt.prog
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/program/bt.prog	(revision 468)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/program/bt.prog	(working copy)
@@ -3332,6 +3332,7 @@
 	
 	bpatch patch11_2,mem_patch11
 	fetch 1,mem_tx_power
+txon_next:
 	beq TX_POWER_3DB,set_tx_power_3db
 	beq TX_POWER_5DB,set_tx_power_5db
 	beq TX_POWER_6DB,set_tx_power_6db
@@ -3436,7 +3437,8 @@
 	jam 0x03,core_clkpll_ctrl0
 	
 	call set_tx_power_0db
-	
+initialize_radio_cont_next2:
+
 	jam 0x2b,core_tx_mixer_cfg1
 	jam 0x13,core_tx_mixer_cfg2
 	
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/program/patch.prog	(revision 468)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/program/patch.prog	(working copy)
@@ -1,6 +1,7 @@
 
 	bbit1 8,pf_patch_ext
 	beq patch00_0,p_soft_reset
+	beq patch11_2,p_txon
 	beq patch11_3,p_initialize_radio_cont	
 	beq patch13_7,p_init_param
 	beq patch15_6,p_app_init
@@ -49,8 +50,8 @@
 	branch lpm_write2_ctrl_option
 	
 p_mouse_start_work:
-	fetch MOUSE_FLAG_LEN,mem_mouse_flag
-	bbit1 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING, mouse_24g_first_start_auto_pair_mode
+//	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+//	bbit1 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING, mouse_24g_first_start_auto_pair_mode
 	fetch 1,mem_device_flag
 	beq MODE_24G_DEVICE,p_mouse_24g_start_mode
 	call mouse_wakeup_from_power_check	// wake from hibernate :enble user
@@ -61,7 +62,7 @@
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
 	bbit0 MOUSE_ENABLE_24G,mouse_24g_mode_setup_error
 //	call mouse_wakeup_from_power_check	// wake from hibernate :enble user
-//	branch p_mouse_24g_reconn_dongle_start,user
+//	branch mouse_24g_reconn_dongle_start,user
 	fetch MOUSE_FLAG_LEN,mem_mouse_flag
 	bbit1 MOUSE_ENABLE_AUTO_24G_PARING,mouse_24g_reconn_general_dongle
 	bbit0 MOUSE_ENABLE_24G_POWER_ON_PAIRING,mouse_24g_reconn_general_dongle
@@ -72,11 +73,6 @@
 	branch mouse_24g_start_pair_mode,zero
 	branch mouse_24g_reconn_general_dongle
 
-p_mouse_24g_reconn_dongle_start:
-	call p_g24_factory_check
-	branch mouse_24g_start_auto_pair_next,user
-	branch mouse_24g_reconn_dongle_start
-
 p_g24_factory_check:
 	arg 2,loopcnt
 	arg mem_mouse_24g_addr,contr
@@ -153,7 +149,16 @@
 	jam 0x0b,core_rf_ldo_cfg2
 	jam 0x05,core_rf_ldo_cfg3
 	jam 0x90,core_syn_pfd_lkd_cfg
-	branch initialize_radio_cont+8
+	fetch 1,mem_fcomp_div
+	bne XTAL_16M,p_initialize_radio_cont_next
+	jam 0x34,core_clkpll_cfg5		//16M XTAL
+p_initialize_radio_cont_next:
+	jam 0xff,core_clkpll_ctrl1
+	nop 100
+	jam 0x0e,core_clkpll_ctrl2
+	jam 0x03,core_clkpll_ctrl0
+	call p_set_tx_power_pair		//20cm distance
+	branch initialize_radio_cont_next2
 
 p_mouse_setgpio_hibernate:
 	call mouse_set_sdio_high
@@ -210,13 +215,39 @@
 
 p_mouse_priority_bb_event:
 	copy regc,pdata
+	beq BT_EVT_24G_ATTEMPT_FAIL,p_mouse_24g_attempt_fail
 	beq BT_EVT_24G_ATTEMPT_SUCCESS,p_mouse_24g_attempt_success
 	branch mouse_priority_bb_event+2
 
+p_mouse_24g_attempt_fail:
+	fetch 1,mem_24g_attempt_fail_flag
+	nbranch mouse_24g_hibernate_set,blank
+p_mouse_24g_attempt_fail_next:
+	fetch 1,mem_24g_reconn_type
+	beq FAST_CONN_AND_3_0_ADDR,p_mouse_24g_fast_conn_attempt_fail
+	beq PAIR_AND_3_0_ADDR,mouse_24g_auto_pair_attempt_fail
+	beq RECEIVER_AND_3_0_ADDR,mouse_reconn_dongle_attempt_fail
+	branch mouse_24g_attempt_fail_enter_hibernate
+
+p_mouse_24g_fast_conn_attempt_fail:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag 
+	bbit1 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,p_mouse_24g_start_auto_pair
+	bbit1 MOUSE_ENABLE_AUTO_24G_PARING,mouse_24g_start_auto_pair
+	branch mouse_24g_reconn_dongle_start
+
+p_mouse_24g_start_auto_pair:
+	call p_g24_factory_check
+	branch mouse_24g_start_auto_pair_next,user
+	branch mouse_24g_reconn_dongle_start
+
 p_mouse_24g_attempt_success:
 	fetch 4,mem_24g_addr
+	fetcht 4,mem_24g_fast_conn_addr
+	isub temp,null
+	branch p_mouse_24g_attempt_success_skip_store_addr,zero
 	store 4,mem_24g_receiver_addr
 	store 4,mem_mouse_24g_addr		// if need store 24g address to eeprom/flash,need get mem_24g_addr
+p_mouse_24g_attempt_success_skip_store_addr:
 	call mouse_device_poweron_timer_init
 	branch mouse_24g_attempt_success
 
@@ -340,4 +371,14 @@
 	jam 0x76,mem_spi_init_clk
 	branch spid_init_common
 	
-	
+p_txon:
+	fetch 1,mem_tx_power
+	beq TX_POWER_PAIR,p_set_tx_power_pair
+	branch txon_next
+
+p_set_tx_power_pair:	//20cm distance
+	jam 0x05,core_tx_pwr_ctrl0
+	jam 0x00,core_tx_pwr_ctrl1
+	branch set_rf_ldo_cfg89
+
+
Index: sched/mouse.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/sched/mouse.dat	(revision 468)
+++ /YC1308AC/branch/mouse_project/YJX_Project/1011-T_Project/Only2.4G/MingAo_Only2.4G_LRpair/sched/mouse.dat	(working copy)
@@ -102,7 +102,7 @@
 00 #poweron
 
 #mode switch+pair/discovery  2byte 
-00 02 #dip(matrix)+2.4 first
+80 02 #dip(matrix)+2.4 first
 
 #updata 1byte
 03
@@ -112,7 +112,7 @@
 mem_mouse_direct_timeout:64  #05s
 mem_mouse_24g_reconn_timeout_init:64 #10s
 
-mem_mouse_24g_pair_tx_power:94 #-20dBm
+mem_mouse_24g_pair_tx_power:9f
 mem_rssi_dis_min_24g_init:85
 mem_rssi_dis_max_24g_init:90
 mem_rssi_hex_received_max_value_init:63
